2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/arch/x86/platform/efi
Dave Young 64b45dd46e x86/efi: skip memattr table on kexec boot
efi_memattr_init() added a sanity check to avoid firmware caused corruption.
The check is based on efi memmap entry numbers, but kexec only takes the
runtime related memmap entries thus this caused many false warnings, see
below thread for details:

https://lore.kernel.org/all/20250108215957.3437660-2-usamaarif642@gmail.com/

Ard suggests to skip the efi memattr table in kexec, this makes sense because
those memattr fixups are not critical.

Fixes: 8fbe4c49c0 ("efi/memattr: Ignore table if the size is clearly bogus")
Cc: <stable@vger.kernel.org> # v6.13+
Reported-by: Breno Leitao <leitao@debian.org>
Reported-and-tested-by: Usama Arif <usamaarif642@gmail.com>
Suggested-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
2025-01-23 09:58:43 +01:00
..
efi_32.c efi/x86: Move EFI runtime call setup/teardown helpers out of line 2023-09-11 06:37:50 +00:00
efi_64.c x86/efi: Drop support for the EFI_PROPERTIES_TABLE 2024-11-15 17:40:00 +01:00
efi_stub_32.S x86: Prepare asm files for straight-line-speculation 2021-12-08 12:25:37 +01:00
efi_stub_64.S x86: Prepare asm files for straight-line-speculation 2021-12-08 12:25:37 +01:00
efi_thunk_64.S efi/x86-mixed: move unmitigated RET into .rodata 2022-08-16 09:28:05 +02:00
efi.c x86/efistub: Drop long obsolete UGA support 2025-01-14 08:34:24 +01:00
Makefile x86/efi: Drop support for fake EFI memory maps 2024-07-02 00:26:24 +02:00
memmap.c x86/efi: Drop support for fake EFI memory maps 2024-07-02 00:26:24 +02:00
quirks.c x86/efi: skip memattr table on kexec boot 2025-01-23 09:58:43 +01:00
runtime-map.c efi: x86: make kobj_type structure constant 2023-05-10 19:00:40 +02:00