commit | 2344bec788b097b2d1198758bd29c583812b864e | [log] [tgz] |
---|---|---|
author | Cong Wang <xiyou.wangcong@gmail.com> | Thu May 31 16:26:18 2012 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Thu May 31 17:49:29 2012 -0700 |
tree | 3ffcf64931b7935ee4e16b81fb6ec6b732436dfa | |
parent | e7dcd9990e42ccfc798d4eb55e2dbf9d7d434c6b [diff] |
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>