]> git.baikalelectronics.ru Git - kernel.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)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 31 Jan 2007 00:01:35 +0000 (16:01 -0800)
commit172b4aa8fa39222856e278ac11f90f827d3d9932
treeec388c127883f8dddde3a933eac44a45aca6520c
parent01db90db7a98897d4b0e3bf8eaec903c5b096d57
[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: Linus Torvalds <torvalds@linux-foundation.org>
mm/mmap.c