Re: [PATCH] ptrace: it is fun to strace /sbin/init

From: Andi Kleen
Date: Tue Mar 25 2008 - 10:53:17 EST


On Tue, Mar 25, 2008 at 03:47:54PM +0100, Pavel Machek wrote:
> Hi!
>
> > > > I like the general idea -- i used to patch kernels to allow this too,
> > > > but it is dangerous.
> > >
> > > Though root-only. Root doesn't want to be limited and knows better
> > > anyway.
> >
> > The problem is that you can deadlock if you are not very careful.
>
> How is that different from ptracing any other process with _lot_ of
> children -- like X? You'll get same zombies in both cases, leading to
> same issues, no?

There is no unresolvable deadlock no.

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