summaryrefslogtreecommitdiffstats
path: root/include/linux/efi.h
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2023-02-03 17:39:38 +0100
committerArd Biesheuvel <ardb@kernel.org>2023-02-03 18:01:07 +0100
commit234fa51db95f3236a049557db735606908747f38 (patch)
treefbc0fe75bd47341262a1edeacc069d4498182954 /include/linux/efi.h
parentace013a543067ed33cf593144b18c6dbeb517cee (diff)
downloadlinux-234fa51db95f3236a049557db735606908747f38.tar.gz
linux-234fa51db95f3236a049557db735606908747f38.tar.bz2
linux-234fa51db95f3236a049557db735606908747f38.zip
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 'include/linux/efi.h')
-rw-r--r--include/linux/efi.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/efi.h b/include/linux/efi.h
index 507390dda8b9..9d455d502ac9 100644
--- a/include/linux/efi.h
+++ b/include/linux/efi.h
@@ -721,8 +721,7 @@ static inline void efi_esrt_init(void) { }
extern int efi_config_parse_tables(const efi_config_table_t *config_tables,
int count,
const efi_config_table_type_t *arch_tables);
-extern int efi_systab_check_header(const efi_table_hdr_t *systab_hdr,
- int min_major_version);
+extern int efi_systab_check_header(const efi_table_hdr_t *systab_hdr);
extern void efi_systab_report_header(const efi_table_hdr_t *systab_hdr,
unsigned long fw_vendor);
extern u64 efi_get_iobase (void);