]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
proc: use mm_access() instead of ptrace_may_access()
authorCong Wang <xiyou.wangcong@gmail.com>
Thu, 31 May 2012 23:26:18 +0000 (16:26 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 1 Jun 2012 00:49:29 +0000 (17:49 -0700)
commit2344bec788b097b2d1198758bd29c583812b864e
tree3ffcf64931b7935ee4e16b81fb6ec6b732436dfa
parente7dcd9990e42ccfc798d4eb55e2dbf9d7d434c6b
proc: use mm_access() instead of ptrace_may_access()

mm_access() handles this much better, and avoids some race conditions.

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/base.c