Re: [PATCH v2 0/2] kho: drop the incoming sub-blob debugfs view
From: Mike Rapoport
Date: Thu Nov 19 2026 - 03:26:42 EST
Hi,
Please don't send vN+1 as a reply to vN.
> 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.
Patch 2 is only four lines of documentation for the interface patch 1
removes. It could be folded into patch 1 so that a stable backport
removes the documentation together with the code.
--
Sincerely yours,
Mike.