efi/x86: Add RNG seed EFI table to unencrypted mapping check
authorTom Lendacky <thomas.lendacky@amd.com>
Fri, 28 Feb 2020 12:14:04 +0000 (13:14 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 29 Feb 2020 09:16:56 +0000 (10:16 +0100)
commitbadc61982adb6018a48ed8fe32087b9754cae14b
tree2168d6f165beb5fa8156fc9cfc9f62c8f8766ffe
parentf10e80a19b07b58fc2adad7945f8313b01503bae
efi/x86: Add RNG seed EFI table to unencrypted mapping check

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
RNG seed table.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: linux-efi@vger.kernel.org
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: David Hildenbrand <david@redhat.com>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
Link: https://lore.kernel.org/r/b64385fc13e5d7ad4b459216524f138e7879234f.1582662842.git.thomas.lendacky@amd.com
Link: https://lore.kernel.org/r/20200228121408.9075-3-ardb@kernel.org
arch/x86/platform/efi/efi.c
drivers/firmware/efi/efi.c
include/linux/efi.h