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

Steven Rostedt
2009-08-26T14:44:34Z

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