summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2025-01-21 23:12:36 +0300
committerSteven Rostedt (Google) <rostedt@goodmis.org>2025-01-21 23:22:41 +0300
commitf95ee542947d748d4ca01b4d3103dbdc4fdc8889 (patch)
treeeccd1d9949f1af3b7868cf8e18d99b818ac423f0 /tools/perf/scripts/python/event_analyzing_sample.py
parent22412b72cafd1b2570c2f9f14b7a133bdff8b80c (diff)
downloadlinux-f95ee542947d748d4ca01b4d3103dbdc4fdc8889.tar.xz
tracing: Fix allocation of printing set_event file content
The adding of cached events for modules not loaded yet required a descriptor to separate the iteration of events with the iteration of cached events for a module. But the allocation used the size of the pointer and not the size of the contents to allocate its data and caused a slab-out-of-bounds. Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: https://lore.kernel.org/20250121151236.47fcf433@gandalf.local.home Reported-by: Sasha Levin <sashal@kernel.org> Closes: https://lore.kernel.org/all/Z4_OHKESRSiJcr-b@lappy/ Fixes: b355247df104e ("tracing: Cache ":mod:" events for modules not loaded yet") Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions