1
0
Fork 0
alistair23-linux/arch/s390/purgatory
Philipp Rudo 3038bbd1bb s390/kexec_file: fix diag308 subcode when loading crash kernel
commit 613775d62e upstream.

diag308 subcode 0 performes a clear reset which inlcudes the reset of
all registers in the system. While this is the preferred behavior when
loading a normal kernel via kexec it prevents the crash kernel to store
the register values in the dump. To prevent this use subcode 1 when
loading a crash kernel instead.

Fixes: ee337f5469 ("s390/kexec_file: Add crash support to image loader")
Cc: <stable@vger.kernel.org> # 4.17
Signed-off-by: Philipp Rudo <prudo@linux.ibm.com>
Reported-by: Xiaoying Yan <yiyan@redhat.com>
Tested-by: Lianbo Jiang <lijiang@redhat.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-12-30 11:51:34 +01:00
..
.gitignore s390/purgatory: update .gitignore 2019-06-04 15:03:42 +02:00
Makefile s390/purgatory: do not build purgatory with kcov, kasan and friends 2020-01-12 12:21:40 +01:00
head.S s390/kexec_file: fix diag308 subcode when loading crash kernel 2020-12-30 11:51:34 +01:00
kexec-purgatory.S s390/purgatory: Omit use of bin2c 2019-04-29 10:43:55 +02:00
purgatory.c crypto: sha256 - Merge crypto/sha256.h into crypto/sha.h 2019-09-05 14:54:54 +10:00
purgatory.lds.S s390/purgatory: Reduce purgatory size 2019-04-29 10:43:53 +02:00
string.c s390/purgatory: do not build purgatory with kcov, kasan and friends 2020-01-12 12:21:40 +01:00