android_kernel_oneplus_msm8998/arch/s390
Heiko Carstens 3a620404e2 s390: always save and restore all registers on context switch
commit fbbd7f1a51965b50dd12924841da0d478f3da71b upstream.

The switch_to() macro has an optimization to avoid saving and
restoring register contents that aren't needed for kernel threads.

There is however the possibility that a kernel thread execve's a user
space program. In such a case the execve'd process can partially see
the contents of the previous process, which shouldn't be allowed.

To avoid this, simply always save and restore register contents on
context switch.

Cc: <stable@vger.kernel.org> # v2.6.37+
Fixes: fdb6d070ef ("switch_to: dont restore/save access & fpu regs for kernel threads")
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-16 10:33:56 +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 s390/hypfs: Use get_free_page() instead of kmalloc to ensure page alignment 2016-11-18 10:48:34 +01:00
include s390: always save and restore all registers on context switch 2017-12-16 10:33:56 +01:00
kernel s390: fix compat system call table 2017-12-16 10:33:49 +01:00
kvm KVM: s390: Disable dirty log retrieval for UCONTROL guests 2017-03-15 09:57:11 +08:00
lib s390/bitops: remove 31 bit related comments 2015-10-14 14:32:15 +02:00
mm mm: larger stack guard gap, between vmas 2017-06-26 07:13:11 +02:00
net bpf, s390: fix jit branch offset related to ldimm64 2017-08-12 19:29:08 -07:00
numa s390/numa: write kernel message when emu_size has been increased 2015-10-14 14:31:59 +02:00
oprofile
pci s390/pci: do not require AIS facility 2017-12-09 18:42:39 +01:00
defconfig
Kbuild s390/numa: add core infrastructure 2015-08-03 18:40:25 +02:00
Kconfig security/keys: add CONFIG_KEYS_COMPAT to Kconfig 2017-11-18 11:11:07 +01:00
Kconfig.debug
Makefile