Commit 317a66e2 authored by John S Gruber's avatar John S Gruber Committed by Greg Kroah-Hartman

x86/boot: Preserve boot_params.secure_boot from sanitizing

commit 29d9a0b5 upstream.


  a90118c4 ("x86/boot: Save fields explicitly, zero out everything else")

now zeroes the secure boot setting information (enabled/disabled/...)
passed by the boot loader or by the kernel's EFI handover mechanism.

The problem manifests itself with signed kernels using the EFI handoff
protocol with grub and the kernel loses the information whether secure
boot is enabled in the firmware, i.e., the log message "Secure boot
enabled" becomes "Secure boot could not be determined".

efi_main() arch/x86/boot/compressed/eboot.c sets this field early but it
is subsequently zeroed by the above referenced commit.

Include boot_params.secure_boot in the preserve field list.

 [ bp: restructure commit message and massage. ]

Fixes: a90118c4 ("x86/boot: Save fields explicitly, zero out everything else")
Signed-off-by: John S Gruber's avatarJohn S. Gruber <>
Signed-off-by: default avatarBorislav Petkov <>
Reviewed-by: John Hubbard's avatarJohn Hubbard <>
Cc: "H. Peter Anvin" <>
Cc: Ingo Molnar <>
Cc: Juergen Gross <>
Cc: Mark Brown <>
Cc: stable <>
Cc: Thomas Gleixner <>
Cc: x86-ml <>
Link: default avatarGreg Kroah-Hartman <>
parent 1a7fd193
......@@ -70,6 +70,7 @@ static void sanitize_boot_params(struct boot_params *boot_params)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment