program: mkdirat(0xffffffffffffff9c, &(0x7f0000000000)='./config\x00', 0x1ff) mount(0x0, &(0x7f0000000000)='./config\x00', &(0x7f0000000400)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000080)='./config/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./config/usb_gadget/g1/functions/uac1_legacy.usb0\x00', 0x1ff) (async) 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') r0 = openat(0xffffffffffffff9c, &(0x7f0000000300)='./config/usb_gadget/g1/UDC\x00', 0x1, 0x0) write(r0, &(0x7f0000000400)='dummy_udc.0\n\x00', 0xc) (async) write(r0, &(0x7f0000000400)='dummy_udc.0\n\x00', 0xc) getresuid(&(0x7f00000001c0), &(0x7f0000000240), &(0x7f00000002c0)=0x0) mount$afs(&(0x7f0000000040)=@cell={0x23, 'syz0:', 'syz1', '.readonly'}, &(0x7f00000000c0)='./config/usb_gadget/g1/UDC\x00', &(0x7f0000000140), 0x1400, &(0x7f0000000340)={[{@flock_write}], [{@defcontext={'defcontext', 0x3d, 'system_u'}}, {@smackfsfloor={'smackfsfloor', 0x3d, '#,-,\'.'}}, {@subj_type}, {@measure}, {@fowner_lt={'fowner<', r1}}]}) (async) mount$afs(&(0x7f0000000040)=@cell={0x23, 'syz0:', 'syz1', '.readonly'}, &(0x7f00000000c0)='./config/usb_gadget/g1/UDC\x00', &(0x7f0000000140), 0x1400, &(0x7f0000000340)={[{@flock_write}], [{@defcontext={'defcontext', 0x3d, 'system_u'}}, {@smackfsfloor={'smackfsfloor', 0x3d, '#,-,\'.'}}, {@subj_type}, {@measure}, {@fowner_lt={'fowner<', r1}}]}) nanosleep(&(0x7f0000000500)={0x0, 0x2faf080}, 0x0) [ 86.508071][ T5274] Bluetooth: hci0: command tx timeout [ 86.597020][ T5311] configfs-gadget.g1 gadget.0: Hardware params: access 3, format 2, channels 2, rate 48000 [ 86.602790][ T5311] udc dummy_udc.0: failed to start g1: -19 [ 86.611171][ T5311] UDC core: g1: couldn't find an available UDC or it's busy [ 86.619086][ T5312] slab filp start ffff88801241d540 pointer offset 0 size 352 [ 86.624691][ T5312] VFS: Close: file count is 0 (f_op=snd_ctl_f_ops) [ 86.624970][ T5312] ------------[ cut here ]------------ [ 86.630523][ T5312] kernel BUG at fs/open.c:1515! [ 86.634011][ T5312] Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI [ 86.636711][ T5312] CPU: 0 UID: 0 PID: 5312 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 86.640400][ T5312] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 86.644402][ T5312] RIP: 0010:filp_flush+0x184/0x190 [ 86.646519][ T5312] Code: 48 83 c3 48 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 cc 91 ed ff 48 8b 33 48 c7 c7 20 96 1f 8c e8 4d d3 dc fe 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 [ 86.654644][ T5312] RSP: 0018:ffffc9000d8376b8 EFLAGS: 00010246 [ 86.657273][ T5312] RAX: 0000000000000030 RBX: ffff88801241d588 RCX: 43bbc2884237e800 [ 86.660617][ T5312] RDX: 0000000000000000 RSI: 8000000000000000 RDI: 0000000000000000 [ 86.663965][ T5312] RBP: ffffc9000d8377d8 R08: ffff88801fc246d3 R09: 1ffff11003f848da [ 86.667377][ T5312] R10: dffffc0000000000 R11: ffffed1003f848db R12: dffffc0000000000 [ 86.670718][ T5312] R13: ffff888012f90528 R14: 0000000000000000 R15: 0000000000000003 [ 86.674031][ T5312] FS: 00007f60698fd6c0(0000) GS:ffff88808c30a000(0000) knlGS:0000000000000000 [ 86.677778][ T5312] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 86.680635][ T5312] CR2: 00007f60698fcff8 CR3: 0000000043679000 CR4: 0000000000352ef0 [ 86.684056][ T5312] Call Trace: [ 86.685455][ T5312] [ 86.686725][ T5312] filp_close+0x1d/0x40 [ 86.688481][ T5312] gaudio_cleanup+0x54/0xf0 [ 86.690375][ T5312] f_audio_bind+0x4a0/0x630 [ 86.692318][ T5312] ? __pfx_f_audio_bind+0x10/0x10 [ 86.694444][ T5312] ? rcu_is_watching+0x16/0xb0 [ 86.696505][ T5312] ? usb_gadget_set_selfpowered+0xf5/0x260 [ 86.698971][ T5312] usb_add_function+0x2e1/0x9f0 [ 86.700947][ T5312] ? check_remote_wakeup_config+0x58/0x1c0 [ 86.703383][ T5312] configfs_composite_bind+0xde0/0x1410 [ 86.705697][ T5312] ? __pfx_configfs_composite_bind+0x10/0x10 [ 86.708234][ T5312] gadget_bind_driver+0x2ca/0x9e0 [ 86.710363][ T5312] ? __pfx_gadget_bind_driver+0x10/0x10 [ 86.712691][ T5312] really_probe+0x254/0xae0 [ 86.714637][ T5312] __driver_probe_device+0x1e8/0x360 [ 86.716893][ T5312] driver_probe_device+0x4f/0x240 [ 86.719047][ T5312] __driver_attach+0x339/0x600 [ 86.721011][ T5312] bus_for_each_dev+0x23b/0x2c0 [ 86.723121][ T5312] ? __pfx___driver_attach+0x10/0x10 [ 86.725379][ T5312] ? __pfx_bus_for_each_dev+0x10/0x10 [ 86.727662][ T5312] ? do_raw_spin_unlock+0x4d/0x200 [ 86.729778][ T5312] bus_add_driver+0x345/0x670 [ 86.731711][ T5312] driver_register+0x23a/0x320 [ 86.733703][ T5312] usb_gadget_register_driver_owner+0xf9/0x270 [ 86.736349][ T5312] gadget_dev_desc_UDC_store+0x1c9/0x2f0 [ 86.738681][ T5312] ? __pfx_gadget_dev_desc_UDC_store+0x10/0x10 [ 86.741252][ T5312] configfs_write_iter+0x337/0x430 [ 86.743432][ T5312] vfs_write+0x612/0xba0 [ 86.745315][ T5312] ? __pfx_vfs_write+0x10/0x10 [ 86.747359][ T5312] ? __fget_files+0x2a/0x420 [ 86.749325][ T5312] ksys_write+0x150/0x270 [ 86.751114][ T5312] ? __pfx_ksys_write+0x10/0x10 [ 86.753150][ T5312] do_syscall_64+0x166/0x520 [ 86.755043][ T5312] ? trace_irq_disable+0x3b/0x140 [ 86.757036][ T5312] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 86.759471][ T5312] ? clear_bhb_loop+0x70/0xc0 [ 86.761397][ T5312] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 86.763791][ T5312] RIP: 0033:0x7f606899e0d9 [ 86.765581][ T5312] 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 [ 86.773616][ T5312] RSP: 002b:00007f60698fcfe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 86.777287][ T5312] RAX: ffffffffffffffda RBX: 00007f6068c26090 RCX: 00007f606899e0d9 [ 86.780763][ T5312] RDX: 000000000000000c RSI: 0000200000000400 RDI: 0000000000000003 [ 86.784181][ T5312] RBP: 00007f6068a35024 R08: 0000000000000000 R09: 0000000000000000 [ 86.787639][ T5312] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 86.791046][ T5312] R13: 00007f6068c26128 R14: 00007f6068c26090 R15: 00007ffcfe502dc8 [ 86.794401][ T5312] [ 86.795752][ T5312] Modules linked in: [ 86.797974][ T5312] ---[ end trace 0000000000000000 ]--- [ 86.811286][ T5312] RIP: 0010:filp_flush+0x184/0x190 [ 86.813593][ T5312] Code: 48 83 c3 48 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 cc 91 ed ff 48 8b 33 48 c7 c7 20 96 1f 8c e8 4d d3 dc fe 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 [ 86.822442][ T5312] RSP: 0018:ffffc9000d8376b8 EFLAGS: 00010246 [ 86.825659][ T5312] RAX: 0000000000000030 RBX: ffff88801241d588 RCX: 43bbc2884237e800 [ 86.828987][ T5312] RDX: 0000000000000000 RSI: 8000000000000000 RDI: 0000000000000000 [ 86.832968][ T5312] RBP: ffffc9000d8377d8 R08: ffff88801fc246d3 R09: 1ffff11003f848da [ 86.836457][ T5312] R10: dffffc0000000000 R11: ffffed1003f848db R12: dffffc0000000000 [ 86.840648][ T5312] R13: ffff888012f90528 R14: 0000000000000000 R15: 0000000000000003 [ 86.844191][ T5312] FS: 00007f60698fd6c0(0000) GS:ffff88808c30a000(0000) knlGS:0000000000000000 [ 86.848047][ T5312] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 86.851244][ T5312] CR2: 00007f60698dbfe8 CR3: 0000000043679000 CR4: 0000000000352ef0 [ 86.854863][ T5312] Kernel panic - not syncing: Fatal exception [ 86.857881][ T5312] Kernel Offset: disabled [ 86.859756][ T5312] Rebooting in 86400 seconds..