The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/4] ftrace: Protect RCU accesses to direct_functions
@ 2026-07-30 15:04 Leon Hwang
  2026-07-30 15:04 ` [PATCH 1/4] ftrace: Protect direct_functions in ftrace_find_rec_direct Leon Hwang
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Leon Hwang @ 2026-07-30 15:04 UTC (permalink / raw)
  To: Steven Rostedt, Masami Hiramatsu, Mark Rutland, Mathieu Desnoyers,
	Jiri Olsa, Andrii Nakryiko
  Cc: linux-kernel, linux-trace-kernel, Leon Hwang

Sashiko reported a potential issue of directly accessing
direct_functions [1], which will be addressed by patch #1.

The patch #2 and #3 protect accesses to the RCU-managed direct_functions
hash in its delete, and modify paths.

The final patch removes an unnecessary empty argument from a
scoped_guard() invocation.

[1] https://lore.kernel.org/all/20260727145217.72B9C1F000E9@smtp.kernel.org/

Leon Hwang (4):
  ftrace: Protect direct_functions in ftrace_find_rec_direct
  ftrace: Protect direct_functions in update_ftrace_direct_del
  ftrace: Protect direct_functions in update_ftrace_direct_mod
  ftrace: Drop extra comma in trace_buffered_event_enable

 kernel/trace/ftrace.c | 27 ++++++++++++++++++---------
 kernel/trace/trace.c  |  2 +-
 2 files changed, 19 insertions(+), 10 deletions(-)

-- 
2.55.0


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

end of thread, other threads:[~2026-07-30 15:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-30 15:04 [PATCH 0/4] ftrace: Protect RCU accesses to direct_functions Leon Hwang
2026-07-30 15:04 ` [PATCH 1/4] ftrace: Protect direct_functions in ftrace_find_rec_direct Leon Hwang
2026-07-30 15:04 ` [PATCH 2/4] ftrace: Protect direct_functions in update_ftrace_direct_del Leon Hwang
2026-07-30 15:04 ` [PATCH 3/4] ftrace: Protect direct_functions in update_ftrace_direct_mod Leon Hwang
2026-07-30 15:04 ` [PATCH 4/4] ftrace: Drop extra comma in trace_buffered_event_enable Leon Hwang

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