ptrace: don't take tasklist to get/set ->last_siginfo
authorOleg Nesterov <oleg@redhat.com>
Wed, 17 Jun 2009 23:27:36 +0000 (16:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 18 Jun 2009 20:03:52 +0000 (13:03 -0700)
commite49612544c695117644af48bb4625264a3d2918f
tree7fe576d195533fb671c7a610cc35e9608e48c87e
parentd92656633b8352c6d4b14afcb7beb154d76e7aa6
ptrace: don't take tasklist to get/set ->last_siginfo

Change ptrace_getsiginfo/ptrace_setsiginfo to use lock_task_sighand()
without tasklist_lock.  Perhaps it makes sense to make a single helper
with "bool rw" argument.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/ptrace.c