------------[ cut here ]------------ kernfs: can not remove 'bind', no directory WARNING: fs/kernfs/dir.c:1707 at kernfs_remove_by_name_ns+0xd1/0x130 fs/kernfs/dir.c:1706, CPU#0: syz.8.516/8985 Modules linked in: CPU: 0 UID: 0 PID: 8985 Comm: syz.8.516 Not tainted syzkaller #0 PREEMPT(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 69 9b ff ff 31 ed eb 2b e8 30 99 5f ff 90 48 c7 c7 80 65 bc 8b 4c 89 f6 e8 10 0e 23 ff 90 <0f> 0b 90 90 bd fe ff ff ff eb 12 e8 0f 99 5f ff bd fe ff ff ff 48 RSP: 0018:ffffc9001354fa38 EFLAGS: 00010246 RAX: 1f17b1e15d408600 RBX: ffffffff8f5fb1e0 RCX: 0000000000080000 RDX: ffffc9000ccc3000 RSI: 00000000000058c2 RDI: 00000000000058c3 RBP: 1ffff1102885f156 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1c3a65c R12: 0000000000000000 R13: dffffc0000000000 R14: ffffffff8c2a1600 R15: 0000000000000000 FS: 00007f6281ae16c0(0000) GS:ffff888125a03000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b3351eff8 CR3: 00000000729dc000 CR4: 00000000003526f0 Call Trace: remove_bind_files drivers/base/bus.c:605 [inline] bus_remove_driver+0x198/0x2f0 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+0xcde/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:0x7f6280b8eec9 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:00007f6281ae1038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f6280de6090 RCX: 00007f6280b8eec9 RDX: 0000000000000000 RSI: 0000000040946400 RDI: 0000000000000005 RBP: 00007f6280c11f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6280de6128 R14: 00007f6280de6090 R15: 00007ffce0628c78