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

From: Jakub Kicinski

Date: Fri Oct 31 2025 - 20:54:48 EST


On Wed, 29 Oct 2025 13:50:24 -0700 Gustavo Luiz Duarte 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.

Teaching syzbot how to create a netconsole would probably go a long way
towards catching these sort of issues. Looks like right now syzbot has
coverage only for the paths that don't need a target:
https://syzkaller.appspot.com/upstream/coverage?period=month