diff options
| author | Steven Rostedt (Google) <[email protected]> | 2023-03-02 01:00:53 +0000 |
|---|---|---|
| committer | Steven Rostedt (Google) <[email protected]> | 2023-03-10 03:17:06 +0000 |
| commit | 9f116f76fa8c04c81aef33ad870dbf9a158e5b70 (patch) | |
| tree | b9d61d71b13ad325dac4932b3eb901e13618a998 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | tracing: Do not let histogram values have some modifiers (diff) | |
| download | kernel-9f116f76fa8c04c81aef33ad870dbf9a158e5b70.tar.gz kernel-9f116f76fa8c04c81aef33ad870dbf9a158e5b70.zip | |
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/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
