Re: [ptrace] Problem with ptrace cleanup logic.

From: Oleg Nesterov
Date: Thu Feb 23 2012 - 10:24:43 EST


On 02/23, Tetsuo Handa wrote:
>
> I noticed that ptrace(PTRACE_ATTACH, 1) makes the global init process remain
> killable even after a process that called ptrace(PTRACE_ATTACH, 1) exits.

Yes, known problem. We should cleanup the usage of signal->flags.
This also allows to kill the new bitfields in signal_struct.

But firstly we should cleanup force_sig_info(), I sent the initial
patches.

The problem is: init loses SIGNAL_UNKILLABLE.

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/