[PATCH] kho: free chunks using free_page() instead of kfree()

Pasha Tatashin pasha.tatashin at soleen.com
Tue Nov 18 10:39:07 PST 2025


On Tue, Nov 18, 2025 at 1:22 PM Pratyush Yadav <pratyush at kernel.org> wrote:
>
> Before commit fa759cd75bce5 ("kho: allocate metadata directly from the
> buddy allocator"), the chunks were allocated from the slab allocator
> using kzalloc(). Those were rightly freed using kfree().
>
> When the commit switched to using the buddy allocator directly, it
> missed updating kho_mem_ser_free() to use free_page() instead of
> kfree().
>
> Fixes: fa759cd75bce5 ("kho: allocate metadata directly from the buddy allocator")
> Signed-off-by: Pratyush Yadav <pratyush at kernel.org>

Thank you for finding and fixing this issue.

Reviewed-by: Pasha Tatashin <pasha.tatashin at soleen.com>



More information about the kexec mailing list