aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorNikita Yushchenko <[email protected]>2021-11-18 14:55:16 +0000
committerSteven Rostedt (VMware) <[email protected]>2021-11-19 02:10:18 +0000
commit2ef75e9bd2c998f1c6f6f23a3744136105ddefd5 (patch)
tree4d410a3f4373de3ddd33f137f1f3a8d94609e2c3 /tools/perf/scripts/python/mem-phys-addr.py
parenttracing: Use memset_startat() to zero struct trace_iterator (diff)
downloadkernel-2ef75e9bd2c998f1c6f6f23a3744136105ddefd5.tar.gz
kernel-2ef75e9bd2c998f1c6f6f23a3744136105ddefd5.zip
tracing: Don't use out-of-sync va_list in event printing
If trace_seq becomes full, trace_seq_vprintf() no longer consumes arguments from va_list, making va_list out of sync with format processing by trace_check_vprintf(). This causes va_arg() in trace_check_vprintf() to return wrong positional argument, which results into a WARN_ON_ONCE() hit. ftrace_stress_test from LTP triggers this situation. Fix it by explicitly avoiding further use if va_list at the point when it's consistency can no longer be guaranteed. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Nikita Yushchenko <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions