program: r0 = socket$nl_route(0x10, 0x3, 0x0) socket$nl_route(0x10, 0x3, 0x0) (async) r1 = socket$nl_route(0x10, 0x3, 0x0) ioctl$sock_SIOCGIFINDEX(r1, 0x8933, &(0x7f0000000180)={'wlan1\x00', 0x0}) sendmsg$nl_route(r1, &(0x7f0000000040)={0x0, 0xf0, &(0x7f0000000100)={&(0x7f0000000280)=@newlink={0x20, 0x10, 0x401, 0x0, 0x0, {0x0, 0x48, 0x0, r2, 0x21eae}}, 0x20}}, 0x0) r3 = socket$nl_generic(0x10, 0x3, 0x10) r4 = socket$unix(0x1, 0x2, 0x0) r5 = syz_genetlink_get_family_id$nl80211(&(0x7f00000003c0), r3) ioctl$sock_SIOCGIFINDEX_80211(r4, 0x8933, &(0x7f0000000100)={'wlan1\x00', 0x0}) sendmsg$NL80211_CMD_NEW_INTERFACE(r3, &(0x7f0000000300)={0x0, 0x0, &(0x7f0000000040)={&(0x7f0000000340)={0x50, r5, 0x1, 0x70bd28, 0x25dfdbfd, {{}, {@void, @val={0x8, 0x3, r6}, @val={0xc, 0x99, {0x7ff, 0x70}}}}, [@NL80211_ATTR_IFNAME={0x14, 0x4, 'syzkaller0\x00'}, @NL80211_ATTR_IFTYPE={0x8, 0x5, 0x7}, @NL80211_ATTR_MESH_ID={0xa}]}, 0x50}, 0x1, 0x0, 0x0, 0x91}, 0x24044884) r7 = openat$tun(0xffffffffffffff9c, &(0x7f0000000400), 0x0, 0x0) close(r7) socket$inet_sctp(0x2, 0x1, 0x84) (async) socket$inet_sctp(0x2, 0x1, 0x84) ioctl$SIOCSIFHWADDR(r7, 0x8914, &(0x7f0000002280)={'syzkaller0\x00', @link_local}) (async) ioctl$SIOCSIFHWADDR(r7, 0x8914, &(0x7f0000002280)={'syzkaller0\x00', @link_local}) r8 = socket$nl_route(0x10, 0x3, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000000)='./config\x00', 0x1ff) 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) 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) (async) 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) r9 = openat(0xffffffffffffff9c, &(0x7f0000000300)='./config/usb_gadget/g1/UDC\x00', 0x1, 0x0) write(r9, &(0x7f0000000400)='dummy_udc.0\n\x00', 0xc) (async) write(r9, &(0x7f0000000400)='dummy_udc.0\n\x00', 0xc) nanosleep(&(0x7f0000000500)={0x0, 0x2faf080}, 0x0) ioctl$sock_SIOCGIFINDEX(r8, 0x8933, &(0x7f0000000100)={'syzkaller0\x00', 0x0}) r11 = socket$packet(0x11, 0x3, 0x300) sendto$packet(r11, &(0x7f0000000640)="000a18000000604000eb55000000", 0xe, 0x4000000, &(0x7f0000000380)={0x11, 0x888e, r10, 0x1, 0xd8, 0x6, @dev={'\xaa\xaa\xaa\xaa\xaa', 0x10}}, 0x14) ioctl$sock_FIOSETOWN(r0, 0x8901, &(0x7f0000000a40)) [ 94.727426][ T4641] Bluet[ 94.673264][ T4641] Bluetooth: hci0: command tx timeout [ 94.766621][ T5317] mac80211_hwsim hwsim3 wlan1: entered allmulticast mode [ 94.885814][ T5317] configfs-gadget.g1 gadget.0: Hardware params: access 3, format 2, channels 2, rate 48000 [ 94.893541][ T5317] udc dummy_udc.0: failed to start g1: -19 [ 94.900061][ T5317] UDC core: g1: couldn't find an available UDC or it's busy [ 94.910204][ T5316] slab filp start ffff88803363a700 pointer offset 0 size 352 [ 94.915370][ T5316] VFS: Close: file count is 0 (f_op=snd_ctl_f_ops) [ 94.916037][ T5316] ------------[ cut here ]------------ [ 94.921669][ T5316] kernel BUG at fs/open.c:1466! [ 94.933476][ T5316] Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI [ 94.936322][ T5316] CPU: 0 UID: 0 PID: 5316 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 94.940177][ T5316] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 94.944396][ T5316] RIP: 0010:filp_flush+0x184/0x190 [ 94.946651][ T5316] 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 ed 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 [ 94.954836][ T5316] RSP: 0018:ffffc9000f65f6b8 EFLAGS: 00010246 [ 94.957387][ T5316] RAX: 0000000000000030 RBX: ffff88803363a748 RCX: 1fcc5ae22f9ab400 [ 94.960821][ T5316] RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 [ 94.964201][ T5316] RBP: ffffc9000f65f7d8 R08: ffff88801fc24713 R09: 1ffff11003f848e2 [ 94.967596][ T5316] R10: dffffc0000000000 R11: ffffed1003f848e3 R12: dffffc0000000000 [ 94.971092][ T5316] R13: ffff8880120e8528 R14: 0000000000000000 R15: 0000000000000003 [ 94.974488][ T5316] FS: 00007fc0be8ec6c0(0000) GS:ffff88808c53e000(0000) knlGS:0000000000000000 [ 94.978308][ T5316] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 94.981136][ T5316] CR2: 0000200000002280 CR3: 00000000431cf000 CR4: 0000000000352ef0 [ 94.984529][ T5316] Call Trace: [ 94.985966][ T5316] [ 94.987214][ T5316] filp_close+0x1d/0x40 [ 94.989037][ T5316] gaudio_cleanup+0x54/0xf0 [ 94.991013][ T5316] f_audio_bind+0x4a0/0x630 [ 94.992882][ T5316] ? __pfx_f_audio_bind+0x10/0x10 [ 94.994993][ T5316] ? rcu_is_watching+0x15/0xb0 [ 94.997078][ T5316] ? usb_gadget_set_selfpowered+0xf5/0x260 [ 94.999561][ T5316] usb_add_function+0x2e1/0x9f0 [ 95.001647][ T5316] ? check_remote_wakeup_config+0x58/0x1c0 [ 95.004221][ T5316] configfs_composite_bind+0xde0/0x1410 [ 95.006346][ T5316] ? __pfx_configfs_composite_bind+0x10/0x10 [ 95.008951][ T5316] gadget_bind_driver+0x2ca/0x9e0 [ 95.011178][ T5316] ? __pfx_gadget_bind_driver+0x10/0x10 [ 95.013598][ T5316] really_probe+0x254/0xae0 [ 95.015412][ T5316] __driver_probe_device+0x1e8/0x360 [ 95.017576][ T5316] driver_probe_device+0x4f/0x240 [ 95.019761][ T5316] __driver_attach+0x339/0x600 [ 95.021455][ T5316] bus_for_each_dev+0x23b/0x2c0 [ 95.023105][ T5316] ? __pfx___driver_attach+0x10/0x10 [ 95.024984][ T5316] ? __pfx_bus_for_each_dev+0x10/0x10 [ 95.026862][ T5316] ? do_raw_spin_unlock+0x4d/0x210 [ 95.028608][ T5316] bus_add_driver+0x345/0x670 [ 95.030562][ T5316] driver_register+0x23a/0x320 [ 95.032562][ T5316] usb_gadget_register_driver_owner+0xf9/0x270 [ 95.034827][ T5316] gadget_dev_desc_UDC_store+0x1c9/0x2f0 [ 95.036786][ T5316] ? __pfx_gadget_dev_desc_UDC_store+0x10/0x10 [ 95.039114][ T5316] configfs_write_iter+0x337/0x430 [ 95.041131][ T5316] vfs_write+0x612/0xba0 [ 95.043011][ T5316] ? __pfx_vfs_write+0x10/0x10 [ 95.044953][ T5316] ? __fget_files+0x2a/0x420 [ 95.046913][ T5316] ksys_write+0x150/0x270 [ 95.048699][ T5316] ? __pfx_ksys_write+0x10/0x10 [ 95.050756][ T5316] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 95.053220][ T5316] do_syscall_64+0x174/0x580 [ 95.055044][ T5316] ? trace_irq_disable+0x3b/0x140 [ 95.057031][ T5316] ? clear_bhb_loop+0x70/0xc0 [ 95.058891][ T5316] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 95.061299][ T5316] RIP: 0033:0x7fc0bd99e0d9 [ 95.063309][ T5316] 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 [ 95.071390][ T5316] RSP: 002b:00007fc0be8ebfe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 95.075551][ T5316] RAX: ffffffffffffffda RBX: 00007fc0bdc25fa0 RCX: 00007fc0bd99e0d9 [ 95.078777][ T5316] RDX: 000000000000000c RSI: 0000200000000400 RDI: 000000000000000c [ 95.081937][ T5316] RBP: 00007fc0bda35024 R08: 0000000000000000 R09: 0000000000000000 [ 95.085204][ T5316] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 95.088377][ T5316] R13: 00007fc0bdc26038 R14: 00007fc0bdc25fa0 R15: 00007ffef082d058 [ 95.091808][ T5316] [ 95.093200][ T5316] Modules linked in: [ 95.095394][ T5316] ---[ end trace 0000000000000000 ]--- [ 95.108756][ T5316] RIP: 0010:filp_flush+0x184/0x190 [ 95.111270][ T5316] 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 ed 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 [ 95.119383][ T5316] RSP: 0018:ffffc9000f65f6b8 EFLAGS: 00010246 [ 95.122493][ T5316] RAX: 0000000000000030 RBX: ffff88803363a748 RCX: 1fcc5ae22f9ab400 [ 95.126027][ T5316] RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 [ 95.129563][ T5316] RBP: ffffc9000f65f7d8 R08: ffff88801fc24713 R09: 1ffff11003f848e2 [ 95.133406][ T5316] R10: dffffc0000000000 R11: ffffed1003f848e3 R12: dffffc0000000000 [ 95.136879][ T5316] R13: ffff8880120e8528 R14: 0000000000000000 R15: 0000000000000003 [ 95.140564][ T5316] FS: 00007fc0be8ec6c0(0000) GS:ffff88808c53e000(0000) knlGS:0000000000000000 [ 95.144638][ T5316] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 95.147538][ T5316] CR2: 0000200000002280 CR3: 00000000431cf000 CR4: 0000000000352ef0 [ 95.150727][ T5316] Kernel panic - not syncing: Fatal exception [ 95.153504][ T5316] Kernel Offset: disabled [ 95.155248][ T5316] Rebooting in 86400 seconds..