summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2026-10-16 07:16:35 +0100
committerSteven Rostedt <rostedt@goodmis.org>2026-10-16 11:40:17 -0400
commit5a6bd62f09147b49b31fd19d4eba122cb5f941a1 (patch)
treef992db559b382c85ea81f695f154023300255652 /scripts/Makefile.thinlto
parent66877a312ae3c2c3d849e82e882f642ffd4ec3e2 (diff)
downloadlinux-next-5a6bd62f09147b49b31fd19d4eba122cb5f941a1.tar.gz
linux-next-5a6bd62f09147b49b31fd19d4eba122cb5f941a1.zip
tracing: Hold trace_types_lock when resetting last boot data from readers
update_last_data_if_empty() is called from tracing_open() with O_TRUNC, tracing_read_pipe() and tracing_buffers_read() without trace_types_lock. Two readers can both pass the LAST_BOOT test and free module_delta twice, and a module notifier can update module_delta while it is being freed. Take trace_types_lock in those paths and keep the callers that already hold it on an unlocked variant. Cc: stable@vger.kernel.org Fixes: 32dc0042528d ("tracing: Reset last-boot buffers when reading out all cpu buffers") Link: https://patch.msgid.link/20261016061638.214847-2-devnexen@gmail.com Signed-off-by: David Carlier <devnexen@gmail.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions