[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070813220142.99e46091.akpm@linux-foundation.org>
Date: Mon, 13 Aug 2007 22:01:42 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Alan Cox <alan@...rguk.ukuu.org.uk>
Cc: WU Fengguang <wfg@...l.ustc.edu.cn>,
linux-kernel <linux-kernel@...r.kernel.org>,
James Morris <jmorris@...hat.com>
Subject: Re: [PATCH] fix NULL pointer dereference in __vm_enough_memory()
On Mon, 13 Aug 2007 14:01:06 +0100 Alan Cox <alan@...rguk.ukuu.org.uk> wrote:
> On Mon, 13 Aug 2007 15:38:53 +0800
> WU Fengguang <wfg@...l.ustc.edu.cn> wrote:
>
> > On Sun, Aug 12, 2007 at 04:17:44PM +0100, Alan Cox wrote:
> > > Try this (it compiles but isnt tested). Its a weekend here, the sun is
> > > shining, the beach is a short walk, and I have more interesting things to
> > > do right now 8)
> >
> > Have a nice day~~~ It works!
>
> Ok please apply the patch then Andrew
>
> ---
>
> The new exec code inserts an accounted vma into an mm struct which is not
> current->mm. The existing memory check code has a hard coded assumption
> that this does not happen as does the security code.
>
> As the correct mm is known we pass the mm to the security method and the
> helper function. A new security test is added for the case where we need
> to pass the mm and the existing one is modified to pass current->mm to
> avoid the need to change large amounts of code.
>
> Signed-off-by: Alan Cox <alan@...hat.com>
>
>
> diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.23rc1-mm1/include/linux/mm.h linux-2.6.23rc1-mm1/include/linux/mm.h
> --- linux.vanilla-2.6.23rc1-mm1/include/linux/mm.h 2007-07-26 15:02:58.000000000 +0100
erp, we have major version skew between 2.6.23-rc1-mm1 and 2.6.23-rc3 here, sorry.
Could I ask for a redone patch against mainline?
Thanks.
-
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