aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorQiujun Huang <[email protected]>2020-10-30 00:19:05 +0800
committerSteven Rostedt (VMware) <[email protected]>2020-11-02 08:52:18 -0500
commitc1acb4ac1a892cf08d27efcb964ad281728b0545 (patch)
treee71d042cd9413d49fa129ca0091e8d54b64f8639 /tools/perf/scripts/python/bin
parent3cea11cd5e3b00d91caf0b4730194039b45c5891 (diff)
tracing: Fix out of bounds write in get_trace_buf
The nesting count of trace_printk allows for 4 levels of nesting. The nesting counter starts at zero and is incremented before being used to retrieve the current context's buffer. But the index to the buffer uses the nesting counter after it was incremented, and not its original number, which in needs to do. Link: https://lkml.kernel.org/r/[email protected] Cc: [email protected] Fixes: 3d9622c12c887 ("tracing: Add barrier to trace_printk() buffer nesting modification") Signed-off-by: Qiujun Huang <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions