Re: [PATCH 2/2] s390/entry: Save lowcore on invalid kernel stack
From: Alexander Gordeev
Date: Tue Oct 13 2026 - 08:23:15 EST
On Fri, Oct 02, 2026 at 05:20:55PM +0200, Heiko Carstens wrote:
> In case of an invalid kernel stack copy the current CPU's lowcore to
> stack_invalid_lowcore, so it is available to debug tools after a crash.
>
> The copy is helpful since the lowcore is modified e.g., when printing
> messages before a dump is taken. Keep it as unmodified as possible and
> as close to the event that caused register corruption.
>
> Signed-off-by: Heiko Carstens <hca@xxxxxxxxxxxxx>
> ---
> arch/s390/kernel/entry.S | 15 +++++++++++++++
> arch/s390/kernel/entry.h | 4 ++++
> arch/s390/kernel/traps.c | 6 ++++++
> 3 files changed, 25 insertions(+)
Reviewed-by: Alexander Gordeev <agordeev@xxxxxxxxxxxxx>