android_kernel_oneplus_msm8998/arch/s390
Janosch Frank 3921d5b8a1 s390/mm: Check for valid vma before zapping in gmap_discard
commit 1843abd03250115af6cec0892683e70cf2297c25 upstream.

Userspace could have munmapped the area before doing unmapping from
the gmap. This would leave us with a valid vmaddr, but an invalid vma
from which we would try to zap memory.

Let's check before using the vma.

Fixes: 1e133ab296f3 ("s390/mm: split arch/s390/mm/pgtable.c")
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Message-Id: <20180816082432.78828-1-frankja@linux.ibm.com>
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-12-01 09:46:41 +01:00
..
appldata
boot s390/decompressor: fix initrd corruption caused by bss clear 2017-04-12 12:38:34 +02:00
configs s390/defconfig: set SCSI_DH=y 2015-10-01 10:48:36 +02:00
crypto s390/crypto: unlock on error in prng_tdes_read() 2017-01-12 11:22:49 +01:00
hypfs hypfs_kill_super(): deal with failed allocations 2018-04-24 09:32:11 +02:00
include s390/qdio: reset old sbal_state flags 2018-09-05 09:18:40 +02:00
kernel s390/vdso: add missing FORCE to build targets 2018-11-27 16:08:00 +01:00
kvm KVM: s390: Enable all facility bits that are known good for passthrough 2018-05-16 10:06:46 +02:00
lib s390/lib: use expoline for all bcr instructions 2018-09-15 09:40:42 +02:00
mm s390/mm: Check for valid vma before zapping in gmap_discard 2018-12-01 09:46:41 +01:00
net s390: fix br_r1_trampoline for machines without exrl 2018-09-05 09:18:40 +02:00
numa s390/mm: Fix ERROR: "__node_distance" undefined! 2018-11-27 16:08:01 +01:00
oprofile s390/oprofile: fix compile error 2015-07-01 09:34:39 +02:00
pci s390/pci: fix out of bounds access during irq setup 2018-09-05 09:18:40 +02:00
defconfig s390: new default configuration 2015-06-25 09:39:25 +02:00
Kbuild s390/numa: add core infrastructure 2015-08-03 18:40:25 +02:00
Kconfig s390: add sysfs attributes for spectre 2018-04-29 07:50:04 +02:00
Kconfig.debug
Makefile s390: add automatic detection of the spectre defense 2018-04-29 07:50:04 +02:00