aboutsummaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2009-04-02 16:58:14 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2009-06-15 09:40:20 -0700
commit8842593368490116911712ea5aaf6ea9dd2db7bb (patch)
tree2487291ebcdd5b3c98a0d37522440e3268c5718b /scripts/patch-kernel
parent64cd4669da13c829635f0b668a6bd546ee472e01 (diff)
ptrace: fix possible zombie leak on PTRACE_DETACH
commit 4576145c1ecdaaea9ef8976a48335206aa1ebf91 upstream. When ptrace_detach() takes tasklist, the tracee can be SIGKILL'ed. If it has already passed exit_notify() we can leak a zombie, because a) ptracing disables the auto-reaping logic, and b) ->real_parent was not notified about the child's death. ptrace_detach() should follow the ptrace_exit's logic, change the code accordingly. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Cc: Jerome Marchand <jmarchan@redhat.com> Cc: Roland McGrath <roland@redhat.com> Tested-by: Denys Vlasenko <dvlasenk@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions