linux/arch/powerpc
David Gibson 39adfa540f powerpc/mm: Fix bug in gup_hugepd()
Commit a4fe3ce769 introduced a new
get_user_pages() path for hugepages on powerpc.  Unfortunately, there
is a bug in it's loop logic, which can cause it to overrun the end of
the intended region.  This came about by copying the logic from the
normal page path, which assumes the address and end parameters have
been pagesize aligned at the top-level.  Since they're not *hugepage*
size aligned, the simplistic logic could step over the end of the gup
region without triggering the loop end condition.

This patch fixes the bug by using the technique that the normal page
path uses in levels above the lowest to truncate the ending address to
something we know we'll match with.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2009-11-27 14:24:30 +11:00
..
boot Merge commit 'origin/master' into next 2009-11-24 17:16:30 +11:00
configs powerpc/86xx: Support for NVRAM on GE Fanuc's PPC9A 2009-11-20 16:45:37 -06:00
include/asm powerpc/mm: Fix bug in pagetable cache cleanup with CONFIG_PPC_SUBPAGE_PROT 2009-11-27 14:24:29 +11:00
kernel powerpc: Kill unused swiotlb variable 2009-11-24 17:00:24 +11:00
kvm powerpc/kvm: Fix non-modular build 2009-11-05 17:17:12 +11:00
lib powerpc: Add configurable -Werror for arch/powerpc 2009-06-16 14:15:45 +10:00
math-emu powerpc/math-emu: Fix efp dependence 2009-03-11 06:00:08 -05:00
mm powerpc/mm: Fix bug in gup_hugepd() 2009-11-27 14:24:30 +11:00
oprofile powerpc: Remove unnecessary semicolons 2009-07-08 13:50:21 +10:00
platforms powerpc: Fix build of some FSL platforms 2009-11-24 17:00:27 +11:00
sysdev powerpc: Fixup last users of irq_chip->typename 2009-11-24 14:32:45 +11:00
xmon powerpc/pseries: Add extended_cede_processor() helper function. 2009-11-24 14:33:03 +11:00
Kconfig powerpc/85xx/86xx: Add suspend/resume support 2009-11-11 21:43:28 -06:00
Kconfig.debug powerpc: Add configurable -Werror for arch/powerpc 2009-06-16 14:15:45 +10:00
Makefile powerpc: Check for unsupported relocs when using CONFIG_RELOCATABLE 2009-09-24 15:31:40 +10:00
relocs_check.pl powerpc: Check for unsupported relocs when using CONFIG_RELOCATABLE 2009-09-24 15:31:40 +10:00