linux/arch/powerpc
David Gibson 6aa3e1e944 [POWERPC] Fix bogus BUG_ON() in in hugetlb_get_unmapped_area()
The powerpc specific version of hugetlb_get_unmapped_area() makes some
unwarranted assumptions about what checks have been made to its
parameters by its callers.  This will lead to a BUG_ON() if a 32-bit
process attempts to make a hugepage mapping which extends above
TASK_SIZE (4GB).

I'm not sure if these assumptions came about because they were valid
with earlier versions of the get_unmapped_area() path, or if it was
always broken.  Nonetheless this patch fixes the logic, and removes
the crash.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-01-09 17:03:01 +11:00
..
boot [POWERPC] Fix build of cell zImage.initrd 2006-12-20 16:37:48 +11:00
configs
kernel [POWERPC] Fix register save area alignment for swapcontext syscall 2006-12-20 16:37:49 +11:00
lib
math-emu
mm [POWERPC] Fix bogus BUG_ON() in in hugetlb_get_unmapped_area() 2007-01-09 17:03:01 +11:00
oprofile
platforms [POWERPC] Probe Efika platform before CHRP. 2006-12-20 16:37:48 +11:00
sysdev PCI: Only check the HT capability bits in mpic.c 2006-12-20 10:54:43 -08:00
xmon
.gitignore
Kconfig
Kconfig.debug
Makefile