[PATCH 0/4] efi/libstub: Fall back to CC proto for measurement

Ard Biesheuvel
2024-03-04T10:44:18Z

From: Ard Biesheuvel <ardb@kernel.org>

This is a follow-up to Kuppuswamy's series [0] to add TDX based
measurement of the initrd and command line to the EFI stub.

In view of time wrt the merge window, I've taken the liberty of applying
my review feedback to the code directly, rather than going back and
forth with the author to converge on something we can both agree on.

Cc: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>

[0] https://lore.kernel.org/all/20240215030002.281456-1-sathyanarayanan.kuppuswamy@linux.intel.com/

Ard Biesheuvel (2):
efi/libstub: Fold efi_tcg2_tagged_event into efi_measured_event
efi/libstub: Measure into CC protocol if TCG2 protocol is absent

Kuppuswamy Sathyanarayanan (2):
efi/libstub: Add Confidential Computing (CC) measurement typedefs
efi/libstub: Add get_event_log() support for CC platforms

drivers/firmware/efi/libstub/efi-stub-helper.c | 83 ++++++++++------
drivers/firmware/efi/libstub/efi-stub.c | 2 +-
drivers/firmware/efi/libstub/efistub.h | 104 ++++++++++++++++++--
drivers/firmware/efi/libstub/tpm.c | 74 +++++++++-----
drivers/firmware/efi/libstub/x86-stub.c | 2 +-
include/linux/efi.h | 4 +
6 files changed, 206 insertions(+), 63 deletions(-)

--
2.44.0.278.ge034bb2e1d-goog