s390/early: Copy last breaking event address to pt_regs
authorHeiko Carstens <hca@linux.ibm.com>
Tue, 1 Jul 2025 16:12:06 +0000 (18:12 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Wed, 9 Jul 2025 07:21:46 +0000 (09:21 +0200)
commit7cf636c99b257c1b4b12066ab34fd5f06e8d892f
tree51c110a76bde83be0ca57f70984e44615dd80914
parent0cb39c9738903c2b69bddb5b767f0eae0213c1d5
s390/early: Copy last breaking event address to pt_regs

In case of an early crash the early program check handler also prints the
last breaking event address which is contained within the pt_regs
structure. However it is not initialized, and therefore a more or less
random value is printed in case of a crash.

Copy the last breaking event address from lowcore to pt_regs in case of an
early program check to address this. This also makes it easier to analyze
early crashes.

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/kernel/early.c