[PW_SID:956503] efi: Add a mechanism for embedding SBAT section#339
[PW_SID:956503] efi: Add a mechanism for embedding SBAT section#339linux-riscv-bot wants to merge 3 commits into
Conversation
SBAT is a mechanism which improves SecureBoot revocations of UEFI binaries by introducing a generation-based technique. Compromised or vulnerable UEFI binaries can be prevented from booting by bumping the minimal required generation for the specific component in the bootloader. More information on the SBAT can be obtained here: https://github.com/rhboot/shim/blob/main/SBAT.md Upstream Linux kernel does not currently participate in any way in SBAT as there's no existing policy in how SBAT generation number should be defined. Keep the status quo and provide a mechanism for distro vendors and anyone else who signs their kernel for SecureBoot to include their own SBAT data. This leaves the decision on the policy to the vendor. Basically, each distro implementing SecureBoot today, will have an option to inject their own SBAT data during kernel build and before it gets signed by their SecureBoot CA. Different distro do not need to agree on the common SBAT component names or generation numbers as each distro ships its own 'shim' with their own 'vendor_cert'/'vendor_db' Implement support for embedding SBAT data for architectures using zboot (arm64, loongarch, riscv). Build '.sbat' section along with libstub so it can be reused by x86 implementation later. Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Similar to zboot architectures, implement support for embedding SBAT data for x86. Put '.sbat' section to the very end of the binary. Note, the obsolete CRC-32 checksum (see commit 9c54baa ("x86/boot: Drop CRC-32 checksum and the build tool that generates it")) is gone and while it would've been possible to reserve the last 4 bytes in '.sbat' section too (like it's done today in '.data'), it seems to be a pointless exercise: SBAT makes zero sense without a signature on the EFI binary so '.sbat' won't be at the very end of the file anyway. Any tool which uses the last 4 bytes of the file as a checksum is broken with signed EFI binaries already. Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[1/2] efi/libstub: zboot specific mechanism for embedding SBAT section" |
|
Patch 1: "[1/2] efi/libstub: zboot specific mechanism for embedding SBAT section" |
|
Patch 1: "[1/2] efi/libstub: zboot specific mechanism for embedding SBAT section" |
|
Patch 1: "[1/2] efi/libstub: zboot specific mechanism for embedding SBAT section" |
|
Patch 1: "[1/2] efi/libstub: zboot specific mechanism for embedding SBAT section" |
|
Patch 1: "[1/2] efi/libstub: zboot specific mechanism for embedding SBAT section" |
|
Patch 1: "[1/2] efi/libstub: zboot specific mechanism for embedding SBAT section" |
|
Patch 1: "[1/2] efi/libstub: zboot specific mechanism for embedding SBAT section" |
|
Patch 1: "[1/2] efi/libstub: zboot specific mechanism for embedding SBAT section" |
|
Patch 1: "[1/2] efi/libstub: zboot specific mechanism for embedding SBAT section" |
|
Patch 1: "[1/2] efi/libstub: zboot specific mechanism for embedding SBAT section" |
|
Patch 1: "[1/2] efi/libstub: zboot specific mechanism for embedding SBAT section" |
|
Patch 2: "[2/2] x86/efi: Implement support for embedding SBAT data for x86" |
|
Patch 2: "[2/2] x86/efi: Implement support for embedding SBAT data for x86" |
|
Patch 2: "[2/2] x86/efi: Implement support for embedding SBAT data for x86" |
|
Patch 2: "[2/2] x86/efi: Implement support for embedding SBAT data for x86" |
|
Patch 2: "[2/2] x86/efi: Implement support for embedding SBAT data for x86" |
|
Patch 2: "[2/2] x86/efi: Implement support for embedding SBAT data for x86" |
|
Patch 2: "[2/2] x86/efi: Implement support for embedding SBAT data for x86" |
|
Patch 2: "[2/2] x86/efi: Implement support for embedding SBAT data for x86" |
|
Patch 2: "[2/2] x86/efi: Implement support for embedding SBAT data for x86" |
|
Patch 2: "[2/2] x86/efi: Implement support for embedding SBAT data for x86" |
|
Patch 2: "[2/2] x86/efi: Implement support for embedding SBAT data for x86" |
|
Patch 2: "[2/2] x86/efi: Implement support for embedding SBAT data for x86" |
c8da138 to
4d9ad71
Compare
PR for series 956503 applied to workflow__riscv__fixes
Name: efi: Add a mechanism for embedding SBAT section
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=956503
Version: 1