Re: [PATCH v4 3.0-rc2-tip 4/22] 4: Uprobes: register/unregister probes.

Srikar Dronamraju
2011-06-17T09:37:54Z

* Oleg Nesterov <oleg@redhat.com> [2011-06-16 15:51:14]:

> On 06/16, Srikar Dronamraju wrote:
> >
> > In which case, shouldnt traversing all the tasks of all siblings of
> > parent of mm->owner should provide us all the the tasks that have linked
> > to mm. Right?
>
> I don't think so.
>
> Even if the initial mm->ovner never exits (iow, mm->owner is never changed),
> the "deep" CLONE_VM child can be reparented to init if its parent exits.
>

oh right.

> > Agree that we can bother about this a little later.
>
> Agreed.
>
>
> Oh. We should move ->mm from task_struct to signal_struct, but we need to
> change the code like get_task_mm(). And then instead of mm->owner we can
> have mm->processes list. Perhaps. This can be used by zap_threads() too.
>

Okay.. thats a nice idea.

--
Thanks and Regards
Srikar