android_kernel_xiaomi_sm8350/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 [POWERPC] cell: update cell_defconfig 2006-12-19 15:35:35 +01:00
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 [POWERPC] ps3: multiplatform build fixes 2006-12-04 20:41:16 +11:00
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 [POWERPC] Generic BUG for powerpc 2006-12-11 16:35:07 +11:00
.gitignore [POWERPC] Add files build to .gitignore 2006-12-04 20:41:29 +11:00
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc 2006-12-11 18:24:58 -08:00
Kconfig.debug [POWERPC] Allow CONFIG_BOOTX_TEXT on iSeries 2006-12-04 20:41:58 +11:00
Makefile