Re: [PATCH 0/2] kernfs: fix two races in __kernfs_new_node()

From: Tejun Heo

Date: Thu Dec 03 2026 - 14:25:31 EST


On Wed, Dec 02, 2026 at 04:45:13PM +0000, Josef Bacik wrote:
> kernfs_find_and_get_node_by_id() can find a node in the idr while
> __kernfs_new_node() is still setting it up, and after its error path has
> freed it. Patch 1 sets the deactivated bias before the node goes into
> the idr, and patch 2 frees the node with kernfs_free_rcu() on that error
> path.

For the series,

Acked-by: Tejun Heo <tj@xxxxxxxxxx>

Thanks.

--
tejun