linux/arch/s390
Heiko Carstens f22b9c219a s390/test_unwind: fix CALL_ON_STACK tests
The CALL_ON_STACK tests use the no_dat stack to switch to a different
stack for unwinding tests. If an interrupt or machine check happens
while using that stack, and previously being on the async stack, the
interrupt / machine check entry code (SWITCH_ASYNC) will assume that
the previous context did not use the async stack and happily use the
async stack again.

This will lead to stack corruption of the previous context.

To solve this disable both interrupts and machine checks before
switching to the no_dat stack.

Fixes: 7868249fbb ("s390/test_unwind: add CALL_ON_STACK tests")
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
2020-12-16 14:55:49 +01:00
..
appldata s390/appldata: use struct_size() helper 2020-06-29 16:32:34 +02:00
boot s390/boot: add build-id to decompressor 2020-12-09 21:02:07 +01:00
configs s390/mm: add debug user asce support 2020-11-23 12:01:12 +01:00
crypto - Add support for the hugetlb_cma command line option to allocate gigantic 2020-12-14 16:22:26 -08:00
hypfs fs_parse: fold fs_parameter_desc/fs_parameter_spec 2020-02-07 14:48:37 -05:00
include s390/crypto: add arch_get_random_long() support 2020-12-10 21:02:08 +01:00
kernel s390: make calls to TRACE_IRQS_OFF/TRACE_IRQS_ON balanced 2020-12-16 14:55:48 +01:00
kvm KVM: s390: remove diag318 reset code 2020-11-11 09:31:52 +01:00
lib s390/test_unwind: fix CALL_ON_STACK tests 2020-12-16 14:55:49 +01:00
mm - Add support for the hugetlb_cma command line option to allocate gigantic 2020-12-14 16:22:26 -08:00
net s390/bpf: Fix multiple tail calls 2020-09-14 18:21:31 -07:00
oprofile s390/unwind: introduce stack unwind API 2019-05-02 13:54:11 +02:00
pci - Add support for the hugetlb_cma command line option to allocate gigantic 2020-12-14 16:22:26 -08:00
purgatory - Add support for the hugetlb_cma command line option to allocate gigantic 2020-12-14 16:22:26 -08:00
tools .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Kbuild s390/numa: move code to arch/s390/kernel 2020-08-11 18:16:55 +02:00
Kconfig s390/Kconfig: default PCI_NR_FUNCTIONS to 512 2020-11-30 14:10:49 +01:00
Kconfig.debug s390/mm: add debug user asce support 2020-11-23 12:01:12 +01:00
Makefile s390/decompressor: add stacktrace support 2020-11-20 19:19:11 +01:00