Re: Unkillable processes due to PTRACE_TRACEME
From: Oleg Nesterov
Date: Fri Dec 04 2015 - 14:02:27 EST
Hi Pavel,
On 12/03, Pavel Machek wrote:
>
> > You can't. This is one of historical oddities. You need to reap the
> > traced sub-thread first. And PTRACE_DETACH doesn't work.
>
> If kill -9 does not take out the process,
Just in case, "kill -9" can't help because the task is already killed and
zombie. The problem is that /sbin/init can't reap it without __WALL unless
we change the kernel.
> surely that sounds like a
> security problem?
>
> I know ptrace is old and tricky and ugly, but ....?
Yes this should be fixed. I'll resend the patches next week, I am a bit busy
now.
And, Dmitry, I didn't forget about another problem you reported ;) I'll try
to redo/resend the fixes for WARN_ON() in in task_participate_group_stop()
as well.
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/