efi: Drop minimum EFI version check at boot
authorArd Biesheuvel <ardb@kernel.org>
Fri, 3 Feb 2023 16:39:38 +0000 (17:39 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 3 Feb 2023 17:01:07 +0000 (18:01 +0100)
commit234fa51db95f3236a049557db735606908747f38
treefbc0fe75bd47341262a1edeacc069d4498182954
parentace013a543067ed33cf593144b18c6dbeb517cee
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>
arch/ia64/kernel/efi.c
arch/x86/platform/efi/efi.c
drivers/firmware/efi/efi-init.c
drivers/firmware/efi/efi.c
include/linux/efi.h