]> git.proxmox.com Git - grub2.git/commit
Do not overwrite sentinel byte in boot_params, breaks lockdown
authorLuca Boccassi <bluca@debian.org>
Tue, 15 May 2018 10:36:46 +0000 (11:36 +0100)
committerColin Watson <cjwatson@debian.org>
Mon, 27 Sep 2021 19:09:39 +0000 (20:09 +0100)
commitb2c4515a832f82a4fe4ee8d32faa16b48de63d12
tree6c76918d3aca9a205ee459f11dfdbef4f6423537
parent5a2c53dd059351cf385575fa99d5763bc07e0de2
Do not overwrite sentinel byte in boot_params, breaks lockdown

grub currently copies the entire boot_params, which includes setting
sentinel byte to 0xff, which triggers sanitize_boot_params in the kernel
which in turn clears various boot_params variables, including the
indication that the bootloader chain is verified and thus the kernel
disables lockdown mode.  According to the information on the Fedora bug
tracker, only the information from byte 0x1f1 is necessary, so start
copying from there instead.

Author: Luca Boccassi <bluca@debian.org>
Bug-Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1418360
Forwarded: no

Patch-Name: fix-lockdown.patch
grub-core/loader/i386/efi/linux.c