Skip to content

ftrace: Protect RCU accesses to direct_functions

Leon Hwang linux-trace-kernel lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ftrace: Protect direct_functions in ftrace_find_rec_directkernel/trace/ftrace.c+2 -10 replies
2/4ftrace: Protect direct_functions in update_ftrace_direct_delkernel/trace/ftrace.c+8 -50 replies
3/4ftrace: Protect direct_functions in update_ftrace_direct_modkernel/trace/ftrace.c+8 -30 replies
4/4ftrace: Drop extra comma in trace_buffered_event_enablekernel/trace/trace.c+1 -10 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJiri Olsa
SeriesA-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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/[email protected]/

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(-)
Signature · 1 line
2.55.0