linux/arch/s390
Christian Borntraeger f0e51b233e s390/mm: fix CMMA vs KSM vs others
commit a8f60d1fad 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>
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2017-07-18 18:40:34 +01:00
..
appldata s390/appldata: add slab.h for kzalloc/kfree 2014-05-20 08:58:51 +02:00
boot s390/decompressor: fix initrd corruption caused by bss clear 2017-07-18 18:40:20 +01:00
configs s390: update default configuration 2014-06-11 10:13:30 +02:00
crypto crypto: s390/ghash - Fix incorrect ghash icv buffer handling. 2015-06-02 12:08:17 +01:00
hypfs s390/hypfs: Use get_free_page() instead of kmalloc to ensure page alignment 2017-02-23 03:54:23 +00:00
include s390/mm: fix CMMA vs KSM vs others 2017-07-18 18:40:34 +01:00
kernel s390/dis: Fix handling of format specifiers 2016-01-25 10:43:56 +00:00
kvm KVM: s390: Disable dirty log retrieval for UCONTROL guests 2017-06-05 21:17:04 +01:00
lib s390/spinlock: avoid yield to non existent cpu 2016-06-15 21:29:24 +01:00
math-emu s390: fix save and restore of the floating-point-control register 2013-10-24 17:17:11 +02:00
mm KVM: s390: Fix guest migration for huge guests resulting in panic 2017-07-18 18:40:06 +01:00
net net: filter: get rid of BPF_S_* enum 2014-06-01 22:16:58 -07:00
oprofile s390/oprofile: make return of 0 explicit 2014-05-27 10:26:00 +02:00
pci s390/pci: enforce fmb page boundary rule 2016-05-01 00:05:58 +02:00
defconfig s390: update default configuration 2014-06-11 10:13:30 +02:00
Kbuild s390/pci: base support 2012-11-30 15:40:45 +01:00
Kconfig s390/locking: Reenable optimistic spinning 2014-09-17 09:21:51 -07:00
Kconfig.debug Kconfig: consolidate CONFIG_DEBUG_STRICT_USER_COPY_CHECKS 2013-04-30 17:04:09 -07:00
Makefile s390: allow to set gcc -mtune flag 2013-10-31 09:54:01 +01:00