program: 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) 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') capset(&(0x7f0000000040)={0x20080522}, &(0x7f0000000080)) (async) capset(&(0x7f0000000040)={0x20080522}, &(0x7f0000000080)) gettid() timer_create(0x9, 0x0, &(0x7f00000000c0)) r0 = openat(0xffffffffffffff9c, &(0x7f0000000300)='./config/usb_gadget/g1/UDC\x00', 0x1, 0x0) write(r0, &(0x7f0000000400)='dummy_udc.0\n\x00', 0xc) (async) write(r0, &(0x7f0000000400)='dummy_udc.0\n\x00', 0xc) nanosleep(&(0x7f0000000500)={0x0, 0x2faf080}, 0x0) r1 = socket$nl_netfilter(0x10, 0x3, 0xc) sendmsg$NFT_BATCH(r1, &(0x7f000000c2c0)={0x0, 0x0, &(0x7f0000000200)={&(0x7f0000000580)=ANY=[@ANYBLOB="140000001000010000000000000000000000000a28000000000a0101000000005e1affd5020000000900010073797a300000000008000240000000032c000000030a01030000e6ff00000000020000000900010073797a30000000000900030073797a320000000014000000110001"], 0x7c}}, 0x0) (async) sendmsg$NFT_BATCH(r1, &(0x7f000000c2c0)={0x0, 0x0, &(0x7f0000000200)={&(0x7f0000000580)=ANY=[@ANYBLOB="140000001000010000000000000000000000000a28000000000a0101000000005e1affd5020000000900010073797a300000000008000240000000032c000000030a01030000e6ff00000000020000000900010073797a30000000000900030073797a320000000014000000110001"], 0x7c}}, 0x0) sendmsg$NFT_BATCH(r1, &(0x7f00000002c0)={0x0, 0x0, &(0x7f0000000040)={&(0x7f0000000140)={{0x14}, [@NFT_MSG_NEWRULE={0x48, 0x6, 0xa, 0x40b, 0x0, 0x0, {0x2}, [@NFTA_RULE_EXPRESSIONS={0x1c, 0x4, 0x0, 0x1, [{0x18, 0x1, 0x0, 0x1, @fib={{0x8}, @val={0xc, 0x2, 0x0, 0x1, [@NFTA_FIB_RESULT={0x8, 0x2, 0x1, 0x0, 0x2}]}}}]}, @NFTA_RULE_TABLE={0x9, 0x1, 'syz0\x00'}, @NFTA_RULE_CHAIN={0x9, 0x2, 'syz2\x00'}]}], {0x14}}, 0x70}}, 0x0) bpf$PROG_LOAD(0x5, &(0x7f0000000480)={0x8, 0x4, &(0x7f0000000040)=@framed={{}, [@ldst={0x3, 0x2, 0x3, 0x1, 0x0, 0x43}]}, &(0x7f0000000300)='syzkaller\x00', 0x0, 0x0, 0x0, 0x0, 0x0, '\x00', 0x0, @cgroup_skb, 0xffffffffffffffff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, 0x80) [ 164.239949][ T4637] Bluetooth: hci0: command tx timeout [ 164.308809][ T5328] configfs-gadget.g1 gadget.0: Hardware params: access 3, format 2, channels 2, rate 48000 [ 164.314445][ T5328] udc dummy_udc.0: failed to start g1: -19 [ 164.320699][ T5328] UDC core: g1: couldn't find an available UDC or it's busy [ 164.330720][ T5329] slab filp start ffff888032d8a540 pointer offset 0 size 352 [ 164.374169][ T5329] VFS: Close: file count is 0 (f_op=snd_ctl_f_ops) [ 164.374504][ T5329] ------------[ cut here ]------------ [ 164.379468][ T5329] kernel BUG at fs/open.c:1466! [ 164.383881][ T5329] Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI [ 164.386539][ T5329] CPU: 0 UID: 0 PID: 5329 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 164.390081][ T5329] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 164.394195][ T5329] RIP: 0010:filp_flush+0x184/0x190 [ 164.396302][ T5329] 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 9d 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 [ 164.403857][ T5329] RSP: 0018:ffffc9000cd6f6b8 EFLAGS: 00010246 [ 164.406327][ T5329] RAX: 0000000000000030 RBX: ffff888032d8a588 RCX: b25ecdbc290a1800 [ 164.409494][ T5329] RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 [ 164.412798][ T5329] RBP: ffffc9000cd6f7d8 R08: ffff88801fc24713 R09: 1ffff11003f848e2 [ 164.416151][ T5329] R10: dffffc0000000000 R11: ffffed1003f848e3 R12: dffffc0000000000 [ 164.419387][ T5329] R13: ffff888034b98528 R14: 0000000000000000 R15: 0000000000000003 [ 164.422641][ T5329] FS: 00007f3478dd46c0(0000) GS:ffff88808c54a000(0000) knlGS:0000000000000000 [ 164.426369][ T5329] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 164.429113][ T5329] CR2: 00007f1a0fa2d340 CR3: 0000000044443000 CR4: 0000000000352ef0 [ 164.432499][ T5329] Call Trace: [ 164.433990][ T5329] [ 164.435356][ T5329] filp_close+0x1d/0x40 [ 164.437249][ T5329] gaudio_cleanup+0x54/0xf0 [ 164.439240][ T5329] f_audio_bind+0x4a0/0x630 [ 164.441218][ T5329] ? __pfx_f_audio_bind+0x10/0x10 [ 164.443384][ T5329] ? rcu_is_watching+0x15/0xb0 [ 164.445394][ T5329] ? usb_gadget_set_selfpowered+0xf5/0x260 [ 164.447891][ T5329] usb_add_function+0x2e1/0x9f0 [ 164.449963][ T5329] ? check_remote_wakeup_config+0x58/0x1c0 [ 164.452427][ T5329] configfs_composite_bind+0xde0/0x1410 [ 164.454530][ T5329] ? __pfx_configfs_composite_bind+0x10/0x10 [ 164.457211][ T5329] gadget_bind_driver+0x2ca/0x9e0 [ 164.459459][ T5329] ? __pfx_gadget_bind_driver+0x10/0x10 [ 164.461610][ T5329] really_probe+0x254/0xae0 [ 164.463537][ T5329] __driver_probe_device+0x1e8/0x360 [ 164.465791][ T5329] driver_probe_device+0x4f/0x240 [ 164.467911][ T5329] __driver_attach+0x339/0x600 [ 164.469934][ T5329] bus_for_each_dev+0x23b/0x2c0 [ 164.472043][ T5329] ? __pfx___driver_attach+0x10/0x10 [ 164.474215][ T5329] ? __pfx_bus_for_each_dev+0x10/0x10 [ 164.476454][ T5329] ? do_raw_spin_unlock+0x4d/0x210 [ 164.478604][ T5329] bus_add_driver+0x345/0x670 [ 164.480630][ T5329] driver_register+0x23a/0x320 [ 164.482616][ T5329] usb_gadget_register_driver_owner+0xf9/0x270 [ 164.485268][ T5329] gadget_dev_desc_UDC_store+0x1c9/0x2f0 [ 164.487808][ T5329] ? __pfx_gadget_dev_desc_UDC_store+0x10/0x10 [ 164.490372][ T5329] configfs_write_iter+0x337/0x430 [ 164.492643][ T5329] vfs_write+0x612/0xba0 [ 164.494492][ T5329] ? __pfx_vfs_write+0x10/0x10 [ 164.496596][ T5329] ? __fget_files+0x2a/0x420 [ 164.498637][ T5329] ksys_write+0x150/0x270 [ 164.500400][ T5329] ? __pfx_ksys_write+0x10/0x10 [ 164.502418][ T5329] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 164.504913][ T5329] do_syscall_64+0x174/0x580 [ 164.506848][ T5329] ? trace_irq_disable+0x3b/0x140 [ 164.508911][ T5329] ? clear_bhb_loop+0x70/0xc0 [ 164.510926][ T5329] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 164.513397][ T5329] RIP: 0033:0x7f347c99e0d9 [ 164.515281][ T5329] 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 [ 164.522965][ T5329] RSP: 002b:00007f3478dd3fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 164.526387][ T5329] RAX: ffffffffffffffda RBX: 00007f347cc26180 RCX: 00007f347c99e0d9 [ 164.529608][ T5329] RDX: 000000000000000c RSI: 0000200000000400 RDI: 0000000000000003 [ 164.532787][ T5329] RBP: 00007f347ca35024 R08: 0000000000000000 R09: 0000000000000000 [ 164.535991][ T5329] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 164.539516][ T5329] R13: 00007f347cc26218 R14: 00007f347cc26180 R15: 00007fff1c171158 [ 164.542766][ T5329] [ 164.544079][ T5329] Modules linked in: [ 164.546136][ T5329] ---[ end trace 0000000000000000 ]--- [ 164.586264][ T5329] RIP: 0010:filp_flush+0x184/0x190 [ 164.588694][ T5329] 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 9d 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 [ 164.597376][ T5329] RSP: 0018:ffffc9000cd6f6b8 EFLAGS: 00010246 [ 164.600032][ T5329] RAX: 0000000000000030 RBX: ffff888032d8a588 RCX: b25ecdbc290a1800 [ 164.604343][ T5329] RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 [ 164.607892][ T5329] RBP: ffffc9000cd6f7d8 R08: ffff88801fc24713 R09: 1ffff11003f848e2 [ 164.611373][ T5329] R10: dffffc0000000000 R11: ffffed1003f848e3 R12: dffffc0000000000 [ 164.615117][ T5329] R13: ffff888034b98528 R14: 0000000000000000 R15: 0000000000000003 [ 164.618741][ T5329] FS: 00007f3478dd46c0(0000) GS:ffff88808c54a000(0000) knlGS:0000000000000000 [ 164.622796][ T5329] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 164.626229][ T5329] CR2: 00007f347cbf22e0 CR3: 0000000044443000 CR4: 0000000000352ef0 [ 164.630555][ T5329] Kernel panic - not syncing: Fatal exception [ 164.633758][ T5329] Kernel Offset: disabled [ 164.635611][ T5329] Rebooting in 86400 seconds..