[PATCH 1/2] kho: expose incoming sub-blob metadata instead of contents
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Tue Nov 17 01:42:52 PST 2026
> Incoming sub-blob pages are owned by their consumers and have independent
> lifetimes. Some consumers, such as LUO, restore and free their state in
> early_initcall, i.e. before kho_init() (fs_initcall) builds the debugfs
> view:
>
> early_initcall: luo_early_startup()
> -> kho_retrieve_subtree("LUO")
> -> kho_restore_free(luo_ser) /* page is freed */
>
> fs_initcall: kho_init()
> -> kho_in_debugfs_init()
> -> phys_to_virt(luo_ser_phys)
> -> debugfs_create_blob("LUO", ...)
>
> debugfs therefore ends up pointing at a page that was already handed back
> [ ... ]
> size of every incoming sub-blob. The FDT itself is reserved by KHO and is
> still exposed as in/fdt.
>
> Fixes: 062dd306d99c ("kho: fix kho_in_debugfs_init() to handle non-FDT blobs")
> Signed-off-by: Long Wei <longwei27 at huawei.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261117092951.4017931-1-longwei27@huawei.com?part=1
More information about the kexec
mailing list