linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GIT PULL] tracing: Two minor fixes for 6.13
@ 2024-12-26 14:33 Steven Rostedt
  2024-12-27 19:22 ` pr-tracker-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Steven Rostedt @ 2024-12-26 14:33 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: LKML, Masami Hiramatsu, Mathieu Desnoyers,
	Christian Göttsche, Lizhi Xu


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öttsche (1):
      tracing: Constify string literal data member in struct trace_event_call

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;
 
+	if (count == 0 || count > KMALLOC_MAX_SIZE)
+		return -EINVAL;
+
 	if (!zalloc_cpumask_var(&tracing_cpumask_new, GFP_KERNEL))
 		return -ENOMEM;
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [GIT PULL] tracing: Two minor fixes for 6.13
  2024-12-26 14:33 [GIT PULL] tracing: Two minor fixes for 6.13 Steven Rostedt
@ 2024-12-27 19:22 ` pr-tracker-bot
  0 siblings, 0 replies; 2+ messages in thread
From: pr-tracker-bot @ 2024-12-27 19:22 UTC (permalink / raw)
  To: Steven Rostedt
  Cc: Linus Torvalds, LKML, Masami Hiramatsu, Mathieu Desnoyers,
	Christian Göttsche, Lizhi Xu

The pull request you sent on Thu, 26 Dec 2024 09:33:40 -0500:

> git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git trace-v6.13-rc4

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/2c2b3d906c88a40b75f8d258119400a047e587de

Thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-12-27 19:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-26 14:33 [GIT PULL] tracing: Two minor fixes for 6.13 Steven Rostedt
2024-12-27 19:22 ` pr-tracker-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).