From nobody Mon Feb 9 12:26:48 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5BD833C3C for ; Thu, 26 Dec 2024 14:32:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735223563; cv=none; b=Dep/fgpxsUdAwf0CGAbIN17C1/MoVUhsG160we/POXN0wsIloVmIKzv6I1cfA02tt0ktdFZC984IfG5mkBD8Fuo2XZwcGnfP6yywXz4aXbyjhYULWCAXHeV8BAsQFnPlLbLb0shdMGnj+8NP/VzLkfaWcup1n4066e9St9Z0Yb8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735223563; c=relaxed/simple; bh=mwAVz3O3+6pmvwjkW73ACK8zUODzjRc4DiUhDd78cmI=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=ExPux7ivOpUj66L1SX4I2vXR7/Fanw7vVDyR1mWd4L5OYRkQJ5kjGe82RTTo+fRj3THS0LidcdTKleo2KwaSwQAEDL1Oc2eAHASF5BmR0iSfG2UuelWRF2m/EwFc+F/a+DaLeKEhB9EItjLFCJVn4juOfu6lbYadl/H1CfKDAO8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A68CC4CED1; Thu, 26 Dec 2024 14:32:41 +0000 (UTC) Date: Thu, 26 Dec 2024 09:33:40 -0500 From: Steven Rostedt To: Linus Torvalds Cc: LKML , Masami Hiramatsu , Mathieu Desnoyers , Christian =?UTF-8?B?R8O2dHRzY2hl?= , Lizhi Xu Subject: [GIT PULL] tracing: Two minor fixes for 6.13 Message-ID: <20241226093340.7e7a8208@gandalf.local.home> X-Mailer: Claws Mail 3.20.0git84 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Linus, Two minor tracing fixes for 6.13: - Add "const" to "char *" in event structure field that gets assigned literals. - Check size of input passed into the tracing cpumask file. If a too large of an input gets passed into the cpumask file, it could trigger a warning in the bitmask parsing code. Please pull the latest trace-v6.13-rc4 tree, which can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git trace-v6.13-rc4 Tag SHA1: b40a14f57ffeed1c9d5c19a13fadfff6beb3bd5f Head SHA1: 98feccbf32cfdde8c722bc4587aaa60ee5ac33f0 Christian G=C3=B6ttsche (1): tracing: Constify string literal data member in struct trace_event_ca= ll Lizhi Xu (1): tracing: Prevent bad count for tracing_cpumask_write ---- include/linux/trace_events.h | 2 +- kernel/trace/trace.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) --------------------------- diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h index 91b8ffbdfa8c..58ad4ead33fc 100644 --- a/include/linux/trace_events.h +++ b/include/linux/trace_events.h @@ -364,7 +364,7 @@ struct trace_event_call { struct list_head list; struct trace_event_class *class; union { - char *name; + const char *name; /* Set TRACE_EVENT_FL_TRACEPOINT flag when using "tp" */ struct tracepoint *tp; }; diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 957f941a08e7..f8aebcb01e62 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -5087,6 +5087,9 @@ tracing_cpumask_write(struct file *filp, const char _= _user *ubuf, cpumask_var_t tracing_cpumask_new; int err; =20 + if (count =3D=3D 0 || count > KMALLOC_MAX_SIZE) + return -EINVAL; + if (!zalloc_cpumask_var(&tracing_cpumask_new, GFP_KERNEL)) return -ENOMEM; =20