aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf
diff options
context:
space:
mode:
authorSteven Rostedt (Google) <[email protected]>2023-03-01 20:00:53 -0500
committerSteven Rostedt (Google) <[email protected]>2023-03-09 22:17:06 -0500
commit9f116f76fa8c04c81aef33ad870dbf9a158e5b70 (patch)
treeb9d61d71b13ad325dac4932b3eb901e13618a998 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf
parente0213434fe3e4a0d118923dc98d31e7ff1cd9e45 (diff)
tracing: Check field value in hist_field_name()
The function hist_field_name() cannot handle being passed a NULL field parameter. It should never be NULL, but due to a previous bug, NULL was passed to the function and the kernel crashed due to a NULL dereference. Mark Rutland reported this to me on IRC. The bug was fixed, but to prevent future bugs from crashing the kernel, check the field and add a WARN_ON() if it is NULL. Link: https://lkml.kernel.org/r/[email protected] Cc: [email protected] Cc: Masami Hiramatsu <[email protected]> Cc: Andrew Morton <[email protected]> Reported-by: Mark Rutland <[email protected]> Fixes: c6afad49d127f ("tracing: Add hist trigger 'sym' and 'sym-offset' modifiers") Tested-by: Mark Rutland <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions