slab filp start ffff888023dc8000 pointer offset 0 size 352 VFS: Close: file count is 0 (f_op=snd_ctl_f_ops) ------------[ cut here ]------------ kernel BUG at fs/open.c:1464! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 3 UID: 0 PID: 7294 Comm: syz.1.380 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:filp_flush.cold+0x30/0x39 fs/open.c:1464 Code: 8d 7b 48 b8 ff ff 37 00 48 89 fa 48 c1 e0 2a 48 c1 ea 03 80 3c 02 00 75 13 48 8b 73 48 48 c7 c7 a0 85 e5 8b e8 39 54 fd ff 90 <0f> 0b e8 d1 45 54 01 eb e6 e8 8a b7 e4 00 65 48 8b 2d 9a f9 3e 13 RSP: 0018:ffffc90005627810 EFLAGS: 00010286 RAX: 0000000000000030 RBX: ffff888023dc8000 RCX: 0000000000000000 RDX: 0000000000000030 RSI: ffffffff81e816a9 RDI: fffff52000ac4ef3 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000000 R12: e000000000000000 R13: bfffffffffffffff R14: ffff88806d010528 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff888096ee1000(0063) knlGS:00000000f53dcb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f7356d58 CR3: 000000006b793000 CR4: 0000000000352ef0 Call Trace: filp_close+0x1c/0x30 fs/open.c:1484 gaudio_close_snd_dev drivers/usb/gadget/function/u_uac1_legacy.c:263 [inline] gaudio_cleanup+0x59/0x100 drivers/usb/gadget/function/u_uac1_legacy.c:305 f_audio_bind+0x56c/0x660 drivers/usb/gadget/function/f_uac1_legacy.c:792 usb_add_function+0x219/0x890 drivers/usb/gadget/composite.c:333 configfs_composite_bind+0xd83/0x1960 drivers/usb/gadget/configfs.c:1802 gadget_bind_driver+0x28c/0xbf0 drivers/usb/gadget/udc/core.c:1662 call_driver_probe drivers/base/dd.c:628 [inline] really_probe+0x241/0xa60 drivers/base/dd.c:706 __driver_probe_device+0x20e/0x450 drivers/base/dd.c:868 driver_probe_device+0x4a/0x140 drivers/base/dd.c:898 __driver_attach+0x21f/0x5b0 drivers/base/dd.c:1292 bus_for_each_dev+0x13e/0x1d0 drivers/base/bus.c:383 bus_add_driver+0x305/0x5b0 drivers/base/bus.c:763 driver_register+0x1e2/0x360 drivers/base/driver.c:174 usb_gadget_register_driver_owner+0x132/0x210 drivers/usb/gadget/udc/core.c:1752 gadget_dev_desc_UDC_store+0x1b0/0x2e0 drivers/usb/gadget/configfs.c:300 flush_write_buffer fs/configfs/file.c:207 [inline] configfs_write_iter+0x302/0x4e0 fs/configfs/file.c:229 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1050 fs/read_write.c:687 ksys_write+0x12a/0x250 fs/read_write.c:739 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0xe7/0x970 arch/x86/entry/syscall_32.c:307 do_fast_syscall_32+0x32/0x70 arch/x86/entry/syscall_32.c:332 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf700efec Code: Unable to access opcode bytes at 0xf700efc2. RSP: 002b:00000000f53dc50c EFLAGS: 00000292 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000080000400 RDX: 000000000000000c RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:filp_flush.cold+0x30/0x39 fs/open.c:1464 Code: 8d 7b 48 b8 ff ff 37 00 48 89 fa 48 c1 e0 2a 48 c1 ea 03 80 3c 02 00 75 13 48 8b 73 48 48 c7 c7 a0 85 e5 8b e8 39 54 fd ff 90 <0f> 0b e8 d1 45 54 01 eb e6 e8 8a b7 e4 00 65 48 8b 2d 9a f9 3e 13 RSP: 0018:ffffc90005627810 EFLAGS: 00010286 RAX: 0000000000000030 RBX: ffff888023dc8000 RCX: 0000000000000000 RDX: 0000000000000030 RSI: ffffffff81e816a9 RDI: fffff52000ac4ef3 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000000 R12: e000000000000000 R13: bfffffffffffffff R14: ffff88806d010528 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff888096ee1000(0063) knlGS:00000000f53dcb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f700f000 CR3: 000000006b793000 CR4: 0000000000352ef0