[lkml]   [2020]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH 01/28] efi/x86: Add TPM related EFI tables to unencrypted mapping checks
From: Tom Lendacky <>

When booting with SME active, EFI tables must be mapped unencrypted since
they were built by UEFI in unencrypted memory. Update the list of tables
to be checked during early_memremap() processing to account for the EFI
TPM tables.

This fixes a bug where an EFI TPM log table has been created by UEFI, but
it lives in memory that has been marked as usable rather than reserved.

Cc: <> # v5.4+
Signed-off-by: Tom Lendacky <>
Signed-off-by: Ard Biesheuvel <>
arch/x86/platform/efi/efi.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c
index ebcec4bd273f..3ce695501681 100644
--- a/arch/x86/platform/efi/efi.c
+++ b/arch/x86/platform/efi/efi.c
@@ -88,6 +88,8 @@ static const unsigned long * const efi_tables[] = {
+ &efi.tpm_log,
+ &efi.tpm_final_log,

u64 efi_setup; /* efi setup_data physical address */
 \ /
  Last update: 2020-03-08 09:10    [W:0.116 / U:1.828 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site