Re: [PATCH] kho: Don't release incoming bootmem areas when kho_init() fails

From: Pasha Tatashin

Date: Sun Nov 08 2026 - 09:31:55 EST


On Sat, 07 Nov 2026 19:40:50 -0800, Chris Down <chris@xxxxxxxxxxxxxx> wrote:
> kho_populate() adds the incoming bootmem areas without reserving
> them. memblock_free_all() then hands the remainder to the buddy
> allocator.
>
> Unfortunately however, if kho_init() fails, err_free_bootmem
> currently frees every area with free_reserved_area(). This can free
> pages still backing early allocations or free buddy pages a second
> time.
>
> [...]

Reviewed-by: Pasha Tatashin <pasha.tatashin@xxxxxxxxxx>

--
Pasha