]> git.itanic.dy.fi Git - linux-stable/commit
s390/boot: fix absolute zero lowcore corruption on boot
authorAlexander Gordeev <agordeev@linux.ibm.com>
Sat, 13 Aug 2022 17:45:21 +0000 (19:45 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 7 Sep 2022 12:04:01 +0000 (14:04 +0200)
commit12dd19c159659ec9050f45dc8a2ff3c3917f4be3
tree29ba05476222b7db527c4de4d589ec3b8a697c0d
parent7c8d42fdf1a84b1a0dd60d6528309c8ec127e87c
s390/boot: fix absolute zero lowcore corruption on boot

Crash dump always starts on CPU0. In case CPU0 is offline the
prefix page is not installed and the absolute zero lowcore is
used. However, struct lowcore::mcesad is never assigned and
stays zero. That leads to __machine_kdump() -> save_vx_regs()
call silently stores vector registers to the absolute lowcore
at 0x11b0 offset.

Fixes: a62bc0739253 ("s390/kdump: add support for vector extension")
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/nmi.c
arch/s390/kernel/setup.c