Re: + fix-null-pointer-dereference-in-__vm_enough_memory.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 15 Aug 2007, [email protected] wrote:

> ------------------------------------------------------
> Subject: fix NULL pointer dereference in __vm_enough_memory()
> From: Alan Cox <[email protected]>
> 
> 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 <[email protected]>
> Cc: WU Fengguang <[email protected]>
> Cc: James Morris <[email protected]>
> Cc: Tobias Diedrich <[email protected]>
> Signed-off-by: Andrew Morton <[email protected]>

Acked-by: James Morris <[email protected]>



-- 
James Morris
<[email protected]>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux