Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boot: skip loading DTBs in type 1 when secure boot is enabled #328

Merged
merged 1 commit into from
Sep 20, 2023

Commits on Sep 20, 2023

  1. boot: skip loading DTBs in type 1 when secure boot is enabled

    The kernel loads the DTB from EFI before ExitBootServices():
    
    https://github.com/torvalds/linux/blob/v6.5/drivers/firmware/efi/libstub/fdt.c#L245
    
    DTBs can map and assign arbitrary memory ranges. The kernel refuses
    to load one from the dtb= kernel command line parameter when secure
    boot is enabled, as it's not safe. Let's do the same for type 1
    entries, as they are unverified.
    
    This only affects arm64 and riscv64, firmwares do not support DTB
    on x86.
    
    (cherry picked from commit 4b4d612)
    (cherry picked from commit c1404ff)
    (cherry picked from commit 7844c65)
    (cherry picked from commit f381320)
    (cherry picked from commit 3c97ff5)
    bluca committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    7cc24c9 View commit details
    Browse the repository at this point in the history