program: r0 = socket$inet6_sctp(0xa, 0x5, 0x84) getsockopt$inet_sctp6_SCTP_MAXSEG(r0, 0x84, 0xd, &(0x7f0000000240), &(0x7f0000000280)=0x4) (async) getsockopt$inet_sctp6_SCTP_MAXSEG(r0, 0x84, 0xd, &(0x7f0000000240), &(0x7f0000000280)=0x4) 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') openat(0xffffffffffffff9c, &(0x7f0000000300)='./config/usb_gadget/g1/UDC\x00', 0x1, 0x0) (async) r1 = openat(0xffffffffffffff9c, &(0x7f0000000300)='./config/usb_gadget/g1/UDC\x00', 0x1, 0x0) write(r1, &(0x7f0000000400)='dummy_udc.0\n\x00', 0xc) (async) write(r1, &(0x7f0000000400)='dummy_udc.0\n\x00', 0xc) nanosleep(&(0x7f0000000500)={0x0, 0x2faf080}, 0x0) [ 93.528528][ T5311] sctp: [Deprecated]: syz.0.0 (pid 5311) Use of int in maxseg socket option. [ 93.528528][ T5311] Use struct sctp_assoc_value instead [ 93.538334][ T4641] Bluetooth: hci0: command tx timeout [ 93.560979][ T5312] sctp: [Deprecated]: syz.0.0 (pid 5312) Use of int in maxseg socket option. [ 93.560979][ T5312] Use struct sctp_assoc_value instead [ 93.627755][ T5312] configfs-gadget.g1 gadget.0: Hardware params: access 3, format 2, channels 2, rate 48000 [ 93.633482][ T5312] udc dummy_udc.0: failed to start g1: -19 [ 93.648107][ T5312] UDC core: g1: couldn't find an available UDC or it's busy [ 93.657099][ T5313] slab filp start ffff888012a568c0 pointer offset 0 size 352 [ 93.660734][ T5313] VFS: Close: file count is 0 (f_op=snd_ctl_f_ops) [ 93.661057][ T5313] ------------[ cut here ]------------ [ 93.667068][ T5313] kernel BUG at fs/open.c:1515! [ 93.671885][ T5313] Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI [ 93.674689][ T5313] CPU: 0 UID: 0 PID: 5313 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 93.678614][ T5313] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 93.682666][ T5313] RIP: 0010:filp_flush+0x184/0x190 [ 93.684450][ T5313] Code: 48 83 c3 48 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 3c 01 ee ff 48 8b 33 48 c7 c7 40 8d fe 8b e8 4d 65 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 [ 93.691655][ T5313] RSP: 0018:ffffc9000e9df6b8 EFLAGS: 00010246 [ 93.694185][ T5313] RAX: 0000000000000030 RBX: ffff888012a56908 RCX: 8c906d9f9a267600 [ 93.697612][ T5313] RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 [ 93.700835][ T5313] RBP: ffffc9000e9df7d8 R08: ffff88801fc24713 R09: 1ffff11003f848e2 [ 93.704049][ T5313] R10: dffffc0000000000 R11: ffffed1003f848e3 R12: dffffc0000000000 [ 93.707205][ T5313] R13: ffff888033654528 R14: 0000000000000000 R15: 0000000000000003 [ 93.710510][ T5313] FS: 00007f9703c366c0(0000) GS:ffff88808c534000(0000) knlGS:0000000000000000 [ 93.714184][ T5313] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 93.716922][ T5313] CR2: 00007f9703c35fe8 CR3: 0000000012cf3000 CR4: 0000000000352ef0 [ 93.720161][ T5313] Call Trace: [ 93.721560][ T5313] [ 93.722784][ T5313] filp_close+0x1d/0x40 [ 93.724729][ T5313] gaudio_cleanup+0x54/0xf0 [ 93.726519][ T5313] f_audio_bind+0x4a0/0x630 [ 93.728715][ T5313] ? __pfx_f_audio_bind+0x10/0x10 [ 93.730805][ T5313] ? rcu_is_watching+0x15/0xb0 [ 93.732874][ T5313] ? usb_gadget_set_selfpowered+0xf5/0x260 [ 93.735373][ T5313] usb_add_function+0x2e1/0x9f0 [ 93.737490][ T5313] ? check_remote_wakeup_config+0x58/0x1c0 [ 93.740573][ T5313] configfs_composite_bind+0xde0/0x1410 [ 93.743240][ T5313] ? __pfx_configfs_composite_bind+0x10/0x10 [ 93.746168][ T5313] gadget_bind_driver+0x2ca/0x9e0 [ 93.748814][ T5313] ? __pfx_gadget_bind_driver+0x10/0x10 [ 93.751575][ T5313] really_probe+0x254/0xae0 [ 93.753595][ T5313] __driver_probe_device+0x1e8/0x360 [ 93.755924][ T5313] driver_probe_device+0x4f/0x240 [ 93.758226][ T5313] __driver_attach+0x339/0x600 [ 93.760188][ T5313] bus_for_each_dev+0x23b/0x2c0 [ 93.762264][ T5313] ? __pfx___driver_attach+0x10/0x10 [ 93.764461][ T5313] ? __pfx_bus_for_each_dev+0x10/0x10 [ 93.766768][ T5313] ? do_raw_spin_unlock+0x4d/0x210 [ 93.768941][ T5313] bus_add_driver+0x345/0x670 [ 93.770803][ T5313] driver_register+0x23a/0x320 [ 93.772837][ T5313] usb_gadget_register_driver_owner+0xf9/0x270 [ 93.775294][ T5313] gadget_dev_desc_UDC_store+0x1c9/0x2f0 [ 93.777600][ T5313] ? __pfx_gadget_dev_desc_UDC_store+0x10/0x10 [ 93.780186][ T5313] configfs_write_iter+0x337/0x430 [ 93.782315][ T5313] vfs_write+0x612/0xba0 [ 93.784103][ T5313] ? __pfx_vfs_write+0x10/0x10 [ 93.786173][ T5313] ? __fget_files+0x2a/0x420 [ 93.788037][ T5313] ksys_write+0x150/0x270 [ 93.789723][ T5313] ? __pfx_ksys_write+0x10/0x10 [ 93.791571][ T5313] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 93.794047][ T5313] do_syscall_64+0x174/0x580 [ 93.796031][ T5313] ? trace_irq_disable+0x3b/0x140 [ 93.798199][ T5313] ? clear_bhb_loop+0x70/0xc0 [ 93.800126][ T5313] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 93.802548][ T5313] RIP: 0033:0x7f9702d9e0d9 [ 93.804323][ T5313] 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 [ 93.812318][ T5313] RSP: 002b:00007f9703c35fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 93.815867][ T5313] RAX: ffffffffffffffda RBX: 00007f9703026180 RCX: 00007f9702d9e0d9 [ 93.819320][ T5313] RDX: 000000000000000c RSI: 0000200000000400 RDI: 0000000000000004 [ 93.822454][ T5313] RBP: 00007f9702e35024 R08: 0000000000000000 R09: 0000000000000000 [ 93.825682][ T5313] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 93.828963][ T5313] R13: 00007f9703026218 R14: 00007f9703026180 R15: 00007ffce1192468 [ 93.832314][ T5313] [ 93.833652][ T5313] Modules linked in: [ 93.835841][ T5313] ---[ end trace 0000000000000000 ]--- [ 93.846494][ T5313] RIP: 0010:filp_flush+0x184/0x190 [ 93.848981][ T5313] Code: 48 83 c3 48 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 3c 01 ee ff 48 8b 33 48 c7 c7 40 8d fe 8b e8 4d 65 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 [ 93.859211][ T5313] RSP: 0018:ffffc9000e9df6b8 EFLAGS: 00010246 [ 93.862507][ T5313] RAX: 0000000000000030 RBX: ffff888012a56908 RCX: 8c906d9f9a267600 [ 93.866210][ T5313] RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 [ 93.869702][ T5313] RBP: ffffc9000e9df7d8 R08: ffff88801fc24713 R09: 1ffff11003f848e2 [ 93.873353][ T5313] R10: dffffc0000000000 R11: ffffed1003f848e3 R12: dffffc0000000000 [ 93.877402][ T5313] R13: ffff888033654528 R14: 0000000000000000 R15: 0000000000000003 [ 93.881001][ T5313] FS: 00007f9703c366c0(0000) GS:ffff88808c534000(0000) knlGS:0000000000000000 [ 93.884498][ T5313] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 93.887636][ T5313] CR2: 00007f9703c81230 CR3: 0000000012cf3000 CR4: 0000000000352ef0 [ 93.891158][ T5313] Kernel panic - not syncing: Fatal exception [ 93.894090][ T5313] Kernel Offset: disabled [ 93.895898][ T5313] Rebooting in 86400 seconds..