summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorLee Jones <lee@kernel.org>2026-10-19 12:07:29 +0000
committerSteven Rostedt <rostedt@goodmis.org>2026-10-19 10:47:46 -0400
commit3403d9bb27ebc3572bd048620746b4414e073bf9 (patch)
tree6e8c8eb02761547a921adaef85dc093a03a48b48 /scripts/Makefile.thinlto
parentd5c42664fc094899af9aae5300b27fe8fdb658ef (diff)
downloadlinux-next-3403d9bb27ebc3572bd048620746b4414e073bf9.tar.gz
linux-next-3403d9bb27ebc3572bd048620746b4414e073bf9.zip
tracing/histograms: Verify event_call identity when updating synth_event refcount
In event_hist_trigger_parse() and hist_unreg_all(), the histogram registration and unregistration paths look up find_synth_event() using trace_event_name(file->event_call) and adjust se->ref if a match is found. Because find_synth_event() only compares the event basename, registering or removing a histogram on a non-synthetic trace event whose basename matches a synthetic event erroneously modifies the synthetic event's reference count. If a histogram is registered on the non-synthetic event before the synthetic event is created and removed afterwards, se->ref is decremented without a matching increment, allowing the synthetic event to be freed while an active histogram action still holds a pointer to it. Introduce find_synth_event_call() to verify that &se->call matches file->event_call before adjusting se->ref. Fixes: 4b147936fa50 ("tracing: Add support for 'synthetic' events") Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20261019120730.2342739-1-lee@kernel.org Signed-off-by: Lee Jones <lee@kernel.org> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions