]> git.baikalelectronics.ru Git - kernel.git/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)
commita863da7c49e057aa4a146dc70396bb760e6d9a25
tree29ba05476222b7db527c4de4d589ec3b8a697c0d
parent8884ead7bdfd3c0f6519aa0adb9cf9e561e06d90
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: 577b7a54904c ("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