smc: removing ib device syz1 ================================================================== BUG: KCSAN: data-race in rwsem_down_write_slowpath / rwsem_down_write_slowpath write to 0xffffc900001bbb60 of 1 bytes by task 9926 on cpu 1: rwsem_try_write_lock kernel/locking/rwsem.c:653 [inline] rwsem_down_write_slowpath+0x3eb/0xa80 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_activate+0x50/0x220 fs/kernfs/dir.c:1430 kernfs_add_one+0x212/0x280 fs/kernfs/dir.c:839 __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 create_dir lib/kobject.c:78 [inline] kobject_add_internal+0x4a7/0x780 lib/kobject.c:240 kobject_add_varg lib/kobject.c:374 [inline] kobject_init_and_add+0x14a/0x1f0 lib/kobject.c:457 ext4_register_sysfs+0x97/0x250 fs/ext4/sysfs.c:577 __ext4_fill_super fs/ext4/super.c:5692 [inline] ext4_fill_super+0x372e/0x3800 fs/ext4/super.c:5777 get_tree_bdev_flags+0x291/0x300 fs/super.c:1691 get_tree_bdev+0x1f/0x30 fs/super.c:1714 ext4_get_tree+0x1c/0x30 fs/ext4/super.c:5809 vfs_get_tree+0x57/0x1d0 fs/super.c:1751 fc_mount fs/namespace.c:1199 [inline] do_new_mount_fc fs/namespace.c:3636 [inline] do_new_mount+0x288/0x700 fs/namespace.c:3712 path_mount+0x4d0/0xbc0 fs/namespace.c:4022 do_mount fs/namespace.c:4035 [inline] __do_sys_mount fs/namespace.c:4224 [inline] __se_sys_mount+0x28c/0x2e0 fs/namespace.c:4201 __x64_sys_mount+0x67/0x80 fs/namespace.c:4201 x64_sys_call+0x2cca/0x3000 arch/x86/include/generated/asm/syscalls_64.h:166 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc0/0x2a0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffc900001bbb60 of 1 bytes by task 52 on cpu 0: rwsem_down_write_slowpath+0x45e/0xa80 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:1182 [inline] ib_free_port_attrs+0x8e/0x260 drivers/infiniband/core/sysfs.c:1407 remove_one_compat_dev drivers/infiniband/core/device.c:1038 [inline] remove_compat_devs drivers/infiniband/core/device.c:1050 [inline] disable_device+0x1c0/0x260 drivers/infiniband/core/device.c:1332 __ib_unregister_device+0x1fb/0x2d0 drivers/infiniband/core/device.c:1555 ib_unregister_work+0x19/0x30 drivers/infiniband/core/device.c:1667 process_one_work kernel/workqueue.c:3257 [inline] process_scheduled_works+0x4cd/0x9d0 kernel/workqueue.c:3340 worker_thread+0x6bc/0x8b0 kernel/workqueue.c:3421 kthread+0x488/0x510 kernel/kthread.c:463 ret_from_fork+0x148/0x280 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246 value changed: 0x00 -> 0x01 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 52 Comm: kworker/u8:3 Tainted: G W syzkaller #0 PREEMPT(voluntary) Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Workqueue: ib-unreg-wq ib_unregister_work ==================================================================