program: mkdirat(0xffffffffffffff9c, &(0x7f0000000000)='./config\x00', 0x1ff) (async) mkdirat(0xffffffffffffff9c, &(0x7f0000000000)='./config\x00', 0x1ff) r0 = openat$ttyS3(0xffffffffffffff9c, &(0x7f0000000080), 0x41, 0x0) ioctl$TIOCMBIC(r0, 0x5417, 0x0) r1 = syz_open_dev$sndctrl(&(0x7f0000000000), 0x84, 0x0) ioctl$SNDRV_CTL_IOCTL_RAWMIDI_PREFER_SUBDEVICE(r1, 0x40045542, &(0x7f0000000180)=0xec91) syz_open_dev$dmmidi(&(0x7f0000000080), 0x200, 0x11) mount(0x0, &(0x7f0000000000)='./config\x00', &(0x7f0000000400)='configfs\x00', 0x0, 0x0) (async) mount(0x0, &(0x7f0000000000)='./config\x00', &(0x7f0000000400)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000080)='./config/usb_gadget/g1\x00', 0x1ff) (async) mkdirat(0xffffffffffffff9c, &(0x7f0000000080)='./config/usb_gadget/g1\x00', 0x1ff) syz_open_dev$media(&(0x7f0000000040), 0xb18, 0xeeda0e37fccac256) (async) r2 = syz_open_dev$media(&(0x7f0000000040), 0xb18, 0xeeda0e37fccac256) r3 = syz_open_dev$media(&(0x7f0000001a80), 0x3, 0x0) syz_open_dev$media(&(0x7f0000001a80), 0x3, 0x0) (async) r4 = syz_open_dev$media(&(0x7f0000001a80), 0x3, 0x0) ioctl$MEDIA_IOC_ENUM_LINKS(r3, 0xc0287c02, &(0x7f0000000300)={0x80000000, 0x0, &(0x7f0000000400)=[{{}, {0x80000000}}, {{}, {0x80000000}}]}) ioctl$MEDIA_IOC_ENUM_LINKS(r4, 0xc0287c02, &(0x7f0000000280)={r5, 0x0, &(0x7f00000004c0)}) ioctl$MEDIA_IOC_ENUM_LINKS(0xffffffffffffffff, 0xc0287c02, &(0x7f00000003c0)={0x80000000, &(0x7f00000000c0), &(0x7f0000000340)=[{}, {{0x80000000, 0x0}}]}) ioctl$MEDIA_IOC_SETUP_LINK(r2, 0xc0347c03, &(0x7f0000000440)={{r5, 0x0, 0x3, [0x1, 0xffff]}, {0x80000000, r7, 0x0, [0x9, 0x8]}, 0x0, [0x3, 0x7fffffff]}) ioctl$TIOCMBIC(r0, 0x5417, &(0x7f0000000140)=0x6) (async) ioctl$TIOCMBIC(r0, 0x5417, &(0x7f0000000140)=0x6) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./config/usb_gadget/g1/functions/uac1_legacy.usb0\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f0000000180)='./config/usb_gadget/g1/configs/c.1\x00', 0x1ff) symlinkat(&(0x7f0000000200)='./config/usb_gadget/g1/functions/uac1_legacy.usb0\x00', 0xffffffffffffff9c, &(0x7f0000000280)='./config/usb_gadget/g1/configs/c.1/uac1_legacy.usb0\x00') r8 = openat(0xffffffffffffff9c, &(0x7f0000000300)='./config/usb_gadget/g1/UDC\x00', 0x1, 0x0) write(r8, &(0x7f0000000400)='dummy_udc.0\n\x00', 0xc) (async) write(r8, &(0x7f0000000400)='dummy_udc.0\n\x00', 0xc) ioctl$MEDIA_IOC_ENUM_LINKS(r3, 0xc0287c02, &(0x7f00000005c0)={r6, &(0x7f00000001c0), &(0x7f0000000540)}) nanosleep(&(0x7f0000000500)={0x0, 0x2faf080}, 0x0) [ 94.386229][ T4653] Bluetooth: hci0: command tx timeout [ 94.512144][ T5331] configfs-gadget.g1 gadget.0: Hardware params: access 3, format 2, channels 2, rate 48000 [ 94.518730][ T5331] udc dummy_udc.0: failed to start g1: -19 [ 94.523192][ T5331] UDC core: g1: couldn't find an available UDC or it's busy [ 94.542237][ T5332] slab filp start ffff88801d18a1c0 pointer offset 0 size 352 [ 94.547049][ T5332] VFS: Close: file count is 0 (f_op=snd_ctl_f_ops) [ 94.547322][ T5332] ------------[ cut here ]------------ [ 94.552475][ T5332] kernel BUG at fs/open.c:1466! [ 94.554643][ T5332] Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI [ 94.557274][ T5332] CPU: 0 UID: 0 PID: 5332 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 94.560831][ T5332] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 94.564849][ T5332] RIP: 0010:filp_flush+0x184/0x190 [ 94.567068][ T5332] Code: 48 83 c3 48 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 dc 13 ee ff 48 8b 33 48 c7 c7 80 8c fe 8b e8 1d 7e df fe 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 [ 94.575021][ T5332] RSP: 0018:ffffc9000f7276b8 EFLAGS: 00010246 [ 94.577583][ T5332] RAX: 0000000000000030 RBX: ffff88801d18a208 RCX: c69c61db2a2b4200 [ 94.580863][ T5332] RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 [ 94.584321][ T5332] RBP: ffffc9000f7277d8 R08: ffff88801fc24713 R09: 1ffff11003f848e2 [ 94.587767][ T5332] R10: dffffc0000000000 R11: ffffed1003f848e3 R12: dffffc0000000000 [ 94.591053][ T5332] R13: ffff888012542528 R14: 0000000000000000 R15: 0000000000000003 [ 94.594431][ T5332] FS: 00007f65ebff56c0(0000) GS:ffff88808c540000(0000) knlGS:0000000000000000 [ 94.598138][ T5332] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 94.600965][ T5332] CR2: 00007f65efb87700 CR3: 00000000120df000 CR4: 0000000000352ef0 [ 94.604321][ T5332] Call Trace: [ 94.605794][ T5332] [ 94.607062][ T5332] filp_close+0x1d/0x40 [ 94.608883][ T5332] gaudio_cleanup+0x54/0xf0 [ 94.610821][ T5332] f_audio_bind+0x4a0/0x630 [ 94.612780][ T5332] ? __pfx_f_audio_bind+0x10/0x10 [ 94.615001][ T5332] ? rcu_is_watching+0x15/0xb0 [ 94.617089][ T5332] ? usb_gadget_set_selfpowered+0xf5/0x260 [ 94.619666][ T5332] usb_add_function+0x2e1/0x9f0 [ 94.621813][ T5332] ? check_remote_wakeup_config+0x58/0x1c0 [ 94.624205][ T5332] configfs_composite_bind+0xde0/0x1410 [ 94.626504][ T5332] ? __pfx_configfs_composite_bind+0x10/0x10 [ 94.629025][ T5332] gadget_bind_driver+0x2ca/0x9e0 [ 94.631208][ T5332] ? __pfx_gadget_bind_driver+0x10/0x10 [ 94.633645][ T5332] really_probe+0x254/0xae0 [ 94.635711][ T5332] __driver_probe_device+0x1e8/0x360 [ 94.638081][ T5332] driver_probe_device+0x4f/0x240 [ 94.640263][ T5332] __driver_attach+0x339/0x600 [ 94.642410][ T5332] bus_for_each_dev+0x23b/0x2c0 [ 94.644449][ T5332] ? __pfx___driver_attach+0x10/0x10 [ 94.646673][ T5332] ? __pfx_bus_for_each_dev+0x10/0x10 [ 94.648937][ T5332] ? do_raw_spin_unlock+0x4d/0x210 [ 94.651168][ T5332] bus_add_driver+0x345/0x670 [ 94.653183][ T5332] driver_register+0x23a/0x320 [ 94.655892][ T5332] usb_gadget_register_driver_owner+0xf9/0x270 [ 94.658534][ T5332] gadget_dev_desc_UDC_store+0x1c9/0x2f0 [ 94.661064][ T5332] ? __pfx_gadget_dev_desc_UDC_store+0x10/0x10 [ 94.663558][ T5332] configfs_write_iter+0x337/0x430 [ 94.665640][ T5332] vfs_write+0x612/0xba0 [ 94.667262][ T5332] ? __pfx_vfs_write+0x10/0x10 [ 94.668953][ T5332] ? __fget_files+0x2a/0x420 [ 94.670736][ T5332] ksys_write+0x150/0x270 [ 94.672354][ T5332] ? __pfx_ksys_write+0x10/0x10 [ 94.674271][ T5332] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 94.676635][ T5332] do_syscall_64+0x174/0x580 [ 94.678512][ T5332] ? trace_irq_disable+0x3b/0x140 [ 94.680522][ T5332] ? clear_bhb_loop+0x70/0xc0 [ 94.682410][ T5332] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 94.684650][ T5332] RIP: 0033:0x7f65efb9e0d9 [ 94.686619][ T5332] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 [ 94.694374][ T5332] RSP: 002b:00007f65ebff4fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 94.697651][ T5332] RAX: ffffffffffffffda RBX: 00007f65efe26090 RCX: 00007f65efb9e0d9 [ 94.700917][ T5332] RDX: 000000000000000c RSI: 0000200000000400 RDI: 0000000000000008 [ 94.703840][ T5332] RBP: 00007f65efc35024 R08: 0000000000000000 R09: 0000000000000000 [ 94.706977][ T5332] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 94.710054][ T5332] R13: 00007f65efe26128 R14: 00007f65efe26090 R15: 00007ffe9d514f48 [ 94.713169][ T5332] [ 94.714430][ T5332] Modules linked in: [ 94.718257][ T5332] ---[ end trace 0000000000000000 ]--- [ 94.731075][ T5332] RIP: 0010:filp_flush+0x184/0x190 [ 94.733207][ T5332] Code: 48 83 c3 48 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 dc 13 ee ff 48 8b 33 48 c7 c7 80 8c fe 8b e8 1d 7e df fe 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 [ 94.740992][ T5332] RSP: 0018:ffffc9000f7276b8 EFLAGS: 00010246 [ 94.743609][ T5332] RAX: 0000000000000030 RBX: ffff88801d18a208 RCX: c69c61db2a2b4200 [ 94.747788][ T5332] RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 [ 94.751231][ T5332] RBP: ffffc9000f7277d8 R08: ffff88801fc24713 R09: 1ffff11003f848e2 [ 94.754822][ T5332] R10: dffffc0000000000 R11: ffffed1003f848e3 R12: dffffc0000000000 [ 94.758636][ T5332] R13: ffff888012542528 R14: 0000000000000000 R15: 0000000000000003 [ 94.762047][ T5332] FS: 00007f65ebff56c0(0000) GS:ffff88808c540000(0000) knlGS:0000000000000000 [ 94.766050][ T5332] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 94.768932][ T5332] CR2: 00007f65efb87700 CR3: 00000000120df000 CR4: 0000000000352ef0 [ 94.772306][ T5332] Kernel panic - not syncing: Fatal exception [ 94.775267][ T5332] Kernel Offset: disabled [ 94.777197][ T5332] Rebooting in 86400 seconds..