diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2025-05-01 22:41:28 -0400 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2025-05-01 22:44:52 -0400 |
commit | 0a8f11f8569e7ed16cbcedeb28c4350f6378fea6 (patch) | |
tree | b316d120db35ab3f5400a8b292daf895ace70f35 /rust/helpers/helpers.c | |
parent | 1be8e54a1e0f0a4bf70e3d65f94ca1738ee4f1f3 (diff) | |
download | linux-0a8f11f8569e7ed16cbcedeb28c4350f6378fea6.tar.gz linux-0a8f11f8569e7ed16cbcedeb28c4350f6378fea6.tar.bz2 linux-0a8f11f8569e7ed16cbcedeb28c4350f6378fea6.zip |
tracing: Do not take trace_event_sem in print_event_fields()
On some paths in print_event_fields() it takes the trace_event_sem for
read, even though it should always be held when the function is called.
Remove the taking of that mutex and add a lockdep_assert_held_read() to
make sure the trace_event_sem is held when print_event_fields() is called.
Cc: stable@vger.kernel.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://lore.kernel.org/20250501224128.0b1f0571@batman.local.home
Fixes: 80a76994b2d88 ("tracing: Add "fields" option to show raw trace event fields")
Reported-by: syzbot+441582c1592938fccf09@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/all/6813ff5e.050a0220.14dd7d.001b.GAE@google.com/
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions