Re: [PATCH 08/12] add trace events for each syscall entry/exit

From: Steven Rostedt
Date: Wed Aug 26 2009 - 10:44:41 EST



On Wed, 26 Aug 2009, Frederic Weisbecker wrote:
> >
> > All kernel threads have a NULL t->mm. Since do_fork is called by kthreadd
> > and not by kthread_create, the caller of do_fork will also have a
> > t->mm = NULL.
> >
> > -- Steve
> >
>
> Yeah, that's the case with kthread_create() creation fashion,
> but what if you create a kernel thread using the low level
> kernel_thread() directly (ie: without relaying on kthreadd queue)?
>
> Especially in Heiko example, it seems to be a duplication of user
> task.
>
> I wonder what obvious think I'm missing here...

The obvious is that those calls are buggy ;-)

-- Steve

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