From: "Ard Biesheuvel" <ardb@kernel.org>
To: "Sebastien WENSKE" <sebastien@wenske.fr>, linux-efi@vger.kernel.org
Cc: swenske@veepee.com,
"Ilias Apalodimas" <ilias.apalodimas@linaro.org>,
"James Le Cuirot" <chewi@gentoo.org>,
linux-kernel@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH] efi/libstub: Allocate the INITRD table in ACPI reclaim memory
Date: Tue, 24 Nov 2026 12:38:18 +0100 [thread overview]
Message-ID: <37c38d1e-03cc-44ae-b617-d45fbf80acc5@app.fastmail.com> (raw)
In-Reply-To: <20261012133712.618913-1-sebastien@wenske.fr>
Hello Sebastien,
On Mon, 12 Oct 2026, at 15:37, Sebastien WENSKE wrote:
> Commit 6e62d1c6f2c7 ("efi: Wipe INITRD config table from memory after
> consumption") makes the kernel clear the base and size of the
> LINUX_EFI_INITRD_MEDIA_GUID configuration table once it has read them,
> so that a kexec'd kernel no longer picks up a stale initrd.
>
> However, the stub allocates that table from EFI_LOADER_DATA, which the
> kernel that consumes it treats as ordinary RAM, while the configuration
> table entry pointing at it survives kexec. A kexec'd kernel therefore
> finds the same address in the configuration table, and clears 16 bytes
> there again, in memory that may by then hold anything - including the
> kexec'd kernel's own image, which kexec_file_load() is free to place
> there.
>
...
>
> Allocate the table from EFI_ACPI_RECLAIM_MEMORY instead, as the stub
> already does for the RNG seed table so that it survives a kexec reboot.
> The table then stays where it is across kexec, and the wipe always
> lands on the table itself.
>
There was a report recently about EFI_ACPI_RECLAIM_MEMORY being
problematic in combination with hibernate, as those regions tends
to move around.
Can you try this fix instead please?
https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git/commit/?h=urgent&id=6863183e8b65e833f8140e20d526282a725e040e
prev parent reply other threads:[~2026-11-24 11:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-12 13:37 Sebastien WENSKE
2026-10-22 15:39 ` [PATCH] x86/efi: Drop stale INITRD table entry on kexec boot Jaehee Park
2026-11-24 11:38 ` Ard Biesheuvel [this message]
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=37c38d1e-03cc-44ae-b617-d45fbf80acc5@app.fastmail.com \
--to=ardb@kernel.org \
--cc=chewi@gentoo.org \
--cc=ilias.apalodimas@linaro.org \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sebastien@wenske.fr \
--cc=stable@vger.kernel.org \
--cc=swenske@veepee.com \
/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®