[PATCH v2 0/2] kho: drop the incoming sub-blob debugfs view
From: Long Wei
Date: Thu Nov 19 2026 - 01:41:03 EST
kho/in/sub_fdts exposes the raw contents of the sub-blobs described by
the incoming KHO FDT. KHO does not own those pages: they belong to the
producers' consumers and have independent lifetimes. LUO, for example,
restores and frees its state in early_initcall, before kho_init()
(fs_initcall) creates the debugfs view, so the blobs point at pages that
are already back in the buddy allocator. Reading them triggers a KASAN
use-after-free in _copy_to_user().
The same information is already available to user space from in/fdt,
which KHO does own and which stays reserved. Drop the directory rather
than adding another interface to describe it, keeping the -rc fix small.
Patch 1 removes the interface, patch 2 drops its documentation.
Changes in v2:
- Drop the in/blobs metadata file entirely
- Just remove in/sub_fdts to fix the UAF, no replacement interface
- Update Fixes tag to c609c144b0e8 (the commit that first added sub_fdts)
- Remove the now-unused #include <linux/io.h>
Long Wei (2):
kho: do not expose incoming sub-blob contents in debugfs
docs: kho: drop kho/in/sub_fdts description
Documentation/admin-guide/mm/kho.rst | 4 --
kernel/liveupdate/kexec_handover_debugfs.c | 47 +---------------------
2 files changed, 2 insertions(+), 49 deletions(-)
--
2.43.0