]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
s390/mm: fix CMMA vs KSM vs others
authorChristian Borntraeger <borntraeger@de.ibm.com>
Sun, 9 Apr 2017 20:09:38 +0000 (22:09 +0200)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Wed, 17 May 2017 16:38:14 +0000 (13:38 -0300)
commit1ea09696607c71bb8a2bb99da28e95626f66d2d4
treecc173c7b06558d5be3dcdffef8812472c47b6ee6
parent2a2437280f61b7dc4f31bac244782b34a2b5544d
s390/mm: fix CMMA vs KSM vs others

BugLink: http://bugs.launchpad.net/bugs/1688485
commit a8f60d1fadf7b8b54449fcc9d6b15248917478ba upstream.

On heavy paging with KSM I see guest data corruption. Turns out that
KSM will add pages to its tree, where the mapping return true for
pte_unused (or might become as such later).  KSM will unmap such pages
and reinstantiate with different attributes (e.g. write protected or
special, e.g. in replace_page or write_protect_page)). This uncovered
a bug in our pagetable handling: We must remove the unused flag as
soon as an entry becomes present again.

Signed-of-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
arch/s390/include/asm/pgtable.h