Revision 0798d3c022dc63eb0ec02b511e1f76ca8411ef8e authored by Kirill A. Shutemov on 27 May 2016, 21:27:38 UTC, committed by Linus Torvalds on 27 May 2016, 21:49:37 UTC
If page_move_anon_rmap() is refiling a pmd-splitted THP mapped in a tail
page from a pte, the "address" must be THP aligned in order for the
page->index bugcheck to pass in the CONFIG_DEBUG_VM=y builds.

Link: http://lkml.kernel.org/r/1464253620-106404-1-git-send-email-kirill.shutemov@linux.intel.com
Fixes: 6d0a07edd17c ("mm: thp: calculate the mapcount correctly for THP pages during WP faults")
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Reported-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andrea Arcangeli <aarcange@redhat.com>
Cc: <stable@vger.kernel.org>        [4.5]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent e2fe145
History
File Mode Size
Kconfig -rw-r--r-- 4.3 KB
Makefile -rw-r--r-- 672 bytes
arm-cci.c -rw-r--r-- 63.2 KB
arm-ccn.c -rw-r--r-- 45.1 KB
brcmstb_gisb.c -rw-r--r-- 11.0 KB
imx-weim.c -rw-r--r-- 5.1 KB
mips_cdmm.c -rw-r--r-- 20.1 KB
mvebu-mbus.c -rw-r--r-- 36.3 KB
omap-ocp2scp.c -rw-r--r-- 3.4 KB
omap_l3_noc.c -rw-r--r-- 10.5 KB
omap_l3_noc.h -rw-r--r-- 12.3 KB
omap_l3_smx.c -rw-r--r-- 7.5 KB
omap_l3_smx.h -rw-r--r-- 8.0 KB
simple-pm-bus.c -rw-r--r-- 1.3 KB
sunxi-rsb.c -rw-r--r-- 19.0 KB
uniphier-system-bus.c -rw-r--r-- 7.5 KB
vexpress-config.c -rw-r--r-- 4.6 KB

back to top