Re: [PATCH v1] radix-tree: fix memory leak of intermediate nodes on insert failure
From: Matthew Wilcox
Date: Wed Feb 25 2026 - 09:13:48 EST
On Wed, Feb 25, 2026 at 03:16:18PM +0800, Jiayuan Chen wrote:
> Fix this directly in __radix_tree_create() by tracking the first newly
> linked slot. On allocation failure, sever the partial path with
> rcu_assign_pointer() and free the orphaned nodes via call_rcu() to
> maintain RCU safety for concurrent readers.
I'm not interested in fixing this. Migrate qrtr to use XArray.