[PATCH 1/9] kho: Reclaim the metadata page left reserved after kexec

Breno Leitao leitao at debian.org
Wed Nov 11 03:08:48 PST 2026


On Tue, Nov 10, 2026 at 11:52:55PM -0800, Chris Down wrote:
> After a KHO kexec, the new kernel keeps the page holding the previous
> kernel's kexec metadata reserved for as long as it runs. It only needs
> the page once, since kho_in_kexec_metadata() copies the previous release
> and the kexec count out of it at boot, and nothing reads it again.

Good catch.

> 
> Free it with kho_restore_free() once copying is complete.
> 
> Fixes: 76aa46b9e404 ("kho: kexec-metadata: track previous kernel chain")
> Signed-off-by: Chris Down <chris at chrisdown.name>

Tested-by: Breno Leitao <leitao at debian.org>



More information about the kexec mailing list