diff options
author | Kan Liang <[email protected]> | 2018-03-26 09:42:09 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2018-03-27 13:13:38 -0300 |
commit | f58385f629c87a9e210108b39c1f4950d0363ad2 (patch) | |
tree | 532b5e34e645af4984155e187d2737e38a57f2fc /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | b4c786e5aa69c5a75ac3932f81fdf8e8c120c03b (diff) |
perf mmap: Fix accessing unmapped mmap in perf_mmap__read_done()
There is a segmentation fault when running 'perf trace'. For example:
[root@jouet e]# perf trace -e *chdir -o /tmp/bla perf report --ignore-vmlinux -i ../perf.data
The perf_mmap__consume() could unmap the mmap. It needs to check the
refcnt in perf_mmap__read_done().
Reported-by: Arnaldo Carvalho de Melo <[email protected]>
Signed-off-by: Kan Liang <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Wang Nan <[email protected]>
Fixes: ee023de05f35 ("perf mmap: Introduce perf_mmap__read_done()")
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions