* Re: + fix-null-pointer-dereference-in-__vm_enough_memory.patch added to -mm tree
[not found] <200708152048.l7FKm0V5014219@imap1.linux-foundation.org>
@ 2007-08-15 22:13 ` James Morris
0 siblings, 0 replies; only message in thread
From: James Morris @ 2007-08-15 22:13 UTC (permalink / raw)
To: linux-kernel
Cc: mm-commits, Alan Cox, alan, jmorris, ranma+kernel, wfg,
Stephen Smalley, Eric Paris
On Wed, 15 Aug 2007, akpm@linux-foundation.org wrote:
> ------------------------------------------------------
> Subject: fix NULL pointer dereference in __vm_enough_memory()
> From: Alan Cox <alan@lxorguk.ukuu.org.uk>
>
> 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.
>
> (Thanks to Tobias for fixing rejects and testing)
>
> Signed-off-by: Alan Cox <alan@redhat.com>
> Cc: WU Fengguang <wfg@mail.ustc.edu.cn>
> Cc: James Morris <jmorris@redhat.com>
> Cc: Tobias Diedrich <ranma+kernel@tdiedrich.de>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: James Morris <jmorris@namei.org>
--
James Morris
<jmorris@namei.org>
^ permalink raw reply [flat|nested] only message in thread