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
gameport
joystick
keyboard
misc
mouse
rmi4
serio
tablet
touchscreen
Kconfig -rw-r--r-- 6.0 KB
Makefile -rw-r--r-- 909 bytes
apm-power.c -rw-r--r-- 2.6 KB
evbug.c -rw-r--r-- 3.1 KB
evdev.c -rw-r--r-- 33.2 KB
ff-core.c -rw-r--r-- 9.0 KB
ff-memless.c -rw-r--r-- 14.4 KB
input-compat.c -rw-r--r-- 3.3 KB
input-compat.h -rw-r--r-- 1.7 KB
input-leds.c -rw-r--r-- 5.2 KB
input-mt.c -rw-r--r-- 12.2 KB
input-polldev.c -rw-r--r-- 9.3 KB
input.c -rw-r--r-- 60.1 KB
joydev.c -rw-r--r-- 23.8 KB
matrix-keymap.c -rw-r--r-- 5.6 KB
mousedev.c -rw-r--r-- 26.1 KB
sparse-keymap.c -rw-r--r-- 8.6 KB

back to top