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

Fix accessing the __rcu pointer direct_functions with RCU protection.

Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260730150411.88667-3-leon.hwang@linux.dev
Fixes: 8d2c1233f371 ("ftrace: Add update_ftrace_direct_del function")
Acked-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Leon Hwang <leon.hwang@linux.dev>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ftrace.c