]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tracing: dynevent: Add a missing lockdown check on dynevent
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Fri, 19 Sep 2025 01:15:56 +0000 (10:15 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Oct 2025 11:40:40 +0000 (13:40 +0200)
commit07b1f63b5f86765793fab44d3d4c2be681cddafb
treeaadc93980f511f4b8c63cca1f70f8eee3bd43f25
parent54506c6335690f4ef1b9f154e34f5a604c72c1ed
tracing: dynevent: Add a missing lockdown check on dynevent

commit 456c32e3c4316654f95f9d49c12cbecfb77d5660 upstream.

Since dynamic_events interface on tracefs is compatible with
kprobe_events and uprobe_events, it should also check the lockdown
status and reject if it is set.

Link: https://lore.kernel.org/all/175824455687.45175.3734166065458520748.stgit@devnote2/
Fixes: 17911ff38aa5 ("tracing: Add locked_down checks to the open calls of files created for tracefs")
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/trace_dynevent.c