linux/arch/s390
Martin Schwidefsky 3037a52f98 s390/nmi: do register validation as early as possible
The validation of the CPU registers in the machine check handler is
currently split into two parts. The first part is done at the start
of the low level mcck_int_handler function, this includes the CPU
timer register and the general purpose registers.
The second part is done a bit later in s390_do_machine_check for all
the other registers, including the control registers, floating pointer
control, vector or floating pointer registers, the access registers,
the guarded storage registers, the TOD programmable registers and the
clock comparator.

This is working fine to far but in theory a future extensions could
cause the C code to use registers that are not validated yet. A better
approach is to validate all CPU registers in "safe" assembler code
before any C function is called.

Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2017-10-19 17:07:40 +02:00
..
appldata sched/headers: Move task statistics APIs from <linux/sched.h> to <linux/sched/stat.h> 2017-03-03 01:43:43 +01:00
boot s390: add support for FORTIFY_SOURCE 2017-09-28 07:29:40 +02:00
configs s390: update defconfig 2017-10-16 08:19:28 +02:00
crypto s390/crypto: add s390 platform specific aes gcm support. 2017-09-29 15:51:25 +02:00
hypfs s390: hypfs: make inode explicitly non-modular 2016-10-31 17:55:40 +01:00
include s390/nmi: do register validation as early as possible 2017-10-19 17:07:40 +02:00
kernel s390/nmi: do register validation as early as possible 2017-10-19 17:07:40 +02:00
kvm s390/ctl_reg: move control register definitions to ctl_reg.h 2017-10-19 17:07:37 +02:00
lib s390/spinlock: use cpu alternatives to enable niai instruction 2017-10-18 14:11:33 +02:00
mm s390/mm: use memset64 instead of clear_table 2017-10-09 11:18:06 +02:00
net bpf, s390x: implement jiting of BPF_J{LT, LE, SLT, SLE} 2017-08-09 16:53:57 -07:00
numa s390/numa: pin all possible cpus to nodes early 2016-12-07 07:23:33 +01:00
oprofile s390/dumpstack: restore reliable indicator for call traces 2016-10-17 14:44:30 +02:00
pci IOMMU Updates for Linux v4.14 2017-09-09 15:03:24 -07:00
tools First batch of KVM changes for 4.14 2017-09-08 15:18:36 -07:00
defconfig s390: update defconfig 2017-10-16 08:19:28 +02:00
Kbuild s390/crypto: Provide s390 specific arch random functionality. 2017-04-26 13:41:35 +02:00
Kconfig s390: introduce CPU alternatives 2017-10-18 14:11:29 +02:00
Kconfig.debug Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux 2017-02-22 10:20:04 -08:00
Makefile s390: add support for IBM z14 machines 2017-07-26 08:25:15 +02:00