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 15:24:28 +0100 [thread overview]
Message-ID: <c753baad-b5e3-4e9e-9af1-ae146bc908d9@app.fastmail.com> (raw)
In-Reply-To: <20261124140640.0f627d7e212c@wenske.fr>
On Tue, 24 Nov 2026, at 15:06, Sebastien WENSKE wrote:
> On Tue, 24 Nov 2026, at 12:38, Ard Biesheuvel wrote:
>> 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
>
> Hello Ard,
>
> It works, thanks - please consider my patch withdrawn.
>
> Tested on x86_64 under QEMU/KVM (q35, SMM) with Debian's OVMF
> 2025.02, both the plain and the Secure Boot capable builds (no keys
> enrolled), the kernel booted as a systemd-stub UKI (initrd through the
> LINUX_EFI_INITRD_MEDIA_GUID device path), then kexec'd twice in a row
> with kexec_file_load() and an initrd:
>
> - v7.2.10, the setup of my report: without any patch the kexec'd
> kernel oopses in tcp_parse_options+0xe7 again, 16 bytes of its text
> zeroed at the stale table's address (0x1d4bcf98). With your patch
> both kexec'd kernels log
>
> efi: ... (MEMATTR=0x1d4b9018 unusable) (INITRD=0x1d4bcf98 unusable)
>
> and run normally.
>
> - v7.3.6, with a debug print before the wipe: without a fix the
> kexec'd kernels read what looks like their own text at the table's
> address (e.g. base 0x74fb894800000002 size 0x7400000208b73b26) and
> clear it, without any visible failure this time. With your patch the
> table is disregarded and the wipe never runs - also with the flash
> locked to SMM (-global driver=cfi.pflash01,property=secure,value=on).
>
> - v6.18.65: applies, both kexecs fine.
>
> Tested-by: Sebastien WENSKE <sebastien@wenske.fr>
>
Excellent!
prev parent reply other threads:[~2026-11-24 14:24 UTC|newest]
Thread overview: 5+ 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 ` [PATCH] efi/libstub: Allocate the INITRD table in ACPI reclaim memory Ard Biesheuvel
2026-11-24 14:06 ` Sebastien WENSKE
2026-11-24 14:24 ` 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=c753baad-b5e3-4e9e-9af1-ae146bc908d9@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®