From: David Gibson Date: Tue, 14 Nov 2006 10:03:38 +0000 (-0800) Subject: [PATCH] hugetlb: check for brk() entering a hugepage region X-Git-Tag: v2.6.19-rc6~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb07c9a1864a8eac9f3123e428100d5b2a16e65a;p=pandora-kernel.git [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 Cc: Adam Litke Cc: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed