------------[ cut here ]------------ WARNING: CPU: 1 PID: 30084 at fs/sysfs/file.c:351 sysfs_create_file_ns+0x131/0x1c0 fs/sysfs/file.c:351 Modules linked in: CPU: 1 PID: 30084 Comm: syz-executor.0 Not tainted 5.18.0-rc5-syzkaller-00157-g97fa5887cf28 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:sysfs_create_file_ns+0x131/0x1c0 fs/sysfs/file.c:351 Code: e9 03 80 3c 01 00 75 7f 8b 4c 24 38 4d 89 e9 48 89 ee 48 8b 7b 30 44 8b 44 24 48 e8 e9 fa ff ff 41 89 c5 eb 0d e8 cf 7c 9d ff <0f> 0b 41 bd ea ff ff ff e8 c2 7c 9d ff 48 b8 00 00 00 00 00 fc ff RSP: 0018:ffffc9000188fca0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88810f796e00 RCX: 0000000000000000 RDX: ffff888135291c80 RSI: ffffffff81a6f891 RDI: ffff88810f796e00 RBP: ffffffff88041fc0 R08: 0000000000000000 R09: ffff88810095ba13 R10: ffffed102012b742 R11: 0000000000000001 R12: 1ffff92000311f95 R13: 0000000000000000 R14: dffffc0000000000 R15: ffff88810f796e30 FS: 00007f7e6a7dd700(0000) GS:ffff8881f6900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555563c2b38 CR3: 0000000137925000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: sysfs_create_file include/linux/sysfs.h:607 [inline] driver_create_file+0x48/0x70 drivers/base/driver.c:107 bus_add_driver+0x309/0x630 drivers/base/bus.c:624 driver_register+0x220/0x3a0 drivers/base/driver.c:171 usb_gadget_register_driver_owner+0xfb/0x1e0 drivers/usb/gadget/udc/core.c:1558 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:0x7f7e6b066ec7 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:00007f7e6a7db098 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f7e6a7dc110 RCX: 00007f7e6b066ec7 RDX: 0000000000000000 RSI: 0000000000005501 RDI: 0000000000000003 RBP: 0000000000000003 R08: 000000000000a8ff R09: 000000000000000b R10: 00007f7e6a7db140 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000020001500 R14: 0000000020001400 R15: 00000000000010d0