linux/arch/s390
Heiko Carstens da90575767 s390/mem_detect: fix tprot() program check new psw handling
The tprot() inline asm temporarily changes the program check new psw
to redirect a potential program check on the diag instruction.
Restoring of the program check new psw is done in C code behind the
inline asm.

This can be problematic, especially if the function is inlined, since
the compiler can reorder instructions in such a way that a different
instruction, which may result in a program check, might be executed
before the program check new psw has been restored.

To avoid such a scenario move restoring into the inline asm. For
consistency reasons move also saving of the original program check new
psw into the inline asm.

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
2021-06-18 16:41:24 +02:00
..
appldata
boot s390/mem_detect: fix tprot() program check new psw handling 2021-06-18 16:41:24 +02:00
configs s390/configs: change CONFIG_VIRTIO_CONSOLE to "m" 2021-04-30 17:17:01 +02:00
crypto s390/archrandom: add parameter check for s390_arch_random_generate 2021-04-21 12:32:12 +02:00
hypfs s390/hypfs: use store_tod_clock_ext() 2021-02-13 17:17:55 +01:00
include s390/facility: get rid of register asm 2021-06-18 16:41:23 +02:00
kernel s390/sysinfo: get rid of register asm 2021-06-18 16:41:23 +02:00
kvm s390/facilities: move stfl information from lowcore to global data 2021-06-07 17:06:58 +02:00
lib s390/test_unwind: print test suite start/end info 2021-04-15 17:47:42 +02:00
mm s390/maccess: use register pair instead of register asm 2021-06-18 16:41:22 +02:00
net s390/bpf: Implement new atomic ops 2021-03-16 12:18:49 -07:00
pci s390/pci: use register pair instead of register asm 2021-06-18 16:41:23 +02:00
purgatory s390: disable SSP when needed 2021-06-07 17:07:00 +02:00
tools s390/opcodes: rename selhhhr to selfhr 2021-02-24 00:31:22 +01:00
Kbuild s390/numa: move code to arch/s390/kernel 2020-08-11 18:16:55 +02:00
Kconfig s390/boot: add zstd support 2021-06-18 16:41:22 +02:00
Kconfig.debug s390/cio: add CRW inject functionality 2021-03-22 11:36:04 +01:00
Makefile s390: disable SSP when needed 2021-06-07 17:07:00 +02:00