linux-yocto/arch/s390/kernel
Heiko Carstens 5f4787834c s390/entry: Fix last breaking event handling in case of stack corruption
commit ae952eea6f upstream.

In case of stack corruption stack_invalid() is called and the expectation
is that register r10 contains the last breaking event address. This
dependency is quite subtle and broke a couple of years ago without that
anybody noticed.

Fix this by getting rid of the dependency and read the last breaking event
address from lowcore.

Fixes: 56e62a7370 ("s390: convert to generic entry")
Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-07-06 11:00:16 +02:00
..
syscalls s390/syscalls: Avoid creation of arch/arch/ directory 2024-12-09 10:31:45 +01:00
vdso32 s390/vdso: Use standard stack frame layout 2024-06-12 11:12:33 +02:00
vdso64 s390/vdso: Use standard stack frame layout 2024-06-12 11:12:33 +02:00
.gitignore
abs_lowcore.c
alternative.c
asm-offsets.c s390/tracing: pass struct ftrace_regs to ftrace_trace_function 2023-07-24 12:12:24 +02:00
audit.c
audit.h
cache.c s390/cache: prevent rebuild of shared_cpu_list 2024-03-26 18:19:38 -04:00
cert_store.c s390/cert_store: fix string length handling 2023-09-19 13:25:44 +02:00
compat_audit.c
compat_linux.c
compat_linux.h
compat_ptrace.h
compat_signal.c
cpcmd.c s390: include linux/io.h instead of asm/io.h 2023-07-03 11:19:40 +02:00
cpufeature.c
crash_dump.c s390/crash: use the correct type for memory allocation 2023-06-20 19:52:12 +02:00
debug.c
diag.c s390/diag: fix diagnose 8c description 2023-07-27 13:11:35 +02:00
dis.c s390: fix various typos 2023-07-03 11:19:42 +02:00
dumpstack.c
early_printk.c
early.c s390/smp,mcck: fix early IPI handling 2024-08-29 17:33:24 +02:00
earlypgm.S
ebcdic.c s390/ebcdic: fix typo in comment 2023-07-27 13:11:35 +02:00
entry.h init: consolidate prototypes in linux/init.h 2023-06-09 17:44:16 -07:00
entry.S s390/entry: Fix last breaking event handling in case of stack corruption 2025-07-06 11:00:16 +02:00
fpu.c
ftrace.c kprobe/ftrace: bail out if ftrace was killed 2024-06-27 13:49:03 +02:00
ftrace.h
guarded_storage.c
head64.S s390: consistently use .balign instead of .align 2023-06-28 13:57:09 +02:00
idle.c
ima_arch.c
ipl_vmparm.c
ipl.c s390/ipl: Fix incorrect initialization of nvme dump block 2024-06-12 11:12:33 +02:00
irq.c
jump_label.c
kdebugfs.c
kexec_elf.c
kexec_image.c
kprobes_insn_page.S s390: consistently use .balign instead of .align 2023-06-28 13:57:09 +02:00
kprobes.c s390/entry: Mark IRQ entries to fix stack depot warnings 2024-12-09 10:33:06 +01:00
kprobes.h
lgr.c
machine_kexec_file.c s390/ipl: fix virtual vs physical address confusion 2023-08-18 15:08:12 +02:00
machine_kexec_reloc.c
machine_kexec.c s390/amode31: change type of __samode31, __eamode31, etc 2023-08-30 11:03:27 +02:00
Makefile s390/kexec: make machine_kexec() depend on CONFIG_KEXEC_CORE 2023-07-24 12:12:23 +02:00
mcount.S s390: remove unneeded #include <asm/export.h> 2023-08-09 15:20:50 +02:00
module.c s390/module: fix rela calculation for R_390_GOTENT 2023-06-20 19:55:00 +02:00
nmi.c
nospec-branch.c s390: fix various typos 2023-07-03 11:19:42 +02:00
nospec-sysfs.c
numa.c
os_info.c
perf_cpum_cf_events.c
perf_cpum_cf.c perf/core: Save raw sample data conditionally based on sample type 2025-02-08 09:51:44 +01:00
perf_cpum_sf.c s390/cpum_sf: Handle CPU hotplug remove during sampling 2024-12-14 19:59:58 +01:00
perf_event.c
perf_pai_crypto.c perf/core: Save raw sample data conditionally based on sample type 2025-02-08 09:51:44 +01:00
perf_pai_ext.c perf/core: Save raw sample data conditionally based on sample type 2025-02-08 09:51:44 +01:00
perf_regs.c
process.c s390: include linux/io.h instead of asm/io.h 2023-07-03 11:19:40 +02:00
processor.c
ptrace.c s390/ptrace: handle setting of fpc register correctly 2024-02-05 20:14:17 +00:00
reipl.S
relocate_kernel.S
rethook.c
rethook.h
runtime_instr.c
setup.c s390/boot: Remove alt_stfle_fac_list from decompressor 2024-06-12 11:12:33 +02:00
signal.c
smp.c s390/smp,mcck: fix early IPI handling 2024-08-29 17:33:24 +02:00
stacktrace.c
sthyi.c s390 updates for 6.6 merge window 2023-08-28 17:22:39 -07:00
syscall.c
sysinfo.c
text_amode31.S
time.c s390: fix various typos 2023-07-03 11:19:42 +02:00
topology.c sched/topology: Rename 'DIE' domain to 'PKG' 2025-02-08 09:51:44 +01:00
trace.c
traps.c s390/traps: Fix test_monitor_call() inline assembly 2025-03-13 12:58:27 +01:00
unwind_bc.c
uprobes.c
uv.c s390/uv: Don't call folio_wait_writeback() without a folio reference 2024-08-03 08:53:48 +02:00
vdso.c
vmlinux.lds.S s390/vmlinux.lds.S: Move ro_after_init section behind rodata section 2024-09-12 11:11:38 +02:00
vtime.c s390/vtime: fix average steal time calculation 2024-03-26 18:20:08 -04:00