Re: [PATCH net] netconsole: Acquire su_mutex before navigating configs hierarchy

From: patchwork-bot+netdevbpf

Date: Fri Oct 31 2025 - 21:00:30 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Wed, 29 Oct 2025 13:50:24 -0700 you wrote:
> There is a race between operations that iterate over the userdata
> cg_children list and concurrent add/remove of userdata items through
> configfs. The update_userdata() function iterates over the
> nt->userdata_group.cg_children list, and count_extradata_entries() also
> iterates over this same list to count nodes.
>
> Quoting from Documentation/filesystems/configfs.rst:
> > A subsystem can navigate the cg_children list and the ci_parent pointer
> > to see the tree created by the subsystem. This can race with configfs'
> > management of the hierarchy, so configfs uses the subsystem mutex to
> > protect modifications. Whenever a subsystem wants to navigate the
> > hierarchy, it must do so under the protection of the subsystem
> > mutex.
>
> [...]

Here is the summary with links:
- [net] netconsole: Acquire su_mutex before navigating configs hierarchy
https://git.kernel.org/netdev/net/c/d7d2fcf7ae31

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html