kexec/uefi: copy secure_boot flag in boot params across kexec reboot
authorDave Young <dyoung@redhat.com>
Tue, 6 Oct 2015 12:31:31 +0000 (13:31 +0100)
committerAurelien Jarno <aurel32@debian.org>
Fri, 2 Mar 2018 07:52:22 +0000 (07:52 +0000)
commit51545e405171d0e51cc8260656effbc3c2678aa9
treea3b8e89f81f9c620dde012a6fd19440dc31b9942
parentfc056d7f071dd683d90b0eb64e9967911d6b8699
kexec/uefi: copy secure_boot flag in boot params across kexec reboot

Kexec reboot in case secure boot being enabled does not keep the secure
boot mode in new kernel, so later one can load unsigned kernel via legacy
kexec_load.  In this state, the system is missing the protections provided
by secure boot. Adding a patch to fix this by retain the secure_boot flag
in original kernel.

secure_boot flag in boot_params is set in EFI stub, but kexec bypasses the
stub. Fixing this issue by copying secure_boot flag across kexec reboot.

Signed-off-by: Dave Young <dyoung@redhat.com>
Gbp-Pq: Topic features/all/securelevel
Gbp-Pq: Name kexec-uefi-copy-secure_boot-flag-in-boot-params-acro.patch
arch/x86/kernel/kexec-bzimage64.c