This is a note to let you know that I've just added the patch titled tracing/synthetic: Make lastcmd_mutex static to the 6.1-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: tracing-synthetic-make-lastcmd_mutex-static.patch and it can be found in the queue-6.1 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 31c683967174b487939efaf65e41f5ff1404e141 Mon Sep 17 00:00:00 2001 From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx> Date: Thu, 6 Apr 2023 11:10:33 -0400 Subject: tracing/synthetic: Make lastcmd_mutex static From: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx> commit 31c683967174b487939efaf65e41f5ff1404e141 upstream. The lastcmd_mutex is only used in trace_events_synth.c and should be static. Link: https://lore.kernel.org/linux-trace-kernel/202304062033.cRStgOuP-lkp@xxxxxxxxx/ Link: https://lore.kernel.org/linux-trace-kernel/20230406111033.6e26de93@xxxxxxxxxxxxxxxxxx Cc: Masami Hiramatsu <mhiramat@xxxxxxxxxx> Cc: Mark Rutland <mark.rutland@xxxxxxx> Cc: Tze-nan Wu <Tze-nan.Wu@xxxxxxxxxxxx> Fixes: 4ccf11c4e8a8e ("tracing/synthetic: Fix races on freeing last_cmd") Reviewed-by: Mukesh Ojha <quic_mojha@xxxxxxxxxxx> Reported-by: kernel test robot <lkp@xxxxxxxxx> Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- kernel/trace/trace_events_synth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/kernel/trace/trace_events_synth.c +++ b/kernel/trace/trace_events_synth.c @@ -44,7 +44,7 @@ enum { ERRORS }; static const char *err_text[] = { ERRORS }; -DEFINE_MUTEX(lastcmd_mutex); +static DEFINE_MUTEX(lastcmd_mutex); static char *last_cmd; static int errpos(const char *str) Patches currently in stable-queue which might be from rostedt@xxxxxxxxxxx are queue-6.1/tracing-synthetic-make-lastcmd_mutex-static.patch queue-6.1/tracing-free-error-logs-of-tracing-instances.patch queue-6.1/ftrace-mark-get_lock_parent_ip-__always_inline.patch queue-6.1/tracing-osnoise-fix-notify-new-tracing_max_latency.patch queue-6.1/ftrace-fix-issue-that-direct-addr-not-restored-in-modify_ftrace_direct.patch queue-6.1/tracing-timerlat-notify-new-max-thread-latency.patch queue-6.1/tracing-synthetic-fix-races-on-freeing-last_cmd.patch