------------[ cut here ]------------ kernfs: can not remove 'bind', no directory WARNING: CPU: 0 PID: 24089 at fs/kernfs/dir.c:1706 kernfs_remove_by_name_ns+0xff/0x110 fs/kernfs/dir.c:1706 Modules linked in: CPU: 0 UID: 0 PID: 24089 Comm: syz.9.3750 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 RIP: 0010:kernfs_remove_by_name_ns+0xff/0x110 fs/kernfs/dir.c:1706 Code: 48 89 df 31 db e8 61 a2 ff ff 48 89 ef e8 89 96 32 ff eb b1 e8 72 79 57 ff 90 48 c7 c7 00 b9 a3 8b 4c 89 e6 e8 02 ae 15 ff 90 <0f> 0b 90 90 eb b4 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 RSP: 0018:ffffc9000f8a79b8 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc9001253b000 RDX: 0000000000080000 RSI: ffffffff817b6ef5 RDI: 0000000000000001 RBP: ffffffff8f289380 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 000000000002d768 R12: ffffffff8c1fdd20 R13: 0000000000000000 R14: 0000000000000002 R15: ffff88802e1dc920 FS: 00007f425c22b6c0(0000) GS:ffff8881249d9000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f425c22af98 CR3: 000000004777c000 CR4: 00000000003526f0 DR0: ffffffffffffffff DR1: 00000000000001f8 DR2: 0000000000000083 DR3: ffffffffefffff15 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: sysfs_remove_file include/linux/sysfs.h:770 [inline] driver_remove_file drivers/base/driver.c:201 [inline] driver_remove_file+0x4a/0x60 drivers/base/driver.c:197 remove_bind_files drivers/base/bus.c:605 [inline] bus_remove_driver+0x224/0x2c0 drivers/base/bus.c:743 driver_unregister+0x76/0xb0 drivers/base/driver.c:277 comedi_device_detach_locked+0x12f/0xa50 drivers/comedi/drivers.c:207 do_devconfig_ioctl+0x555/0x710 drivers/comedi/comedi_fops.c:848 comedi_unlocked_ioctl+0x165d/0x2f00 drivers/comedi/comedi_fops.c:2178 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0x18e/0x210 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f425b38eec9 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:00007f425c22b038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f425b5e6180 RCX: 00007f425b38eec9 RDX: 0000000000000000 RSI: 0000000040946400 RDI: 0000000000000006 RBP: 00007f425b411f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f425b5e6218 R14: 00007f425b5e6180 R15: 00007ffc80b83ee8