------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(1) WARNING: kernel/locking/lockdep.c:238 at hlock_class kernel/locking/lockdep.c:238 [inline], CPU#0: syz.0.7923/23063 WARNING: kernel/locking/lockdep.c:238 at check_wait_context kernel/locking/lockdep.c:4854 [inline], CPU#0: syz.0.7923/23063 WARNING: kernel/locking/lockdep.c:238 at __lock_acquire+0x379/0xd20 kernel/locking/lockdep.c:5187, CPU#0: syz.0.7923/23063 Modules linked in: CPU: 0 UID: 0 PID: 23063 Comm: syz.0.7923 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 RIP: 0010:hlock_class kernel/locking/lockdep.c:238 [inline] RIP: 0010:check_wait_context kernel/locking/lockdep.c:4854 [inline] RIP: 0010:__lock_acquire+0x379/0xd20 kernel/locking/lockdep.c:5187 Code: eb 33 90 e8 69 e4 f3 02 85 c0 74 22 83 3d 32 26 21 0e 00 75 19 90 48 c7 c7 6a 38 c6 8d 48 c7 c6 06 c9 b5 8d e8 c8 bc e5 ff 90 <0f> 0b 90 90 90 31 c0 48 8b 3c 24 0f b6 98 c4 00 00 00 41 8b 46 20 RSP: 0018:ffffc9000d307870 EFLAGS: 00010046 RAX: d0d8b53b94358900 RBX: ffffffff8b1acd58 RCX: 0000000000080000 RDX: ffffc9000dbe9000 RSI: 00000000000021e5 RDI: 00000000000021e6 RBP: 000000000000140b R08: ffff8880b8624293 R09: 1ffff110170c4852 R10: dffffc0000000000 R11: ffffed10170c4853 R12: 0000000000000000 R13: 0000000000000000 R14: ffff88805da88b80 R15: ffff88805da88b30 FS: 00007fc9215d96c0(0000) GS:ffff888125a9c000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c2833a5 CR3: 000000008eff2000 CR4: 00000000003526f0 Call Trace: lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868 down_write+0x96/0x1f0 kernel/locking/rwsem.c:1590 kernfs_remove_by_name_ns+0x3d/0x130 fs/kernfs/dir.c:1712 remove_bind_files drivers/base/bus.c:605 [inline] bus_remove_driver+0x198/0x320 drivers/base/bus.c:743 comedi_device_detach_locked+0x178/0x750 drivers/comedi/drivers.c:207 do_devconfig_ioctl drivers/comedi/comedi_fops.c:848 [inline] comedi_unlocked_ioctl+0xcce/0x1020 drivers/comedi/comedi_fops.c:2178 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc92078efc9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc9215d9038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fc9209e5fa0 RCX: 00007fc92078efc9 RDX: 0000000000000000 RSI: 0000000040946400 RDI: 0000000000000008 RBP: 00007fc920811f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc9209e6038 R14: 00007fc9209e5fa0 R15: 00007fff1f8b4548