aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorStanislav Kinsbursky <[email protected]>2012-11-26 16:29:42 -0800
committerLinus Torvalds <[email protected]>2012-11-26 17:41:24 -0800
commit05f564849d49499ced97913a0914b5950577d07d (patch)
treeeaab16738a3d405084466d5a9aca01db37e41f73 /tools/perf/util/trace-event-scripting.c
parent56c176c9cac9a77249fa1736bfd792f379d61942 (diff)
proc: check vma->vm_file before dereferencing
Commit 7b540d0646ce ("proc_map_files_readdir(): don't bother with grabbing files") switched proc_map_files_readdir() to use @f_mode directly instead of grabbing @file reference, but same time the test for @vm_file presence was lost leading to nil dereference. The patch brings the test back. The all proc_map_files feature is CONFIG_CHECKPOINT_RESTORE wrapped (which is set to 'n' by default) so the bug doesn't affect regular kernels. The regression is 3.7-rc1 only as far as I can tell. [[email protected]: provided changelog] Signed-off-by: Stanislav Kinsbursky <[email protected]> Acked-by: Cyrill Gorcunov <[email protected]> Cc: Al Viro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions