u-boot/lib/efi_loader
Ilias Apalodimas d69759aec2 tpm: measure DTB in PCR1 instead of PCR0
The PC client spec [0], doesn't describe measurements for DTBs. It does
describe what do to for ACPI tables though.

There is a description for ACPI in 3.3.4.1 PCR[0] – SRTM, POST BIOS,
and Embedded Drivers and they explicitly mention ACPI in there. There's
no mention of ACPI in 3.3.4.2 PCR[1] – Host Platform Configuration.

However, in Figure 6 --  PCR Mapping of UEFI Components ACPI is shown
in PCR1. The general description also mentions PCR0 is for code and PCR1
is for data such as ACPI and SMBIOS.

So let's switch over the DTB measurements to PCR1 which seems a better
fit.

[0] https://trustedcomputinggroup.org/resource/pc-client-specific-platform-firmware-profile-specification

Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Eddie James <eajames@linux.ibm.com>
2024-06-16 09:45:57 +02:00
..
.gitignore efi_loader: git ignore helloworld_efi.S 2020-01-07 18:08:20 +01:00
boothart.c efi_loader: add an EFI binary to print boot hart ID 2022-12-02 19:17:24 +01:00
capsule_esl.dtsi.in efi_loader: Fix capsule_esl.dtsi.in comment style 2024-06-10 15:05:09 +02:00
dtbdump.c efi_loader: Remove <common.h> 2023-12-21 08:54:37 -05:00
efi_acpi.c efi_loader: 'EFI using ACPI tables at' should be debug message 2024-04-13 11:03:12 +02:00
efi_bootbin.c efi_loader: correct handling of EFI binary return code 2024-03-21 07:28:43 +01:00
efi_bootmgr.c efi_loader: do not install dtb if bootmgr fails 2024-05-01 07:39:00 +02:00
efi_boottime.c efi_loader: Clean up efi_dp_append and efi_dp_concat 2024-01-13 18:17:47 +01:00
efi_capsule.c efi_loader: Remove <common.h> 2023-12-21 08:54:37 -05:00
efi_conformance.c efi_loader: Remove <common.h> 2023-12-21 08:54:37 -05:00
efi_console.c efi_loader: Remove <common.h> 2023-12-21 08:54:37 -05:00
efi_device_path_to_text.c efi_loader: Remove <common.h> 2023-12-21 08:54:37 -05:00
efi_device_path_utilities.c efi_loader: Clean up efi_dp_append and efi_dp_concat 2024-01-13 18:17:47 +01:00
efi_device_path.c efi_loader: fix description efi_dp_shorten 2024-05-01 08:39:52 +02:00
efi_disk.c efi_loader: simplify error message in efi_disk_create_raw() 2024-02-12 17:35:34 +01:00
efi_dt_fixup.c efi_loader: Remove <common.h> 2023-12-21 08:54:37 -05:00
efi_esrt.c efi_loader: fix iteration of FMP protocols 2024-01-13 18:17:46 +01:00
efi_file.c efi_loader: Remove <common.h> 2023-12-21 08:54:37 -05:00
efi_firmware.c efi_loader: check efi_get_variable_int return value 2024-01-29 11:31:44 +01:00
efi_freestanding.c efi_loader: Remove <common.h> 2023-12-21 08:54:37 -05:00
efi_gop.c efi_loader: Remove <common.h> 2023-12-21 08:54:37 -05:00
efi_helper.c efi_loader: pass GUID by address to efi_dp_from_lo 2024-05-01 08:40:42 +02:00
efi_hii_config.c efi_loader: Remove <common.h> 2023-12-21 08:54:37 -05:00
efi_hii.c efi_loader: Remove <common.h> 2023-12-21 08:54:37 -05:00
efi_image_loader.c efi_loader: Remove <common.h> 2023-12-21 08:54:37 -05:00
efi_load_initrd.c efi_loader: pass GUID by address to efi_dp_from_lo 2024-05-01 08:40:42 +02:00
efi_load_options.c efi_loader: Remove <common.h> 2023-12-21 08:54:37 -05:00
efi_memory.c efi_loader: eliminate duplicate runtime section definitions 2024-04-13 11:03:12 +02:00
efi_net.c efi_loader: Remove <common.h> 2023-12-21 08:54:37 -05:00
efi_riscv.c efi_loader: Remove <common.h> 2023-12-21 08:54:37 -05:00
efi_rng.c efi_loader: Remove <common.h> 2023-12-21 08:54:37 -05:00
efi_root_node.c efi_loader: Remove <common.h> 2023-12-21 08:54:37 -05:00
efi_runtime.c efi_loader: enable QueryVariableInfo at runtime for file backed variables 2024-05-01 07:40:05 +02:00
efi_setup.c efi_loader: Remove <common.h> 2023-12-21 08:54:37 -05:00
efi_signature.c efi_loader: Remove <common.h> 2023-12-21 08:54:37 -05:00
efi_smbios.c smbios: copy QEMU tables 2024-01-16 17:05:29 -05:00
efi_string.c efi_loader: Remove <common.h> 2023-12-21 08:54:37 -05:00
efi_tcg2.c tpm: measure DTB in PCR1 instead of PCR0 2024-06-16 09:45:57 +02:00
efi_unicode_collation.c lib/charset: Map Unicode code points to CP437 code points 1-31 2024-03-21 06:56:13 +01:00
efi_var_common.c efi_loader: enable QueryVariableInfo at runtime for file backed variables 2024-05-01 07:40:05 +02:00
efi_var_file.c efi_loader: move efi_var_collect to common functions 2024-04-13 11:03:12 +02:00
efi_var_mem.c efi_loader: address coverity report 492766 for dead code 2024-05-01 07:39:27 +02:00
efi_var_seed.S efi_loader: pre-seed UEFI variables 2020-07-16 12:37:02 +02:00
efi_variable_tee.c efi_loader: enable QueryVariableInfo at runtime for file backed variables 2024-05-01 07:40:05 +02:00
efi_variable.c efi_loader: Fix EFI_VARIABLE_APPEND_WRITE hash check 2024-06-10 15:01:44 +02:00
efi_watchdog.c efi_loader: Remove <common.h> 2023-12-21 08:54:37 -05:00
helloworld.c efi_loader: print file path w/o boot device 2023-05-13 11:09:51 +02:00
initrddump.c efi_loader: Remove <common.h> 2023-12-21 08:54:37 -05:00
Kconfig Merge patch series "Kconfig: some cleanups" 2024-04-22 11:01:56 -06:00
Makefile efi_loader: move efi_var_collect to common functions 2024-04-13 11:03:12 +02:00
smbiosdump.c smbios: correctly name Structure Table Maximum Size field 2024-02-02 19:57:45 +01:00