Re: [PATCH 4/4] ptrace: fix possible zombie leak on PTRACE_DETACH

From: Oleg Nesterov
Date: Thu Feb 05 2009 - 09:44:16 EST


On 02/04, Roland McGrath wrote:
>
> ACK on the change, though looks different if you put __ptrace_detach in
> ptrace.c with the earliar patch, as I suggest. Also, I think this warrants
> a comment for the release_task call mentioning briefly what it means:
>
> /*
> * The flag means __ptrace_detach() determined that this child
> * was a zombie that should have been auto-reaped already.
> * Don't leak it.
> */
> if (unlikely(dead))
> release_task(child);

OK, will add this to the cleanup patch too.

Oleg.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/