Thread (6 messages) flat view 6 messages, 2 authors, 14d ago

Re: [PATCH 0/4] ftrace: Protect RCU accesses to direct_functions

From: Jiri Olsa <hidden>
Date: 2026-08-02 20:37:24
Also in: lkml

On Thu, Jul 30, 2026 at 11:04:07PM +0800, Leon Hwang wrote:
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/ (local)

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
Acked-by: Jiri Olsa <jolsa@kernel.org>

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

-- 
2.55.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help