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') (async) 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) read$FUSE(r0, &(0x7f00000028c0)={0x2020}, 0x2020) (async) read$FUSE(r0, &(0x7f00000028c0)={0x2020, 0x0, 0x0}, 0x2020) getsockopt$inet6_IPV6_XFRM_POLICY(r0, 0x29, 0x23, &(0x7f0000002700)={{{@in6=@remote, @in=@multicast2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}, {{@in6=@private1}, 0x0, @in6=@mcast2}}, &(0x7f0000002800)=0xe8) getgid() (async) r3 = getgid() write$FUSE_ATTR(r0, &(0x7f0000002840)={0x78, 0x0, r1, {0xe219, 0x6, 0x0, {0x1, 0xe617, 0x0, 0xfed, 0x0, 0x7fffffff, 0x7fff, 0x6, 0x8, 0x2000, 0x34, r2, r3, 0x1, 0x4}}}, 0x78) write(r0, &(0x7f0000000400)='dummy_udc.0\n\x00', 0xc) (async) write(r0, &(0x7f0000000400)='dummy_udc.0\n\x00', 0xc) nanosleep(&(0x7f0000000500)={0x0, 0x2faf080}, 0x0) r4 = bpf$PROG_LOAD(0x5, &(0x7f0000000080)={0x6, 0x4, &(0x7f00000001c0)=@framed={{0x18, 0x2, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x3}, [@call={0x85, 0x0, 0x0, 0x41}]}, &(0x7f0000000180)='GPL\x00', 0x0, 0x0, 0x0, 0x0, 0x0, '\x00', 0x0, @xdp=0x25, 0xffffffffffffffff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x4}, 0x94) bpf$BPF_PROG_TEST_RUN(0xa, &(0x7f0000000600)={r4, 0x0, 0xe, 0x0, &(0x7f0000000680)="548852ac5b4eba7aeaccd2c62b2b", 0x0, 0x1008, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, 0x9, 0x8}, 0x50) [ 86.846093][ T4638] Bluetooth: hci0: command tx timeout [ 86.935077][ T5309] configfs-gadget.g1 gadget.0: Hardware params: access 3, format 2, channels 2, rate 48000 [ 86.941130][ T5309] udc dummy_udc.0: failed to start g1: -19 [ 86.946634][ T5309] UDC core: g1: couldn't find an available UDC or it's busy [ 86.955930][ T5310] slab filp start ffff8880128981c0 pointer offset 0 size 352 [ 86.964379][ T5310] VFS: Close: file count is 0 (f_op=snd_ctl_f_ops) [ 86.964594][ T5310] ------------[ cut here ]------------ [ 86.970124][ T5310] kernel BUG at fs/open.c:1515! [ 86.973508][ T5310] Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI [ 86.976379][ T5310] CPU: 0 UID: 0 PID: 5310 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 86.979828][ T5310] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 86.984120][ T5310] RIP: 0010:filp_flush+0x184/0x190 [ 86.986328][ T5310] 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.994587][ T5310] RSP: 0018:ffffc9000de376b8 EFLAGS: 00010246 [ 86.997180][ T5310] RAX: 0000000000000030 RBX: ffff888012898208 RCX: 33a58703e3562200 [ 87.000662][ T5310] RDX: 0000000000000000 RSI: 8000000000000000 RDI: 0000000000000000 [ 87.004124][ T5310] RBP: ffffc9000de377d8 R08: ffff88801fc246d3 R09: 1ffff11003f848da [ 87.007467][ T5310] R10: dffffc0000000000 R11: ffffed1003f848db R12: dffffc0000000000 [ 87.010739][ T5310] R13: ffff88801f76c528 R14: 0000000000000000 R15: 0000000000000003 [ 87.013978][ T5310] FS: 00007f3d389b76c0(0000) GS:ffff88808c30a000(0000) knlGS:0000000000000000 [ 87.017892][ T5310] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 87.020609][ T5310] CR2: 0000200000002800 CR3: 0000000043a61000 CR4: 0000000000352ef0 [ 87.024062][ T5310] Call Trace: [ 87.025551][ T5310] [ 87.026773][ T5310] filp_close+0x1d/0x40 [ 87.028490][ T5310] gaudio_cleanup+0x54/0xf0 [ 87.030434][ T5310] f_audio_bind+0x4a0/0x630 [ 87.032399][ T5310] ? __pfx_f_audio_bind+0x10/0x10 [ 87.034411][ T5310] ? rcu_is_watching+0x16/0xb0 [ 87.036240][ T5310] ? usb_gadget_set_selfpowered+0xf5/0x260 [ 87.038603][ T5310] usb_add_function+0x2e1/0x9f0 [ 87.040640][ T5310] ? check_remote_wakeup_config+0x58/0x1c0 [ 87.043021][ T5310] configfs_composite_bind+0xde0/0x1410 [ 87.045472][ T5310] ? __pfx_configfs_composite_bind+0x10/0x10 [ 87.048001][ T5310] gadget_bind_driver+0x2ca/0x9e0 [ 87.050086][ T5310] ? __pfx_gadget_bind_driver+0x10/0x10 [ 87.052407][ T5310] really_probe+0x254/0xae0 [ 87.054359][ T5310] __driver_probe_device+0x1e8/0x360 [ 87.056581][ T5310] driver_probe_device+0x4f/0x240 [ 87.058514][ T5310] __driver_attach+0x339/0x600 [ 87.060418][ T5310] bus_for_each_dev+0x23b/0x2c0 [ 87.062399][ T5310] ? __pfx___driver_attach+0x10/0x10 [ 87.064890][ T5310] ? __pfx_bus_for_each_dev+0x10/0x10 [ 87.067675][ T5310] ? do_raw_spin_unlock+0x4d/0x200 [ 87.070349][ T5310] bus_add_driver+0x345/0x670 [ 87.072602][ T5310] driver_register+0x23a/0x320 [ 87.074879][ T5310] usb_gadget_register_driver_owner+0xf9/0x270 [ 87.077445][ T5310] gadget_dev_desc_UDC_store+0x1c9/0x2f0 [ 87.079776][ T5310] ? __pfx_gadget_dev_desc_UDC_store+0x10/0x10 [ 87.082351][ T5310] configfs_write_iter+0x337/0x430 [ 87.084553][ T5310] vfs_write+0x612/0xba0 [ 87.086365][ T5310] ? __pfx_vfs_write+0x10/0x10 [ 87.088420][ T5310] ? __fget_files+0x2a/0x420 [ 87.090425][ T5310] ksys_write+0x150/0x270 [ 87.092292][ T5310] ? __pfx_ksys_write+0x10/0x10 [ 87.094423][ T5310] do_syscall_64+0x166/0x520 [ 87.096483][ T5310] ? trace_irq_disable+0x3b/0x140 [ 87.098631][ T5310] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 87.101249][ T5310] ? clear_bhb_loop+0x70/0xc0 [ 87.103256][ T5310] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 87.105755][ T5310] RIP: 0033:0x7f3d37b9e0d9 [ 87.107692][ T5310] 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 [ 87.115614][ T5310] RSP: 002b:00007f3d389b6fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 87.119027][ T5310] RAX: ffffffffffffffda RBX: 00007f3d37e26180 RCX: 00007f3d37b9e0d9 [ 87.122311][ T5310] RDX: 000000000000000c RSI: 0000200000000400 RDI: 0000000000000003 [ 87.125528][ T5310] RBP: 00007f3d37c35024 R08: 0000000000000000 R09: 0000000000000000 [ 87.128606][ T5310] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 87.131829][ T5310] R13: 00007f3d37e26218 R14: 00007f3d37e26180 R15: 00007fff396a7138 [ 87.135187][ T5310] [ 87.136478][ T5310] Modules linked in: [ 87.138733][ T5310] ---[ end trace 0000000000000000 ]--- [ 87.148163][ T5310] RIP: 0010:filp_flush+0x184/0x190 [ 87.150774][ T5310] 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 [ 87.159986][ T5310] RSP: 0018:ffffc9000de376b8 EFLAGS: 00010246 [ 87.162477][ T5310] RAX: 0000000000000030 RBX: ffff888012898208 RCX: 33a58703e3562200 [ 87.165938][ T5310] RDX: 0000000000000000 RSI: 8000000000000000 RDI: 0000000000000000 [ 87.169961][ T5310] RBP: ffffc9000de377d8 R08: ffff88801fc246d3 R09: 1ffff11003f848da [ 87.172878][ T5310] R10: dffffc0000000000 R11: ffffed1003f848db R12: dffffc0000000000 [ 87.176000][ T5310] R13: ffff88801f76c528 R14: 0000000000000000 R15: 0000000000000003 [ 87.179759][ T5310] FS: 00007f3d389b76c0(0000) GS:ffff88808c30a000(0000) knlGS:0000000000000000 [ 87.183263][ T5310] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 87.185821][ T5310] CR2: 0000200000002800 CR3: 0000000043a61000 CR4: 0000000000352ef0 [ 87.189108][ T5310] Kernel panic - not syncing: Fatal exception [ 87.191702][ T5310] Kernel Offset: disabled [ 87.193142][ T5310] Rebooting in 86400 seconds..