================================================================== BUG: KCSAN: data-race in rwsem_down_write_slowpath / rwsem_down_write_slowpath write to 0xffffc90002bc3ae0 of 1 bytes by task 5160 on cpu 0: rwsem_try_write_lock kernel/locking/rwsem.c:676 [inline] rwsem_down_write_slowpath+0x3dd/0xac0 kernel/locking/rwsem.c:1189 __down_write_common kernel/locking/rwsem.c:1347 [inline] __down_write kernel/locking/rwsem.c:1356 [inline] down_write+0xab/0xc0 kernel/locking/rwsem.c:1626 kernfs_add_one+0x5a/0x280 fs/kernfs/dir.c:826 __kernfs_create_file+0x145/0x180 fs/kernfs/file.c:1086 sysfs_add_file_mode_ns+0x132/0x1b0 fs/sysfs/file.c:313 create_files fs/sysfs/group.c:82 [inline] internal_create_group+0x441/0x9f0 fs/sysfs/group.c:189 internal_create_groups fs/sysfs/group.c:229 [inline] sysfs_create_groups+0x3f/0xf0 fs/sysfs/group.c:255 setup_gid_attrs drivers/infiniband/core/sysfs.c:1118 [inline] ib_setup_port_attrs+0xe87/0x1400 drivers/infiniband/core/sysfs.c:1394 add_one_compat_dev+0x297/0x390 drivers/infiniband/core/device.c:978 rdma_dev_init_net+0x1b9/0x240 drivers/infiniband/core/device.c:1194 ops_init+0x22a/0x2e0 net/core/net_namespace.c:137 setup_net+0x9f/0x230 net/core/net_namespace.c:446 copy_net_ns+0x310/0x450 net/core/net_namespace.c:579 create_new_namespaces+0x20e/0x440 kernel/nsproxy.c:132 unshare_nsproxy_namespaces+0x115/0x150 kernel/nsproxy.c:234 ksys_unshare+0x402/0x740 kernel/fork.c:3242 __do_sys_unshare kernel/fork.c:3316 [inline] __se_sys_unshare kernel/fork.c:3314 [inline] __x64_sys_unshare+0x1f/0x30 kernel/fork.c:3314 x64_sys_call+0x1cef/0x3020 arch/x86/include/generated/asm/syscalls_64.h:273 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x12c/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffc90002bc3ae0 of 1 bytes by task 3961 on cpu 1: rwsem_down_write_slowpath+0x44f/0xac0 kernel/locking/rwsem.c:1207 __down_write_common kernel/locking/rwsem.c:1347 [inline] __down_write kernel/locking/rwsem.c:1356 [inline] down_write+0xab/0xc0 kernel/locking/rwsem.c:1626 kernfs_remove_by_name_ns+0x6b/0x110 fs/kernfs/dir.c:1793 kernfs_remove_by_name include/linux/kernfs.h:639 [inline] remove_files fs/sysfs/group.c:28 [inline] sysfs_remove_group+0xa5/0x170 fs/sysfs/group.c:328 sysfs_remove_groups+0x3a/0x80 fs/sysfs/group.c:352 destroy_port drivers/infiniband/core/sysfs.c:1233 [inline] ib_free_port_attrs+0x173/0x250 drivers/infiniband/core/sysfs.c:1363 remove_one_compat_dev drivers/infiniband/core/device.c:1011 [inline] rdma_dev_exit_net+0x1aa/0x290 drivers/infiniband/core/device.c:1149 ops_exit_list net/core/net_namespace.c:199 [inline] ops_undo_list+0x285/0x420 net/core/net_namespace.c:252 cleanup_net+0x37c/0x5b0 net/core/net_namespace.c:702 process_one_work kernel/workqueue.c:3314 [inline] process_scheduled_works+0x4f0/0x9c0 kernel/workqueue.c:3397 worker_thread+0x58a/0x780 kernel/workqueue.c:3478 kthread+0x22a/0x280 kernel/kthread.c:436 ret_from_fork+0x146/0x330 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 value changed: 0x00 -> 0x01 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 3961 Comm: kworker/u8:17 Tainted: G W syzkaller #0 PREEMPT(lazy) Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 Workqueue: netns cleanup_net ==================================================================