ptrace: PTRACE_LISTEN forgets to unlock ->siglock
authorOleg Nesterov <oleg@redhat.com>
Sun, 25 Sep 2011 17:46:22 +0000 (19:46 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 25 Sep 2011 18:02:00 +0000 (11:02 -0700)
commitf9d81f61c84aca693bc353dfef4b8c36c2e5e1b5
treeadf2453955649221a9a178d7d19d5b1e71f3fe67
parentb172e38e435a158cc84169d5b9127a8dd8d21e76
ptrace: PTRACE_LISTEN forgets to unlock ->siglock

If PTRACE_LISTEN fails after lock_task_sighand() it doesn't drop ->siglock.

Reported-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/ptrace.c