------------[ cut here ]------------ kernfs: can not remove 'bind', no directory WARNING: CPU: 0 PID: 20338 at fs/kernfs/dir.c:1707 kernfs_remove_by_name_ns+0xd1/0x130 fs/kernfs/dir.c:1706 Modules linked in: CPU: 0 UID: 0 PID: 20338 Comm: syz.4.3186 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 RIP: 0010:kernfs_remove_by_name_ns+0xd1/0x130 fs/kernfs/dir.c:1706 Code: 4c 89 f7 e8 c1 f2 ff ff 4c 89 f7 e8 49 9c ff ff 31 ed eb 2b e8 d0 0b 6b ff 90 48 c7 c7 c0 c8 1b 8b 4c 89 f6 e8 90 dc 2f ff 90 <0f> 0b 90 90 bd fe ff ff ff eb 12 e8 af 0b 6b ff bd fe ff ff ff 48 RSP: 0018:ffffc900046b7a58 EFLAGS: 00010246 RAX: 75a89dabad452200 RBX: ffffffff8eb905a0 RCX: 0000000000080000 RDX: ffffc90005379000 RSI: 0000000000000638 RDI: 0000000000000639 RBP: 1ffff11028856c6a R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: ffffed1017104863 R12: 0000000000000000 R13: dffffc0000000000 R14: ffffffff8b7997a0 R15: 0000000000000000 FS: 00007f8dc6f166c0(0000) GS:ffff8881268bc000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b33e21ff8 CR3: 0000000060fbc000 CR4: 00000000003526f0 DR0: 0000000000000004 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: remove_bind_files drivers/base/bus.c:605 [inline] bus_remove_driver+0x19b/0x300 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+0xce4/0x1020 drivers/comedi/comedi_fops.c:2178 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:598 [inline] __se_sys_ioctl+0xff/0x170 fs/ioctl.c:584 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8dc8caec29 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:00007f8dc6f16038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f8dc8ef5fa0 RCX: 00007f8dc8caec29 RDX: 0000000000000000 RSI: 0000000040946400 RDI: 0000000000000004 RBP: 00007f8dc8d31e41 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f8dc8ef6038 R14: 00007f8dc8ef5fa0 R15: 00007ffd7262fa48