aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/trace-event-parse.c
diff options
context:
space:
mode:
authorChris Phlipot <[email protected]>2018-08-29 06:19:54 +0000
committerArnaldo Carvalho de Melo <[email protected]>2018-08-30 17:50:50 +0000
commita72f64261359b7451f8478f2a2bf357b4e6c757f (patch)
treec949ef4467a0aeee58d78975fadc7b821d9f728c /tools/perf/util/trace-event-parse.c
parentperf tools: Streamline bpf examples and headers installation (diff)
downloadkernel-a72f64261359b7451f8478f2a2bf357b4e6c757f.tar.gz
kernel-a72f64261359b7451f8478f2a2bf357b4e6c757f.zip
perf util: Fix bad memory access in trace info.
In the write to the output_fd in the error condition of record_saved_cmdline(), we are writing 8 bytes from a memory location on the stack that contains a primitive that is only 4 bytes in size. Change the primitive to 8 bytes in size to match the size of the write in order to avoid reading unknown memory from the stack. Signed-off-by: Chris Phlipot <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-parse.c')
0 files changed, 0 insertions, 0 deletions