]> git.ipfire.org Git - thirdparty/linux.git/commit
ftrace: Protect direct_functions in ftrace_find_rec_direct
authorLeon Hwang <leon.hwang@linux.dev>
Thu, 30 Jul 2026 15:04:08 +0000 (23:04 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Sat, 8 Aug 2026 15:21:04 +0000 (11:21 -0400)
commit63444b7617c09aeed36282e061c3f80818f2b600
tree1048c765e892cc8efc015498c7ffa9a9e5ee7463
parentf0ece16ffca7384787b692431961ce202907acf5
ftrace: Protect direct_functions in ftrace_find_rec_direct

Fix accessing the __rcu pointer direct_functions with RCU protection.

Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260730150411.88667-2-leon.hwang@linux.dev
Fixes: d05cb470663a ("ftrace: Fix modification of direct_function hash while in use")
Acked-by: Jiri Olsa <jolsa@kernel.org>
Suggested-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Leon Hwang <leon.hwang@linux.dev>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ftrace.c