]> git.baikalelectronics.ru Git - kernel.git/commit
tracing/user_events: Hold event_mutex during dyn_event_add
authorBeau Belgrave <beaub@linux.microsoft.com>
Mon, 28 Mar 2022 22:32:25 +0000 (15:32 -0700)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Sat, 2 Apr 2022 12:40:09 +0000 (08:40 -0400)
commit8515a9108acdc30983c81a73d8cb07b4c9d86d14
treec6685f6b0675862b9f23d1ab7f9f42e56b86f1ea
parent8d84d690f6e30c4b4ef5cb3f04ab988a9069e3e1
tracing/user_events: Hold event_mutex during dyn_event_add

Make sure the event_mutex is properly held during dyn_event_add call.
This is required when adding dynamic events.

Link: https://lkml.kernel.org/r/20220328223225.1992-1-beaub@linux.microsoft.com
Reported-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Beau Belgrave <beaub@linux.microsoft.com>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_events_user.c