Files
linux-st/include/linux
Oleg Nesterov 4576145c1e ptrace: fix possible zombie leak on PTRACE_DETACH
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>
2009-04-02 19:04:59 -07:00
..
2009-04-01 08:59:23 -07:00
2009-04-01 08:59:23 -07:00
2009-03-27 14:43:57 -04:00
2009-03-27 14:43:59 -04:00
2009-04-02 19:04:52 -07:00
2009-04-01 08:59:29 -07:00
2009-04-01 08:59:14 -07:00
2009-03-31 20:15:33 +02:00
2009-04-02 19:04:53 -07:00
2009-04-02 19:04:49 -07:00
2009-04-01 08:59:18 -07:00
2009-04-01 08:59:17 -07:00
2009-04-02 19:04:48 -07:00
2009-04-01 13:28:15 -04:00
2009-04-01 13:28:15 -04:00
2009-04-01 08:59:13 -07:00
2009-04-01 08:59:13 -07:00
2009-04-01 08:59:13 -07:00
2009-03-30 14:28:58 -07:00
2009-04-01 08:59:24 -07:00
2009-04-02 19:04:51 -07:00
2009-04-01 08:59:13 -07:00
2009-04-01 08:59:15 -07:00