[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080309114844.GC30331@elte.hu>
Date: Sun, 9 Mar 2008 12:48:44 +0100
From: Ingo Molnar <mingo@...e.hu>
To: WANG Cong <xiyou.wangcong@...il.com>
Cc: linux-kernel@...r.kernel.org, gvaughan@....nasa.gov, akpm@...l.org,
jeremy@...p.org
Subject: Re: [PATCH] Fix check after use in kernel/exit.c
* WANG Cong <xiyou.wangcong@...il.com> wrote:
> > actually, i unapplied it again because the patch is wrong:
> > mm_release() has side-effects for kernel threads such as the
> > deactivate_mm() [which is important even if the user-mm is NULL]. If
> > the NULL mm dereference can really trigger then it should be avoided
> > within mm_release().
>
> Do you mean that the NULL check should be moved into mm_release()?
yes - we need to run deactivate_mm() for kernel threads.
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists