]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
mm/ksm: handle protnone saved writes when making page write protect
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Fri, 24 Feb 2017 22:59:19 +0000 (14:59 -0800)
committerTim Gardner <tim.gardner@canonical.com>
Fri, 10 Mar 2017 13:22:05 +0000 (06:22 -0700)
commitc228a1037cd6bd0064472ea282e3730a342d6fca
tree37f91fba902b94c1f237c14d4472ed58e053e5ff
parent3000e033152a70fa139765b4dbb5baec46b1cc1b
mm/ksm: handle protnone saved writes when making page write protect

BugLink: http://bugs.launchpad.net/bugs/1671613
Without this KSM will consider the page write protected, but a numa
fault can later mark the page writable.  This can result in memory
corruption.

Link: http://lkml.kernel.org/r/1487498625-10891-3-git-send-email-aneesh.kumar@linux.vnet.ibm.com
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 595cd8f256d24face93b2722927ec9c980419c26)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
include/asm-generic/pgtable.h
mm/ksm.c