path: root/CREDITS
diff options
authorLeon Yu <>2016-10-27 17:46:50 -0700
committerLinus Torvalds <>2016-10-27 18:43:43 -0700
commit06b2849d103f4a91212876a211d0d7df227a9513 (patch)
treede0cb888759169d999054497f35faa8f06b4765e /CREDITS
parent37df49f433bc3a11f5716fe65aaec5189c6402cb (diff)
proc: fix NULL dereference when reading /proc/<pid>/auxv
Reading auxv of any kernel thread results in NULL pointer dereferencing in auxv_read() where mm can be NULL. Fix that by checking for NULL mm and bailing out early. This is also the original behavior changed by recent commit c5317167854e ("proc: switch auxv to use of __mem_open()"). # cat /proc/2/auxv Unable to handle kernel NULL pointer dereference at virtual address 000000a8 Internal error: Oops: 17 [#1] PREEMPT SMP ARM CPU: 3 PID: 113 Comm: cat Not tainted 4.9.0-rc1-ARCH+ #1 Hardware name: BCM2709 task: ea3b0b00 task.stack: e99b2000 PC is at auxv_read+0x24/0x4c LR is at do_readv_writev+0x2fc/0x37c Process cat (pid: 113, stack limit = 0xe99b2210) Call chain: auxv_read do_readv_writev vfs_readv default_file_splice_read splice_direct_to_actor do_splice_direct do_sendfile SyS_sendfile64 ret_fast_syscall Fixes: c5317167854e ("proc: switch auxv to use of __mem_open()") Link: Signed-off-by: Leon Yu <> Acked-by: Oleg Nesterov <> Acked-by: Michal Hocko <> Cc: Al Viro <> Cc: Kees Cook <> Cc: John Stultz <> Cc: Mateusz Guzik <> Cc: Janis Danisevskis <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions