summaryrefslogtreecommitdiffstats
path: root/arch/alpha/include/asm/ioctl.h
diff options
context:
space:
mode:
authorHugh Dickins <hughd@google.com>2012-12-17 03:56:58 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-17 04:02:38 +0100
commita4f1de176614f634c367e5994a7bcc428c940df0 (patch)
tree9193f723c6f61442cf1fbc50e2db48d060f417d6 /arch/alpha/include/asm/ioctl.h
parentMerge tag 'mfd-3.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/... (diff)
downloadlinux-a4f1de176614f634c367e5994a7bcc428c940df0.tar.xz
linux-a4f1de176614f634c367e5994a7bcc428c940df0.zip
mm: fix kernel BUG at huge_memory.c:1474!
Andrea's autonuma-benchmark numa01 hits kernel BUG at huge_memory.c:1474! in change_huge_pmd called from change_protection from change_prot_numa from task_numa_work. That BUG, introduced in the huge zero page commit cad7f613c4d0 ("thp: change_huge_pmd(): make sure we don't try to make a page writable") was trying to verify that newprot never adds write permission to an anonymous huge page; but Automatic NUMA Balancing's 4b10e7d562c9 ("mm: mempolicy: Implement change_prot_numa() in terms of change_protection()") adds a new prot_numa path into change_huge_pmd(), which makes no use of the newprot provided, and may retain the write bit in the pmd. Just move the BUG_ON(pmd_write(entry)) up into the !prot_numa block. Signed-off-by: Hugh Dickins <hughd@google.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/alpha/include/asm/ioctl.h')
0 files changed, 0 insertions, 0 deletions