From: Gregory Price <gourry@gourry.net>
To: Ard Biesheuvel <ardb+git@google.com>
Cc: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org,
x86@kernel.org, Ard Biesheuvel <ardb@kernel.org>,
Dave Young <dyoung@redhat.com>,
Usama Arif <usamaarif642@gmail.com>,
Jiri Slaby <jirislaby@kernel.org>,
Breno Leitao <leitao@debian.org>
Subject: Re: [PATCH 0/5] x86/efi: Re-enable memory attributes table for kexec
Date: Sun, 29 Mar 2026 13:55:22 -0400 [thread overview]
Message-ID: <aclnisM4_DGNS2U0@gourry-fedora-PF4VCD3F> (raw)
In-Reply-To: <20260326132655.1733873-7-ardb+git@google.com>
On Thu, Mar 26, 2026 at 02:26:56PM +0100, Ard Biesheuvel wrote:
> From: Ard Biesheuvel <ardb@kernel.org>
>
> The EFI memory attributes table augments the EFI memory map, and
> provides permission attributes for all runtime code and data regions
> that are otherwise mapped read-write-execute in their entirety.
>
> Currently, this table is disregarded when doing kexec boot on x86, for
> two reasons:
> - the boot services data region that holds the table is not reserved
> correctly, and may contain garbage at kexec time
> - a misguided sanity check on the size of the table is likely to trigger
> on kexec, as the EFI memory map has been trimmed down by that time.
>
> Fix both issues, so that the EFI memory attributes table can be taken
> into account again at kexec time. Note that this requires that the call
> to efi_memattr_init() is moved to a later point for x86.
>
I appreciate this fixup, I'll try to give it a test in some known host
configuration switch scenarios I know don't work across multiple kexecs
and see if it is an improvement.
~Gregory
> Cc: Dave Young <dyoung@redhat.com>
> Cc: Gregory Price <gourry@gourry.net>
> Cc: Usama Arif <usamaarif642@gmail.com>
> Cc: Jiri Slaby <jirislaby@kernel.org>
> Cc: Breno Leitao <leitao@debian.org>
>
> Ard Biesheuvel (5):
> efi/memattr: Fix thinko in table size sanity check
> x86/efi: Gather initial memory reservation and table handling logic
> x86/efi: Defer the call to efi_memattr_init()
> efi: Use efi_mem_reserve() to reserve the memory attribute table
> x86/efi: Drop kexec quirk for the EFI memory attributes table
>
> arch/x86/include/asm/efi.h | 5 ++---
> arch/x86/kernel/setup.c | 11 ++---------
> arch/x86/platform/efi/efi.c | 15 +++++++++++++++
> arch/x86/platform/efi/quirks.c | 4 ----
> drivers/firmware/efi/efi.c | 2 +-
> drivers/firmware/efi/memattr.c | 17 ++++++++++-------
> 6 files changed, 30 insertions(+), 24 deletions(-)
>
>
> base-commit: 217c0a5c177a3d4f7c8497950cbf5c36756e8bbb
> --
> 2.53.0.1018.g2bb0e51243-goog
>
next prev parent reply other threads:[~2026-03-29 17:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-26 13:26 Ard Biesheuvel
2026-03-26 13:26 ` [PATCH 1/5] efi/memattr: Fix thinko in table size sanity check Ard Biesheuvel
2026-03-29 17:51 ` Gregory Price
2026-03-31 7:07 ` Ard Biesheuvel
2026-03-26 13:26 ` [PATCH 2/5] x86/efi: Gather initial memory reservation and table handling logic Ard Biesheuvel
2026-03-29 17:53 ` Gregory Price
2026-03-26 13:26 ` [PATCH 3/5] x86/efi: Defer the call to efi_memattr_init() Ard Biesheuvel
2026-03-26 13:27 ` [PATCH 4/5] efi: Use efi_mem_reserve() to reserve the memory attribute table Ard Biesheuvel
2026-03-26 13:27 ` [PATCH 5/5] x86/efi: Drop kexec quirk for the EFI memory attributes table Ard Biesheuvel
2026-03-29 17:55 ` Gregory Price [this message]
2026-03-30 10:53 ` [PATCH 0/5] x86/efi: Re-enable memory attributes table for kexec Dave Young
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aclnisM4_DGNS2U0@gourry-fedora-PF4VCD3F \
--to=gourry@gourry.net \
--cc=ardb+git@google.com \
--cc=ardb@kernel.org \
--cc=dyoung@redhat.com \
--cc=jirislaby@kernel.org \
--cc=leitao@debian.org \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=usamaarif642@gmail.com \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®