]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] Don't allow the stack to grow into hugetlb reserved regions
authorAdam Litke <agl@us.ibm.com>
Tue, 30 Jan 2007 22:35:39 +0000 (14:35 -0800)
committerChris Wright <chrisw@sous-sol.org>
Mon, 5 Feb 2007 16:31:44 +0000 (08:31 -0800)
commit8b0165ce42354878b66482f34149d99660dbcdb0
treee68910ea6da160ac7bfa93453d4998129836eefa
parente435bb1a3314e17118fd873290b198813537e864
[PATCH] Don't allow the stack to grow into hugetlb reserved regions

When expanding the stack, we don't currently check if the VMA will cross
into an area of the address space that is reserved for hugetlb pages.
Subsequent faults on the expanded portion of such a VMA will confuse the
low-level MMU code, resulting in an OOPS.  Check for this.

Signed-off-by: Adam Litke <agl@us.ibm.com>
Cc: David Gibson <david@gibson.dropbear.id.au>
Cc: William Lee Irwin III <wli@holomorphy.com>
Cc: Hugh Dickins <hugh@veritas.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
mm/mmap.c