================================================================== BUG: KCSAN: data-race in rwsem_down_write_slowpath / rwsem_down_write_slowpath write to 0xffffc9000bf3bac8 of 1 bytes by task 28131 on cpu 0: rwsem_try_write_lock kernel/locking/rwsem.c:676 [inline] rwsem_down_write_slowpath+0x3eb/0xab0 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:1632 kernfs_add_one+0x5a/0x290 fs/kernfs/dir.c:825 __kernfs_create_file+0x145/0x180 fs/kernfs/file.c:1079 sysfs_add_file_mode_ns+0x132/0x1b0 fs/sysfs/file.c:316 create_files fs/sysfs/group.c:82 [inline] internal_create_group+0x43e/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_port drivers/infiniband/core/sysfs.c:1202 [inline] ib_setup_port_attrs+0xa2c/0x1480 drivers/infiniband/core/sysfs.c:1388 add_one_compat_dev+0x297/0x390 drivers/infiniband/core/device.c:979 rdma_dev_init_net+0x1b9/0x240 drivers/infiniband/core/device.c:1195 ops_init+0x22a/0x2e0 net/core/net_namespace.c:137 setup_net+0x9f/0x230 net/core/net_namespace.c:446 copy_net_ns+0x31a/0x460 net/core/net_namespace.c:579 create_new_namespaces+0x1f6/0x420 kernel/nsproxy.c:132 unshare_nsproxy_namespaces+0x115/0x150 kernel/nsproxy.c:234 ksys_unshare+0x411/0x760 kernel/fork.c:3269 __do_sys_unshare kernel/fork.c:3343 [inline] __se_sys_unshare kernel/fork.c:3341 [inline] __x64_sys_unshare+0x1f/0x30 kernel/fork.c:3341 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+0x136/0x3c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffc9000bf3bac8 of 1 bytes by task 28065 on cpu 1: rwsem_down_write_slowpath+0x462/0xab0 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:1632 kernfs_remove_by_name_ns+0x6b/0x110 fs/kernfs/dir.c:1792 kernfs_remove_by_name include/linux/kernfs.h:644 [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:3936 drop_partition block/partitions/core.c:280 [inline] bdev_disk_changed+0x1a0/0xe20 block/partitions/core.c:676 __loop_clr_fd drivers/block/loop.c:1160 [inline] lo_release+0x331/0x430 drivers/block/loop.c:1747 bdev_release+0x375/0x3d0 block/bdev.c:-1 blkdev_release+0x15/0x20 block/fops.c:680 __fput+0x29e/0x630 fs/file_table.c:512 fput_close_sync+0xad/0x190 fs/file_table.c:617 __do_sys_close fs/open.c:1511 [inline] __se_sys_close fs/open.c:1496 [inline] __x64_sys_close+0x55/0xf0 fs/open.c:1496 x64_sys_call+0x275d/0x3020 arch/x86/include/generated/asm/syscalls_64.h:4 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x136/0x3c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00 -> 0x01 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 28065 Comm: udevd Tainted: G W syzkaller #0 PREEMPT(lazy) Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 ==================================================================