Oracle Updates TrenchBoot For The Linux Kernel To Advance Boot Security & Integrity

Written by Michael Larabel in Oracle on 27 August 2024 at 05:00 AM EDT. Add A Comment
ORACLE
Oracle engineers continue working on the TrenchBoot initiative to advance boot security and integrity for Linux. The tenth iteration of the TrenchBoot patches were posted this week as it works its way toward the mainline kernel.

For years we have been talking about TrenchBoot and its now up to its "v10" patches as it aims to be integrated in the mainline Linux kernel. TrenchBoot remains dedicated to establishing a hardware Root of Trust for Measurement on both AMD and Intel servers plus Arm servers too moving into the future. The Linux kernel side TrenchBoot work remains focused on Dynamic Launch (Secure Launch) enablement.

Trenchboot logo


TrenchBoot also ties into the bootloader and other software components for this greater boot security and integrity by combining both hardware and software features.

With the TrenchBoot v10 patches for the Linux kernel are a variety of code clean-ups and other alterations that were requested during prior code review:
Changes in v10:
- Removed patch #1 from previous set that forced the kernel_info section at a fixed offset.
- Add changes from Ard Biesheuvel to use the link step to generate the proper relative offsets for the MLE header in the kernel_info section.
- Fix sizes and alignment slightly in the SLR table. Add comments to the SLR header to indicate it is defined by the TrenchBoot project.
- Remove incorrect extra pop instruction noted in the head_64.S changes.
- Use the prefix tpm/tpm2 to distinguish between TPM versions as is done in the rest of the TPM related code.
- Rework the TPM locality setting/reporting changes to use "default" locality as opposed to "preferred". Remove uneeded extra locality function in the TPM interface (call the chip function directly).
- Adopt comment/documentation changes to code and commit message per requests from the community.
- Use u64 for the boot params physical address to avoid truncating pointers during casts.
- Split adding of new MSR registers into its own patch.
- Attempt to further address justification for using SHA-1 algorithm. Pick up some code suggestions for the SHA-1 patch.
- Introduct slaunch_is_txt_launch() function per Jarkko Sakkinen's suggestion.
- Implement minor changes to the EFI stub code per suggestions.

Those interested in boot security/integrity can see more via the v10 patches for TrenchBoot. Hopefully it won't be too much longer before finally seeing TrenchBoot Dynamic Launch support in the mainline kernel. For those learning about TrenchBoot for the first time, more background information is available on the project via TrenchBoot.org.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week