diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2006-11-14 11:03:38 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-11-14 18:09:27 +0100 |
commit | cb07c9a1864a8eac9f3123e428100d5b2a16e65a (patch) | |
tree | fadc568154bbe3c1466081b718e9638438c82c46 /Documentation/spi | |
parent | [PATCH] hugetlb: prepare_hugepage_range check offset too (diff) | |
download | linux-cb07c9a1864a8eac9f3123e428100d5b2a16e65a.tar.xz linux-cb07c9a1864a8eac9f3123e428100d5b2a16e65a.zip |
[PATCH] hugetlb: check for brk() entering a hugepage region
Unlike mmap(), the codepath for brk() creates a vma without first checking
that it doesn't touch a region exclusively reserved for hugepages. On
powerpc, this can allow it to create a normal page vma in a hugepage
region, causing oopses and other badness.
Add a test to prevent this. With this patch, brk() will simply fail if it
attempts to move the break into a hugepage reserved region.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Cc: Adam Litke <agl@us.ibm.com>
Cc: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Documentation/spi')
0 files changed, 0 insertions, 0 deletions