Skip to content
Commit 2344bec7 authored by Cong Wang's avatar Cong Wang Committed by Linus Torvalds
Browse files

proc: use mm_access() instead of ptrace_may_access()



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

Signed-off-by: default avatarCong 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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent e7dcd999
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment