summaryrefslogtreecommitdiff
path: root/drivers/firmware/efi/efi-init.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2023-02-03 19:39:38 +0300
committerArd Biesheuvel <ardb@kernel.org>2023-02-03 20:01:07 +0300
commit234fa51db95f3236a049557db735606908747f38 (patch)
treefbc0fe75bd47341262a1edeacc069d4498182954 /drivers/firmware/efi/efi-init.c
parentace013a543067ed33cf593144b18c6dbeb517cee (diff)
downloadlinux-234fa51db95f3236a049557db735606908747f38.tar.xz
efi: Drop minimum EFI version check at boot
We currently pass a minimum major version to the generic EFI helper that checks the system table magic and version, and refuse to boot if the value is lower. The motivation for this check is unknown, and even the code that uses major version 2 as the minimum (ARM, arm64 and RISC-V) should make it past this check without problems, and boot to a point where we have access to a console or some other means to inform the user that the firmware's major revision number made us unhappy. (Revision 2.0 of the UEFI specification was released in January 2006, whereas ARM, arm64 and RISC-V support where added in 2009, 2013 and 2017, respectively, so checking for major version 2 or higher is completely arbitrary) So just drop the check. Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'drivers/firmware/efi/efi-init.c')
-rw-r--r--drivers/firmware/efi/efi-init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/efi/efi-init.c b/drivers/firmware/efi/efi-init.c
index 1639159493e3..2c16080e1f71 100644
--- a/drivers/firmware/efi/efi-init.c
+++ b/drivers/firmware/efi/efi-init.c
@@ -92,7 +92,7 @@ static int __init uefi_init(u64 efi_system_table)
if (IS_ENABLED(CONFIG_64BIT))
set_bit(EFI_64BIT, &efi.flags);
- retval = efi_systab_check_header(&systab->hdr, 2);
+ retval = efi_systab_check_header(&systab->hdr);
if (retval)
goto out;