Re: [PATCH 0/2] pstore/ram: refuse zones overlapping the initrd

From: Qianhui Xu

Date: Wed Nov 25 2026 - 04:07:50 EST


Hello Kees,

A short ping on this series (posted 2026-11-16, no reply so far): is the
shape acceptable, or would you rather see the overlap handled somewhere
else?

The problem in one paragraph: on this board the bootloader places the
initrd at a physical address of its own choosing and cannot see the
device tree reservations, so the buffer can land inside a ramoops zone.
The zone is registered a few milliseconds later and the console writes
over the initrd, which then fails to unpack ("invalid magic at start of
compressed archive"). 2/2 skips such a zone for that boot and says which
one was dropped; 1/2 is the helper that reports the initrd's physical
range.

Open questions I would rather have answered by you than guessed:

- Layer: the check lives in the ramoops probe because that is where the
zone becomes dangerous. If you would prefer it at the reservation /
memblock level instead, I will move it.
- Cc: stable: I left it out, as it needs a bootloader and a device tree
that disagree about memory. Say the word if it belongs there.
- The one limitation is documented in the code: a module loaded after the
initrd is gone cannot see the overlap and gets no protection.

I am happy to resend as v2 with whatever you ask for; nothing here is
pressing enough to justify nagging, so this is the only ping unless you
would like another.

Disclosure: this series and this message were prepared with the help of an
LLM coding assistant; the reproduction, the measurements and the decision
to send are mine.

Best regards,
Qianhui Xu