mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sebastien WENSKE <sebastien@wenske.fr>
To: Ard Biesheuvel <ardb@kernel.org>, 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:06:41 +0100	[thread overview]
Message-ID: <20261124140640.0f627d7e212c@wenske.fr> (raw)
In-Reply-To: <37c38d1e-03cc-44ae-b617-d45fbf80acc5@app.fastmail.com>

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>

Thanks,
Sebastien

  reply	other threads:[~2026-11-24 14:06 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 [this message]
2026-11-24 14:24     ` Ard Biesheuvel

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=20261124140640.0f627d7e212c@wenske.fr \
    --to=sebastien@wenske.fr \
    --cc=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=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®