Re: on CONFIG_MM_OWNER=y, kernel panic is possible.

From: Paul Menage
Date: Tue May 06 2008 - 23:38:22 EST


On Mon, May 5, 2008 at 11:43 PM, KOSAKI Motohiro
<kosaki.motohiro@xxxxxxxxxxxxxx> wrote:
> > > #ifdef CONFIG_MM_OWNER
> > > - struct task_struct *owner; /* The thread group leader that */
> > > - /* owns the mm_struct. */
> > > + struct task_struct *owner; /* point to one of task that owns the mm_struct. */
> > > #endif
> > >
> > > #ifdef CONFIG_PROC_FS
> >
> > How about just, the task that owns the mm_struct? One of, implies multiple owners.
>
> Ah, below is better?
>
> /* point to any one of task that related the mm_struct. */

I'd word it as

/*
* "owner" points to a task that is regarded as the canonical
* user/owner of this mm. All of the following must be true in
* order for it to be changed:
*
* current == mm->owner
* current->mm != mm
* new_owner->mm == mm
* new_owner->alloc_lock is held
*/

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