1
0
Fork 0
remarkable-linux/arch/s390
Vasily Gorbik 1117e411a4 s390/mm: correct allocate_pgste proc_handler callback
[ Upstream commit 5bedf8aa03 ]

Since proc_dointvec does not perform value range control,
proc_dointvec_minmax should be used to limit value range, which is
clearly intended here, as the internal representation of the value:

unsigned int alloc_pgste:1;

In fact it currently works, since we have

      mm->context.alloc_pgste = page_table_allocate_pgste || ...

... since commit 23fefe119c ("s390/kvm: avoid global config of vm.alloc_pgste=1")

Before that it was

       mm->context.alloc_pgste = page_table_allocate_pgste;

which was broken. That was introduced with commit 0b46e0a3ec ("s390/kvm:
remove delayed reallocation of page tables for KVM").

Fixes: 0b46e0a3ec ("s390/kvm: remove delayed reallocation of page tables for KVM")
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-10-03 17:00:47 -07:00
..
appldata License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
boot License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
configs s390: fix zfcpdump-config 2017-10-16 08:19:01 +02:00
crypto s390/crypto: Fix return code checking in cbc_paes_crypt() 2018-09-26 08:38:06 +02:00
hypfs hypfs_kill_super(): deal with failed allocations 2018-04-24 09:36:38 +02:00
include s390/qdio: reset old sbal_state flags 2018-09-05 09:26:40 +02:00
kernel s390/kdump: Fix memleak in nt_vmcoreinfo 2018-09-15 09:45:28 +02:00
kvm KVM: s390: vsie: copy wrapping keys to right place 2018-09-19 22:43:36 +02:00
lib s390/lib: use expoline for all bcr instructions 2018-09-15 09:45:36 +02:00
mm s390/mm: correct allocate_pgste proc_handler callback 2018-10-03 17:00:47 -07:00
net s390: fix br_r1_trampoline for machines without exrl 2018-09-05 09:26:40 +02:00
numa s390/numa: move initial setup of node_to_cpumask_map 2018-09-05 09:26:40 +02:00
oprofile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pci s390/pci: fix out of bounds access during irq setup 2018-09-05 09:26:40 +02:00
tools License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kbuild s390/crypto: Provide s390 specific arch random functionality. 2017-04-26 13:41:35 +02:00
Kconfig s390: add sysfs attributes for spectre 2018-04-29 11:33:15 +02:00
Kconfig.debug License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile s390: add automatic detection of the spectre defense 2018-04-29 11:33:15 +02:00
defconfig s390: update defconfig 2017-06-08 15:53:48 +02:00