linux-stable/arch/s390/purgatory
Philipp Rudo a874333de0 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:26:09 +01:00
..
.gitignore s390/kexec_file: add generated files to .gitignore 2018-04-16 09:10:23 +02:00
head.S s390/kexec_file: fix diag308 subcode when loading crash kernel 2020-12-30 11:26:09 +01:00
Makefile s390/purgatory: do not build purgatory with kcov, kasan and friends 2020-01-12 12:17:21 +01:00
purgatory.c s390/purgatory: Remove duplicate variable definitions 2018-07-06 08:47:51 +02:00
string.c s390/purgatory: do not build purgatory with kcov, kasan and friends 2020-01-12 12:17:21 +01:00