[PATCH] kho: Don't release incoming bootmem areas when kho_init() fails
Pasha Tatashin
pasha.tatashin at soleen.com
Sun Nov 8 06:29:04 PST 2026
On Sat, 07 Nov 2026 19:40:50 -0800, Chris Down <chris at chrisdown.name> 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 at soleen.com>
--
Pasha
More information about the kexec
mailing list