================================================================== BUG: KCSAN: data-race in rwsem_down_write_slowpath / rwsem_down_write_slowpath write to 0xffffc900024e7ae8 of 1 bytes by task 11324 on cpu 0: 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 sysfs_create_group+0x1f/0x30 fs/sysfs/group.c:215 loop_sysfs_init drivers/block/loop.c:732 [inline] loop_configure+0x7ee/0x9c0 drivers/block/loop.c:1077 lo_ioctl+0x1e1/0x13a0 drivers/block/loop.c:1535 blkdev_ioctl+0x387/0x460 block/ioctl.c:792 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xce/0x140 fs/ioctl.c:583 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:583 x64_sys_call+0x1563/0x3020 arch/x86/include/generated/asm/syscalls_64.h:17 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 0xffffc900024e7ae8 of 1 bytes by task 2246 on cpu 1: 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] 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_gid_attrs drivers/infiniband/core/sysfs.c:1142 [inline] ib_free_port_attrs+0x8e/0x260 drivers/infiniband/core/sysfs.c:1367 remove_one_compat_dev drivers/infiniband/core/device.c:1010 [inline] rdma_dev_exit_net+0x1aa/0x290 drivers/infiniband/core/device.c:1148 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:704 process_one_work kernel/workqueue.c:3275 [inline] process_scheduled_works+0x4de/0x9e0 kernel/workqueue.c:3358 worker_thread+0x581/0x770 kernel/workqueue.c:3439 kthread+0x22a/0x280 kernel/kthread.c:467 ret_from_fork+0x150/0x360 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: 2246 Comm: kworker/u8:8 Tainted: G W syzkaller #0 PREEMPT(full) Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Workqueue: netns cleanup_net ==================================================================