[PATCH] kho: Prevent reuse of preserved pages after a reservation failure

Pasha Tatashin pasha.tatashin at soleen.com
Wed Nov 11 13:36:39 PST 2026


On Wed Nov 11, 2026 at 4:28 PM EST, Pasha Tatashin wrote:
> On Tue, 10 Nov 2026 23:09:30 -0800, Chris Down <chris at chrisdown.name> wrote:
>> kho_preserved_memory_reserve() reserves each range of preserved memory
>> in memblock and marks it noinit, but ignores both return values. Either
>> can fail when memblock has to grow its reserved array and can't find
>> room, which at this point in boot it may only take from KHO bootmem.
>> The boot then goes on as if the range were reserved, and two things
>> can follow:
>> 
>> [...]
>
> Reviewed-by: Pasha Tatashin <pasha.tatashin at soleen.com>
^^^

I mixed up my review threads and replied to this one by mistake. I 
intended to reply to: "kho: Reclaim the metadata page left reserved 
after kexec". Regardless, we are still waiting for v2 on this patch, and 
I will send a separate email regarding the other one.

-- 
Pasha




More information about the kexec mailing list