RE: [Regression v5.19-rc1] crash kexec fails to boot the 2nd kernel (Re: [PATCH v12 38/46] x86/sev: Add SEV-SNP feature detection/setup)

From: NOMURA JUNICHI(野村 淳一)
Date: Fri Jun 24 2022 - 06:15:10 EST


From: Borislav Petkov <bp@xxxxxxxxx>
> What system is this? Full dmesg and .config pls.
>
> How exactly are you launching the kexec kernel, etc, etc?

dmesg, kernel config and a script to load kexec is attached.

I could reproduce the problem as followings:

# ./kexec-p-noinitrd.sh
# cat /sys/kernel/kexec_crash_loaded
1
# echo c > /proc/sysrq-trigger

If the problem reproduces, the system stops or resets just after
showing a call trace of sysrq-panic on console.
On kernels without problem, it should show boot messages from
the 2nd kernel after the sysrq-panic call trace.

When I use "--noefi" option of kexec, the problem didn't occur.
So I think you need EFI-based system to reproduce the problem.

--
Jun'ichi Nomura, NEC Corporation / NEC Solution Innovators, Ltd.

Attachment: repro.tgz
Description: application/compressed

Attachment: smime.p7s
Description: S/MIME cryptographic signature