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, &(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) 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) 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') r1 = openat(0xffffffffffffff9c, &(0x7f0000000300)='./config/usb_gadget/g1/UDC\x00', 0x1, 0x0) write(r1, &(0x7f0000000400)='dummy_udc.0\n\x00', 0xc) nanosleep(&(0x7f0000000500)={0x0, 0x2faf080}, 0x0) [ 116.522157][ T5282] Bluetooth: hci0: command tx timeout [ 116.605428][ T5317] configfs-gadget.g1 gadget.0: Hardware params: access 3, format 2, channels 2, rate 48000 [ 116.612195][ T5317] udc dummy_udc.0: failed to start g1: -19 [ 116.617826][ T5317] UDC core: g1: couldn't find an available UDC or it's busy [ 116.629806][ T5317] slab filp start ffff88803ebab000 pointer offset 0 size 352 [ 116.634827][ T5317] VFS: Close: file count is 0 (f_op=snd_ctl_f_ops) [ 116.635101][ T5317] ------------[ cut here ]------------ [ 116.640308][ T5317] kernel BUG at fs/open.c:1466! [ 116.644073][ T5317] Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI [ 116.646459][ T5317] CPU: 0 UID: 0 PID: 5317 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 116.650029][ T5317] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 116.654677][ T5317] RIP: 0010:filp_flush+0x184/0x190 [ 116.657382][ T5317] Code: 48 83 c3 48 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 1c 06 ee ff 48 8b 33 48 c7 c7 40 8d fe 8b e8 bd 78 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 [ 116.667335][ T5317] RSP: 0018:ffffc9000e3476b8 EFLAGS: 00010246 [ 116.670205][ T5317] RAX: 0000000000000030 RBX: ffff88803ebab048 RCX: f7021b6702f8eb00 [ 116.673557][ T5317] RDX: ffffc9000ec0a000 RSI: 0000000000001092 RDI: 0000000000001093 [ 116.676901][ T5317] RBP: ffffc9000e3477d8 R08: ffff88801fc24713 R09: 1ffff11003f848e2 [ 116.680284][ T5317] R10: dffffc0000000000 R11: ffffed1003f848e3 R12: dffffc0000000000 [ 116.683845][ T5317] R13: ffff88803faf6528 R14: 0000000000000000 R15: 0000000000000003 [ 116.687112][ T5317] FS: 00007f2cda5956c0(0000) GS:ffff88808c53e000(0000) knlGS:0000000000000000 [ 116.690904][ T5317] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 116.693482][ T5317] CR2: 00007f2cda59e230 CR3: 00000000127ca000 CR4: 0000000000352ef0 [ 116.696703][ T5317] Call Trace: [ 116.698138][ T5317] [ 116.699360][ T5317] filp_close+0x1d/0x40 [ 116.701183][ T5317] gaudio_cleanup+0x54/0xf0 [ 116.703196][ T5317] f_audio_bind+0x4a0/0x630 [ 116.705161][ T5317] ? __pfx_f_audio_bind+0x10/0x10 [ 116.707335][ T5317] usb_add_function+0x2e1/0x9f0 [ 116.709458][ T5317] ? check_remote_wakeup_config+0x58/0x1c0 [ 116.711979][ T5317] configfs_composite_bind+0xde0/0x1410 [ 116.714344][ T5317] ? __pfx_configfs_composite_bind+0x10/0x10 [ 116.716519][ T5317] gadget_bind_driver+0x2ca/0x9e0 [ 116.718652][ T5317] ? __pfx_gadget_bind_driver+0x10/0x10 [ 116.720840][ T5317] really_probe+0x254/0xae0 [ 116.722681][ T5317] __driver_probe_device+0x1e8/0x360 [ 116.724857][ T5317] driver_probe_device+0x4f/0x240 [ 116.727016][ T5317] __driver_attach+0x339/0x600 [ 116.729139][ T5317] bus_for_each_dev+0x23b/0x2c0 [ 116.731259][ T5317] ? __pfx___driver_attach+0x10/0x10 [ 116.733482][ T5317] ? __pfx_bus_for_each_dev+0x10/0x10 [ 116.735718][ T5317] ? do_raw_spin_unlock+0x4d/0x210 [ 116.737922][ T5317] bus_add_driver+0x345/0x670 [ 116.740023][ T5317] driver_register+0x23a/0x320 [ 116.742102][ T5317] usb_gadget_register_driver_owner+0xf9/0x270 [ 116.744770][ T5317] gadget_dev_desc_UDC_store+0x1c9/0x2f0 [ 116.747198][ T5317] ? __pfx_gadget_dev_desc_UDC_store+0x10/0x10 [ 116.749900][ T5317] configfs_write_iter+0x337/0x430 [ 116.752108][ T5317] vfs_write+0x612/0xba0 [ 116.753866][ T5317] ? __pfx_vfs_write+0x10/0x10 [ 116.755778][ T5317] ? __fget_files+0x2a/0x420 [ 116.757716][ T5317] ksys_write+0x150/0x270 [ 116.759466][ T5317] ? __pfx_ksys_write+0x10/0x10 [ 116.761445][ T5317] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 116.763961][ T5317] do_syscall_64+0x174/0x580 [ 116.765861][ T5317] ? trace_irq_disable+0x3b/0x140 [ 116.767972][ T5317] ? clear_bhb_loop+0x70/0xc0 [ 116.770034][ T5317] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 116.772587][ T5317] RIP: 0033:0x7f2cd979e0d9 [ 116.774528][ T5317] 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 [ 116.782255][ T5317] RSP: 002b:00007f2cda594fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 116.785545][ T5317] RAX: ffffffffffffffda RBX: 00007f2cd9a25fa0 RCX: 00007f2cd979e0d9 [ 116.788705][ T5317] RDX: 000000000000000c RSI: 0000200000000400 RDI: 0000000000000004 [ 116.792187][ T5317] RBP: 00007f2cd9835024 R08: 0000000000000000 R09: 0000000000000000 [ 116.795575][ T5317] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 116.798807][ T5317] R13: 00007f2cd9a26038 R14: 00007f2cd9a25fa0 R15: 00007fffcf15c1a8 [ 116.801987][ T5317] [ 116.803289][ T5317] Modules linked in: [ 116.805531][ T5317] ---[ end trace 0000000000000000 ]--- [ 116.813836][ T5317] RIP: 0010:filp_flush+0x184/0x190 [ 116.815920][ T5317] Code: 48 83 c3 48 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 1c 06 ee ff 48 8b 33 48 c7 c7 40 8d fe 8b e8 bd 78 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 [ 116.824478][ T5317] RSP: 0018:ffffc9000e3476b8 EFLAGS: 00010246 [ 116.827724][ T5317] RAX: 0000000000000030 RBX: ffff88803ebab048 RCX: f7021b6702f8eb00 [ 116.831593][ T5317] RDX: ffffc9000ec0a000 RSI: 0000000000001092 RDI: 0000000000001093 [ 116.835267][ T5317] RBP: ffffc9000e3477d8 R08: ffff88801fc24713 R09: 1ffff11003f848e2 [ 116.838608][ T5317] R10: dffffc0000000000 R11: ffffed1003f848e3 R12: dffffc0000000000 [ 116.842449][ T5317] R13: ffff88803faf6528 R14: 0000000000000000 R15: 0000000000000003 [ 116.845996][ T5317] FS: 00007f2cda5956c0(0000) GS:ffff88808c53e000(0000) knlGS:0000000000000000 [ 116.849862][ T5317] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 116.852990][ T5317] CR2: 00007f2cda59e230 CR3: 00000000127ca000 CR4: 0000000000352ef0 [ 116.856432][ T5317] Kernel panic - not syncing: Fatal exception [ 116.859515][ T5317] Kernel Offset: disabled [ 116.861449][ T5317] Rebooting in 86400 seconds..