aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorDavid Gibson <[email protected]>2006-11-14 02:03:38 -0800
committerLinus Torvalds <[email protected]>2006-11-14 09:09:27 -0800
commitcb07c9a1864a8eac9f3123e428100d5b2a16e65a (patch)
treefadc568154bbe3c1466081b718e9638438c82c46 /include/linux/debugobjects.h
parent68589bc353037f233fe510ad9ff432338c95db66 (diff)
[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 <[email protected]> Cc: Adam Litke <[email protected]> Cc: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions