The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [for-linus][PATCH 0/2] tracing: More fixes for 7.2
@ 2026-07-26  2:35 Steven Rostedt
  2026-07-26  2:35 ` [for-linus][PATCH 1/2] ftrace: Add global mutex to serialize trace_parser access Steven Rostedt
  2026-07-26  2:35 ` [for-linus][PATCH 2/2] tracing: perf: Fix stale head for perf syscall tracing Steven Rostedt
  0 siblings, 2 replies; 3+ messages in thread
From: Steven Rostedt @ 2026-07-26  2:35 UTC (permalink / raw)
  To: linux-kernel
  Cc: Masami Hiramatsu, Mark Rutland, Mathieu Desnoyers, Andrew Morton

tracing fixes for 7.2:

- Add mutex to protect parser in ftrace filtering

  The set_ftrace_filter file uses a parsing descriptor that is allocated at
  open and modified by writes. If multiple threads were to write to the
  descriptor at the same time, it can corrupt the parser.

  Add a mutex around the modifications of the parser descriptor.

- Fix possible corruption in perf syscall tracing

  The perf system call trace events can now read user space. To do so, the
  reads of user space enable preemption and disables it again. During this
  time that preemption is enabled, the task can migrate. The perf event list
  head is assigned via a per CPU pointer. It is done before the user space
  part is called. If the user space reading migrates the task to another
  CPU, then the head pointer is no longer valid.

  Re-assign the head pointer after the reading of user space to keep it
  using the correct data.

  git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
trace/fixes

Head SHA1: 2c2b322acdcc78575b8d6afa64a085cf92e03c12


Steven Rostedt (1):
      tracing: perf: Fix stale head for perf syscall tracing

Tengda Wu (1):
      ftrace: Add global mutex to serialize trace_parser access

----
 kernel/trace/ftrace.c         | 13 +++++++++++++
 kernel/trace/trace_syscalls.c |  5 +++++
 2 files changed, 18 insertions(+)

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

end of thread, other threads:[~2026-07-26  2:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-26  2:35 [for-linus][PATCH 0/2] tracing: More fixes for 7.2 Steven Rostedt
2026-07-26  2:35 ` [for-linus][PATCH 1/2] ftrace: Add global mutex to serialize trace_parser access Steven Rostedt
2026-07-26  2:35 ` [for-linus][PATCH 2/2] tracing: perf: Fix stale head for perf syscall tracing Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox