program: r0 = socket$nl_route(0x10, 0x3, 0x0) 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) (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') (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') 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) r2 = bpf$PROG_LOAD_XDP(0x5, &(0x7f0000000300)={0x6, 0x3, &(0x7f0000000240)=@framed, &(0x7f00000001c0)='syzkaller\x00'}, 0x94) r3 = socket$packet(0x11, 0x2, 0x300) r4 = socket$nl_xfrm(0x10, 0x3, 0x6) sendmsg$netlink(r4, &(0x7f0000001f80)={0x0, 0x0, &(0x7f0000001f00)=[{&(0x7f0000002840)={0x114, 0x27, 0x1, 0x0, 0x0, "", [@nested={0x101, 0x0, 0x0, 0x1, [@generic="24d4e3455c7216da3484447f8a081f930884b55764ca84de3d0e7bc8d6f29cd84ba9408cf2351604f1724e10a8fcc3988de886d82375980e92a1ba2f8410b06773cbbf6293af17222761aa1289e6a8f1d888f4809cdccfe1c8695630dcb6bad9b53d1d97f2f820a715ce709fcaa40a70dc4c98ebbe761c0eec46d4f50508215e72fc781a471b1a7c769a074f2d6388253cfdd4b0e37a788fbb7296ae39bb35439c66437fa3347adfaca46f74fbc95f1b070287096cc9bdc953ea637c118a68a8ddc03aa44e8aa8ca5dac063a05", @typed={0x2d, 0x0, 0x0, 0x0, @binary="8bb982eb4ec7e08b552a2807c00bbfbbb5369dd1e04690a1267e29e89d27673db50050419e278e6130"}]}]}, 0x114}], 0x1}, 0x0) syz_emit_ethernet(0x32, &(0x7f0000000000)={@local, @empty, @void, {@ipv4={0x800, @dccp={{0x5, 0x4, 0x0, 0x0, 0x24, 0x0, 0x0, 0x0, 0x21, 0x0, @initdev={0xac, 0x1e, 0x0, 0x0}, @dev}, {{0x0, 0x0, 0x4, 0x1, 0x0, 0x0, 0x0, 0x2, 0x0, "0bc0f7", 0x0, "de9560"}}}}}}, 0x0) ioctl$sock_SIOCGIFINDEX(r3, 0x8933, &(0x7f0000000040)={'hsr0\x00'}) (async) ioctl$sock_SIOCGIFINDEX(r3, 0x8933, &(0x7f0000000040)={'hsr0\x00', 0x0}) syz_usb_connect$hid(0x6, 0x0, 0x0, 0x0) bpf$BPF_LINK_CREATE_XDP(0x1c, &(0x7f00000000c0)={r2, r5, 0x25, 0x0, @val=@iter={0x0}}, 0x40) (async) bpf$BPF_LINK_CREATE_XDP(0x1c, &(0x7f00000000c0)={r2, r5, 0x25, 0x0, @val=@iter={0x0}}, 0x40) sendmsg$nl_route_sched(r0, &(0x7f0000000200)={0x0, 0x0, &(0x7f0000000240)={&(0x7f0000004c00)=@newtfilter={0x24, 0x11, 0xd27, 0x0, 0x0, {0x0, 0x0, 0x74, r5}}, 0x24}, 0x1, 0xf0ffffffffffff}, 0x0) [ 92.953815][ T5324] configfs-gadget.g1 gadget.0: Hardware params: access 3, format 2, channels 2, rate 48000 [ 92.958986][ T5324] udc dummy_udc.0: failed to start g1: -19 [ 92.965018][ T5324] UDC core: g1: couldn't find an available UDC or it's busy [ 92.970233][ T5325] slab filp start ffff888012c5ee00 pointer offset 0 size 352 [ 92.974349][ T5325] VFS: Close: file count is 0 (f_op=snd_ctl_f_ops) [ 92.974622][ T5325] ------------[ cut here ]------------ [ 92.985955][ T5325] kernel BUG at fs/open.c:1466! [ 92.988260][ T5325] Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI [ 92.990872][ T5325] CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 92.994611][ T5325] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 92.998775][ T5325] RIP: 0010:filp_flush+0x184/0x190 [ 93.000996][ T5325] Code: 48 83 c3 48 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 7c 14 ee ff 48 8b 33 48 c7 c7 80 8c fe 8b e8 4d 7e 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.009185][ T5325] RSP: 0018:ffffc9000e2ff6b8 EFLAGS: 00010246 [ 93.011631][ T5325] RAX: 0000000000000030 RBX: ffff888012c5ee48 RCX: d6b99b75f2d75300 [ 93.014674][ T5325] RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 [ 93.017856][ T5325] RBP: ffffc9000e2ff7d8 R08: 0000000000000003 R09: 0000000000000004 [ 93.020946][ T5325] R10: dffffc0000000000 R11: fffffbfff1d3ca24 R12: dffffc0000000000 [ 93.024012][ T5325] R13: ffff888012920528 R14: 0000000000000000 R15: 0000000000000003 [ 93.027244][ T5325] FS: 00007f0e2ef996c0(0000) GS:ffff88808c53f000(0000) knlGS:0000000000000000 [ 93.030991][ T5325] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 93.033736][ T5325] CR2: 00007f0e2a5f4fe8 CR3: 0000000013720000 CR4: 0000000000352ef0 [ 93.037092][ T5325] Call Trace: [ 93.038424][ T5325] [ 93.039648][ T5325] filp_close+0x1d/0x40 [ 93.041300][ T5325] gaudio_cleanup+0x54/0xf0 [ 93.043104][ T5325] f_audio_bind+0x4a0/0x630 [ 93.044881][ T5325] ? __pfx_f_audio_bind+0x10/0x10 [ 93.046800][ T5325] ? rcu_is_watching+0x15/0xb0 [ 93.048766][ T5325] ? usb_gadget_set_selfpowered+0xf5/0x260 [ 93.051013][ T5325] usb_add_function+0x2e1/0x9f0 [ 93.053185][ T5325] ? check_remote_wakeup_config+0x58/0x1c0 [ 93.055704][ T5325] configfs_composite_bind+0xde0/0x1410 [ 93.058070][ T5325] ? __pfx_configfs_composite_bind+0x10/0x10 [ 93.060685][ T5325] gadget_bind_driver+0x2ca/0x9e0 [ 93.062881][ T5325] ? __pfx_gadget_bind_driver+0x10/0x10 [ 93.065302][ T5325] really_probe+0x254/0xae0 [ 93.067332][ T5325] __driver_probe_device+0x1e8/0x360 [ 93.069545][ T5325] driver_probe_device+0x4f/0x240 [ 93.071722][ T5325] __driver_attach+0x339/0x600 [ 93.073877][ T5325] bus_for_each_dev+0x23b/0x2c0 [ 93.075952][ T5325] ? __pfx___driver_attach+0x10/0x10 [ 93.078181][ T5325] ? __pfx_bus_for_each_dev+0x10/0x10 [ 93.080399][ T5325] ? do_raw_spin_unlock+0x4d/0x210 [ 93.082520][ T5325] bus_add_driver+0x345/0x670 [ 93.084462][ T5325] driver_register+0x23a/0x320 [ 93.086436][ T5325] usb_gadget_register_driver_owner+0xf9/0x270 [ 93.088923][ T5325] gadget_dev_desc_UDC_store+0x1c9/0x2f0 [ 93.091197][ T5325] ? __pfx_gadget_dev_desc_UDC_store+0x10/0x10 [ 93.093806][ T5325] configfs_write_iter+0x337/0x430 [ 93.096055][ T5325] vfs_write+0x612/0xba0 [ 93.097911][ T5325] ? __pfx_vfs_write+0x10/0x10 [ 93.100015][ T5325] ? __fget_files+0x2a/0x420 [ 93.102041][ T5325] ksys_write+0x150/0x270 [ 93.103950][ T5325] ? __pfx_ksys_write+0x10/0x10 [ 93.105968][ T5325] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 93.108459][ T5325] do_syscall_64+0x174/0x580 [ 93.110457][ T5325] ? trace_irq_disable+0x3b/0x140 [ 93.112597][ T5325] ? clear_bhb_loop+0x40/0x90 [ 93.114625][ T5325] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 93.117146][ T5325] RIP: 0033:0x7f0e2e19e019 [ 93.119098][ T5325] 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.127392][ T5325] RSP: 002b:00007f0e2ef98fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 93.130826][ T5325] RAX: ffffffffffffffda RBX: 00007f0e2e426090 RCX: 00007f0e2e19e019 [ 93.134292][ T5325] RDX: 000000000000000c RSI: 0000200000000400 RDI: 0000000000000005 [ 93.137535][ T5325] RBP: 00007f0e2e23500c R08: 0000000000000000 R09: 0000000000000000 [ 93.140982][ T5325] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 93.144321][ T5325] R13: 00007f0e2e426128 R14: 00007f0e2e426090 R15: 00007fffd43c3468 [ 93.147606][ T5325] [ 93.148945][ T5325] Modules linked in: [ 93.151040][ T5325] ---[ end trace 0000000000000000 ]--- [ 93.153781][ T5325] RIP: 0010:filp_flush+0x184/0x190 [ 93.156106][ T5325] Code: 48 83 c3 48 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 7c 14 ee ff 48 8b 33 48 c7 c7 80 8c fe 8b e8 4d 7e 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.164493][ T5325] RSP: 0018:ffffc9000e2ff6b8 EFLAGS: 00010246 [ 93.167154][ T5325] RAX: 0000000000000030 RBX: ffff888012c5ee48 RCX: d6b99b75f2d75300 [ 93.170676][ T5325] RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 [ 93.174091][ T5325] RBP: ffffc9000e2ff7d8 R08: 0000000000000003 R09: 0000000000000004 [ 93.177782][ T5325] R10: dffffc0000000000 R11: fffffbfff1d3ca24 R12: dffffc0000000000 [ 93.181326][ T5325] R13: ffff888012920528 R14: 0000000000000000 R15: 0000000000000003 [ 93.184780][ T5325] FS: 00007f0e2ef996c0(0000) GS:ffff88808c53f000(0000) knlGS:0000000000000000 [ 93.188729][ T5325] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 93.191695][ T5325] CR2: 00007f0e2a5f4fe8 CR3: 0000000013720000 CR4: 0000000000352ef0 [ 93.195274][ T5325] Kernel panic - not syncing: Fatal exception [ 93.198346][ T5325] Kernel Offset: disabled [ 93.200272][ T5325] Rebooting in 86400 seconds..