------------[ cut here ]------------ kernfs: can not remove 'bind', no directory WARNING: CPU: 0 PID: 4041 at fs/kernfs/dir.c:1569 kernfs_remove_by_name_ns+0xed/0x110 fs/kernfs/dir.c:1569 Modules linked in: CPU: 0 PID: 4041 Comm: syz-executor.0 Not tainted 5.18.0-rc5-syzkaller-00112-ga2673d570bd6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:kernfs_remove_by_name_ns+0xed/0x110 fs/kernfs/dir.c:1569 Code: c3 e8 d7 00 9e ff 4c 89 e7 41 bc fe ff ff ff e8 69 c2 81 ff eb da e8 c2 00 9e ff 4c 89 ee 48 c7 c7 e0 06 54 86 e8 61 8c 13 04 <0f> 0b 41 bc fe ff ff ff eb bc e8 c4 99 d2 ff e9 71 ff ff ff e8 ba RSP: 0018:ffffc9000b3c7d68 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff8881129f2098 RCX: 0000000000000000 RDX: ffff88812ff5b900 RSI: ffffffff812bdce8 RDI: fffff52001678f9f RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001 R10: ffffffff812b86be R11: 0000000000000000 R12: ffff8881129f20a0 R13: ffffffff868162c0 R14: 0000000000000000 R15: 1ffff92001678fce FS: 00007f4c48b6e700(0000) GS:ffff8881f6800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4c48b6d110 CR3: 000000012fe1a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: sysfs_remove_file include/linux/sysfs.h:613 [inline] driver_remove_file drivers/base/driver.c:123 [inline] driver_remove_file+0x46/0x60 drivers/base/driver.c:119 remove_bind_files drivers/base/bus.c:548 [inline] bus_remove_driver+0x22f/0x300 drivers/base/bus.c:670 driver_unregister+0x73/0xb0 drivers/base/driver.c:198 usb_gadget_register_driver_owner.cold+0x6c/0xd0 drivers/usb/gadget/udc/core.c:1568 raw_ioctl_run drivers/usb/gadget/legacy/raw_gadget.c:513 [inline] raw_ioctl+0x1883/0x2730 drivers/usb/gadget/legacy/raw_gadget.c:1220 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f4c49418ea7 Code: 3c 1c 48 f7 d8 49 39 c4 72 b8 e8 34 54 02 00 85 c0 78 bd 48 83 c4 08 4c 89 e0 5b 41 5c c3 0f 1f 44 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4c48b6c098 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f4c48b6d110 RCX: 00007f4c49418ea7 RDX: 0000000000000000 RSI: 0000000000005501 RDI: 0000000000000003 RBP: 0000000000000003 R08: 000000000000ffff R09: 000000000000000b R10: 00007f4c48b6c140 R11: 0000000000000246 R12: 0000000000000000 R13: 9999999999999999 R14: 0000000020000180 R15: 0000000000000000