[SPR][EMR][GNR] TDX: efi: TD Measurement support for kernel cmdline/initrd sections from EFI stub
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Committed
|
Undecided
|
Unassigned | ||
Noble |
Fix Released
|
Undecided
|
Unassigned | ||
linux-intel (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Noble |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This is a public version of https:/
[Description]
When a TD is created, during the boot process, steps like loading the firmware, bootloader, kernel image, etc are measured and stored in RTMR registers to support the trusted boot model. After boot, this measured value is used to validate the integrity of the boot process.
During the direct boot process, bootloader is responsible for measuring the kernel image before loading the kernel. But if the kernel is loaded from EFI bootstub, the related measurements needs to be owned by the EFI bootstub. This support needs to be added to Linux EFI boot stub code.
Also, as per the following discussion, the kernel command line or initrd section measurements also needs be owned by the EFI bootsub.
[Fix]
Cherry pick cleanly:
d228814b1913 efi/libstub: Add get_event_log() support for CC platforms
ac93cbfc2a2c efi/libstub: Measure into CC protocol if TCG2 protocol is absent
0bbe5b0ea97a efi/libstub: Add Confidential Computing (CC) measurement typedefs
7a1381e8313f efi/tpm: Use symbolic GUID name from spec for final events table
3e0b0f880e9e efi/libstub: Use TPM event typedefs from the TCG PC Client spec
External Links:
https:/
Those are all merged into upstream.
[Test Plan]
Build/sign/boot with secure boot enabled.
[Where problems could occur]
At boot time, as this is modifying the efi libstub. Could be impacting secure boot.
CVE References
description: | updated |
Changed in linux-intel (Ubuntu Noble): | |
status: | New → Fix Released |
Applied all the listed commits to noble/linux, including also:
9c55461040a9 ("x86/efistub: Remap kernel text read-only before dropping NX attribute")