diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2012-11-27 01:29:42 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-11-27 02:41:24 +0100 |
commit | 05f564849d49499ced97913a0914b5950577d07d (patch) | |
tree | eaab16738a3d405084466d5a9aca01db37e41f73 /mm/page_alloc.c | |
parent | UAPI: strip the _UAPI prefix from header guards during header installation (diff) | |
download | linux-05f564849d49499ced97913a0914b5950577d07d.tar.xz linux-05f564849d49499ced97913a0914b5950577d07d.zip |
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.
[gorcunov@openvz.org: provided changelog]
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions