Re: [PATCH 0/8] make vfork killable/restartable/traceable

From: Tejun Heo
Date: Thu Aug 11 2011 - 12:22:54 EST


Hello,

On Thu, Aug 11, 2011 at 06:09:14PM +0200, Oleg Nesterov wrote:
> On 08/10, Pavel Machek wrote:
> >
> > > CLONE_VFORK sleeps in TASK_INTERRUPTIBLE until the child exits/execs.
> > > This is obviously not good, it is sooo simple to create the task which
> > > doesn't react to SIGKILL/SIGSTOP.
> > >
> > > Questions:
> > >
> > > - do we really need this?
> > >
> > I believe we should fix it. I was always claiming "if it does not
> > react to SIGKILL, it is a kernel bug" and well, this just proved me
> > wrong...
>
> Agreed.
>
> Just in case... sorry to all for delay, I am busy. I'll try to resend
> the simplified version "soon", at least the "unkillable" part. And
> we also have the pending oom issues...

I'm currently trying to handle both vfork and cgroup freezes as jobctl
stop so that all three different stop modes - group stop, vfork wait
and cgroup freeze - share the same characteristics. I'm currently
somewhat stuck with some freezer and kthread issues I discovered in
the process and it seems like it would take some time.

Thanks.

--
tejun
--
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/