Re: ptrace(PTRACE_ATTACH) [no intervering wait]ptrace(PTRACE_DETACH) may leave tracee stuck

From: Oleg Nesterov
Date: Tue Jul 23 2013 - 12:48:15 EST


Damn. Sorry for noise Mike,

On 07/23, Oleg Nesterov wrote:
>
> OTOH, in this particular case pldd.c doesn't really need PTRACE_DETACH,
> it can simply exit.

No it can't, I forgot that exit_ptrace() doesn't (and can't) clear
->exit_code. And this is another reason why PTRACE_DETACH needs the
stopped tracee.

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/