]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/efi: skip memattr table on kexec boot
authorDave Young <dyoung@redhat.com>
Thu, 23 Jan 2025 06:36:27 +0000 (14:36 +0800)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 23 Jan 2025 08:58:43 +0000 (09:58 +0100)
commit64b45dd46e154ee7641d7e0457f3fa266e57179f
tree54738573cd104864ad851b0ff72803073e33eef0
parentb5d1e6ee761a109400e97ac6a1b91c57d0f6a43a
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: 8fbe4c49c0cc ("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>
arch/x86/platform/efi/quirks.c