================================================================== BUG: KCSAN: data-race in rwsem_down_write_slowpath / rwsem_down_write_slowpath write to 0xffffc90003847ae8 of 1 bytes by task 17762 on cpu 1: rwsem_try_write_lock kernel/locking/rwsem.c:653 [inline] rwsem_down_write_slowpath+0x3c9/0xa90 kernel/locking/rwsem.c:1159 __down_write_common kernel/locking/rwsem.c:1317 [inline] __down_write kernel/locking/rwsem.c:1326 [inline] down_write+0xab/0xc0 kernel/locking/rwsem.c:1591 kernfs_add_one+0x5a/0x280 fs/kernfs/dir.c:796 __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/0x9e0 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+0xe89/0x1400 drivers/infiniband/core/sysfs.c:1394 add_one_compat_dev+0x297/0x390 drivers/infiniband/core/device.c:977 rdma_dev_init_net+0x1b9/0x240 drivers/infiniband/core/device.c:1193 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:581 create_new_namespaces+0x20e/0x440 kernel/nsproxy.c:130 unshare_nsproxy_namespaces+0xe6/0x120 kernel/nsproxy.c:226 ksys_unshare+0x3f2/0x6f0 kernel/fork.c:3173 __do_sys_unshare kernel/fork.c:3244 [inline] __se_sys_unshare kernel/fork.c:3242 [inline] __x64_sys_unshare+0x1f/0x30 kernel/fork.c:3242 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/0x370 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffc90003847ae8 of 1 bytes by task 17760 on cpu 0: rwsem_down_write_slowpath+0x43d/0xa90 kernel/locking/rwsem.c:1177 __down_write_common kernel/locking/rwsem.c:1317 [inline] __down_write kernel/locking/rwsem.c:1326 [inline] down_write+0xab/0xc0 kernel/locking/rwsem.c:1591 kernfs_remove_by_name_ns+0x5c/0xf0 fs/kernfs/dir.c:1717 kernfs_remove_by_name include/linux/kernfs.h:633 [inline] sysfs_unmerge_group+0x80/0xb0 fs/sysfs/group.c:408 rpm_sysfs_remove drivers/base/power/sysfs.c:823 [inline] dpm_sysfs_remove+0x63/0x90 drivers/base/power/sysfs.c:832 device_del+0x13d/0x790 drivers/base/core.c:3855 netdev_unregister_kobject+0x24d/0x270 net/core/net-sysfs.c:2329 unregister_netdevice_many_notify+0x1346/0x1710 net/core/dev.c:12461 unregister_netdevice_many net/core/dev.c:12489 [inline] unregister_netdevice_queue+0x1cd/0x200 net/core/dev.c:12303 unregister_netdevice include/linux/netdevice.h:3409 [inline] ppp_release+0x9c/0x150 drivers/net/ppp/ppp_generic.c:415 __fput+0x29b/0x650 fs/file_table.c:469 ____fput+0x1c/0x30 fs/file_table.c:497 task_work_run+0x130/0x1a0 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:67 [inline] exit_to_user_mode_loop+0x1f4/0x6f0 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:325 [inline] do_syscall_64+0x249/0x370 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00 -> 0x01 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 17760 Comm: syz.3.3146 Tainted: G W syzkaller #0 PREEMPT(full) Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 ==================================================================