program: mkdirat(0xffffffffffffff9c, &(0x7f0000000080)='./my_configfs\x00', 0x1ff) mount(0x0, &(0x7f0000000100)='./my_configfs\x00', &(0x7f0000000140)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000180)='./my_configfs/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000001c0)='./my_configfs/usb_gadget/g1/configs/c.1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f0000000200)='./my_configfs/usb_gadget/g1/functions/midi2.usb0\x00', 0x1ff) r0 = openat(0xffffffffffffff9c, &(0x7f0000000580)='./my_configfs/usb_gadget/g1/functions/midi2.usb0/ep.0/block.0/direction\x00', 0x1, 0x0) write(r0, &(0x7f0000000600)='2', 0x1) syz_clone(0x0, 0x0, 0x0, 0x0, 0x0, 0x0) prctl$PR_SET_MM_MAP(0x23, 0xe, &(0x7f0000000080)={&(0x7f0000fe4000/0x11000)=nil, &(0x7f0000ff1000/0xf000)=nil, &(0x7f0000ff1000/0x2000)=nil, &(0x7f0000fff000/0x1000)=nil, &(0x7f0000ff8000/0x4000)=nil, &(0x7f0000ff8000/0x3000)=nil, &(0x7f0000ffd000/0x3000)=nil, &(0x7f0000ffb000/0x3000)=nil, &(0x7f0000ff5000/0x1000)=nil, &(0x7f0000ffa000/0x1000)=nil, &(0x7f0000ffa000/0x2000)=nil, 0x0}, 0x68) ioctl$AUTOFS_DEV_IOCTL_PROTOSUBVER(r0, 0xc0189373, &(0x7f0000000280)={{0x1, 0x1, 0x18, r0, {0x9}}, './my_configfs/usb_gadget/g1/functions/midi2.usb0/ep.0/block.0/direction\x00'}) symlinkat(&(0x7f0000000240)='./file0\x00', r1, &(0x7f0000000300)='./my_configfs\x00') syz_clone(0x11, 0x0, 0x0, 0x0, 0x0, 0x0) bpf$BPF_PROG_RAW_TRACEPOINT_LOAD(0x5, &(0x7f0000000400)={0x32, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xa}, 0x94) sendmsg$NFT_BATCH(0xffffffffffffffff, &(0x7f0000000080)={0x0, 0x0, 0x0}, 0x24004045) r2 = io_uring_setup(0x1b7b, &(0x7f0000000040)={0x0, 0xcf67, 0x1f480, 0x0, 0x399}) bpf$PROG_LOAD(0x5, &(0x7f0000000180)={0x23, 0x0, 0x0, &(0x7f0000000000)='syzkaller\x00', 0x5, 0x0, 0x0, 0x0, 0x55, '\x00', 0x0, @fallback=0x5, 0xffffffffffffffff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x99ec}, 0x94) io_uring_enter(r2, 0x8ae, 0x6931, 0x17, 0x0, 0x0) symlinkat(&(0x7f0000000880)='./my_configfs/usb_gadget/g1/functions/midi2.usb0\x00', 0xffffffffffffff9c, &(0x7f00000008c0)='./my_configfs/usb_gadget/g1/configs/c.1/midi2.usb0\x00') r3 = openat(0xffffffffffffff9c, &(0x7f0000000900)='./my_configfs/usb_gadget/g1/UDC\x00', 0x1, 0x0) write(r3, &(0x7f0000000940)='dummy_udc.0', 0xb) [ 94.340930][ T5278] Bluetooth: hci0: command tx timeout [ 95.219383][ T5301] usb 5-1: new high-speed USB device number 2 using dummy_hcd [ 95.371368][ T5301] usb 5-1: New USB device found, idVendor=0000, idProduct=0000, bcdDevice= 7.02 [ 95.376821][ T5301] usb 5-1: Dual-Role OTG device on HNP port [ 95.379646][ T5301] usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 95.465729][ T5301] gspca_main: spca501-2.14.0 probing 0000:0000 [ 95.487933][ T5301] gspca_spca501: reg write: error -32 [ 95.503087][ T5301] spca501 5-1:1.0: Reg write failed for 0x02,0x0f,0x05 [ 95.513087][ T5301] spca501 5-1:1.0: probe with driver spca501 failed with error -22 [ 95.553951][ C0] Oops: general protection fault, probably for non-canonical address 0xdffffc00000000e6: 0000 [#1] SMP KASAN NOPTI [ 95.558989][ C0] KASAN: null-ptr-deref in range [0x0000000000000730-0x0000000000000737] [ 95.562517][ C0] CPU: 0 UID: 0 PID: 5301 Comm: kworker/0:5 Not tainted syzkaller #0 PREEMPT(full) [ 95.566309][ C0] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 95.570526][ C0] Workqueue: usb_hub_wq hub_event [ 95.572689][ C0] RIP: 0010:f_midi2_stop_eps+0x5f/0x4d0 [ 95.574870][ C0] Code: e8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 ef e8 77 4b 61 fa 41 bc 30 07 00 00 4c 03 65 00 4c 89 e0 48 c1 e8 03 48 89 44 24 10 <42> 0f b6 04 28 84 c0 0f 85 23 04 00 00 41 8b 1c 24 31 ff 89 de e8 [ 95.582898][ C0] RSP: 0000:ffffc90000007930 EFLAGS: 00010002 [ 95.585441][ C0] RAX: 00000000000000e6 RBX: 0000000000000001 RCX: ffff888012df8000 [ 95.588813][ C0] RDX: 0000000000000100 RSI: 0000000000000100 RDI: ffff88801258c148 [ 95.592319][ C0] RBP: ffff88801258c0f0 R08: ffff88801258c14f R09: 1ffff110024b1829 [ 95.595697][ C0] R10: dffffc0000000000 R11: ffffed10024b182a R12: 0000000000000730 [ 95.599053][ C0] R13: dffffc0000000000 R14: ffff88801258c128 R15: 0000000000000001 [ 95.602344][ C0] FS: 0000000000000000(0000) GS:ffff88808c30a000(0000) knlGS:0000000000000000 [ 95.605944][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 95.608649][ C0] CR2: 00007f2db83f8840 CR3: 00000000445c3000 CR4: 0000000000352ef0 [ 95.611900][ C0] Call Trace: [ 95.613319][ C0] [ 95.614541][ C0] f_midi2_set_alt+0x11c/0xf00 [ 95.616582][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 95.618831][ C0] composite_setup+0x1ffd/0x3480 [ 95.620799][ C0] configfs_composite_setup+0xc7/0x100 [ 95.622975][ C0] dummy_timer+0x2f43/0x4cf0 [ 95.624953][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 95.627162][ C0] ? __pfx_dummy_timer+0x10/0x10 [ 95.629230][ C0] ? _raw_spin_unlock_irqrestore+0x30/0x80 [ 95.631598][ C0] ? __pfx_dummy_timer+0x10/0x10 [ 95.633612][ C0] __hrtimer_run_queues+0x3bc/0xa10 [ 95.635749][ C0] hrtimer_run_softirq+0x1e3/0x2e0 [ 95.637857][ C0] handle_softirqs+0x226/0x860 [ 95.639851][ C0] ? __irq_exit_rcu+0xcb/0x220 [ 95.641834][ C0] __irq_exit_rcu+0xcb/0x220 [ 95.643744][ C0] irq_exit_rcu+0x9/0x30 [ 95.645499][ C0] sysvec_apic_timer_interrupt+0xa6/0xc0 [ 95.647830][ C0] [ 95.649156][ C0] [ 95.650373][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 95.652788][ C0] RIP: 0010:_raw_spin_unlock_irqrestore+0x47/0x80 [ 95.655411][ C0] Code: f7 e8 ad b6 c2 f5 f7 c3 00 02 00 00 74 05 e8 b0 e7 ee f5 9c 58 a9 00 02 00 00 75 29 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 b4 d6 b3 f5 65 48 8b 05 2c ce b0 07 48 85 c0 74 18 5b 41 5e c3 [ 95.663193][ C0] RSP: 0000:ffffc9000e45e7d0 EFLAGS: 00000206 [ 95.665693][ C0] RAX: 0000000000000006 RBX: 0000000000000246 RCX: 8000000000000001 [ 95.668947][ C0] RDX: 0000000000000006 RSI: ffffffff8e460b06 RDI: 0000000000000001 [ 95.672203][ C0] RBP: 0000000000000007 R08: ffffffff9078fa37 R09: 1ffffffff20f1f46 [ 95.675584][ C0] R10: dffffc0000000000 R11: fffffbfff20f1f47 R12: 0000000000000000 [ 95.678883][ C0] R13: dffffc0000000000 R14: ffff8880344b0000 R15: 1ffff11003a4be94 [ 95.682184][ C0] dummy_urb_enqueue+0x587/0x780 [ 95.684226][ C0] usb_hcd_submit_urb+0x328/0x1b60 [ 95.686407][ C0] usb_start_wait_urb+0x13f/0x5b0 [ 95.688640][ C0] ? trace_kmalloc+0x2a/0xf0 [ 95.690665][ C0] ? __pfx_usb_start_wait_urb+0x10/0x10 [ 95.693030][ C0] usb_control_msg+0x234/0x3e0 [ 95.695118][ C0] usb_set_interface+0x521/0x1470 [ 95.697252][ C0] snd_usb_midi_v2_create+0x621/0x4ac0 [ 95.699626][ C0] ? __pfx_proc_audio_usbid_read+0x10/0x10 [ 95.702162][ C0] ? snd_card_rw_proc_new+0x10d/0x140 [ 95.704360][ C0] ? __pfx_snd_usb_midi_v2_create+0x10/0x10 [ 95.706726][ C0] ? usb_ifnum_to_if+0x262/0x2f0 [ 95.708893][ C0] snd_usb_create_stream+0x262/0x630 [ 95.710997][ C0] usb_audio_probe+0x144c/0x2240 [ 95.713121][ C0] ? __pfx_usb_audio_probe+0x10/0x10 [ 95.715296][ C0] ? _raw_spin_unlock_irqrestore+0x30/0x80 [ 95.717646][ C0] usb_probe_interface+0x653/0xc60 [ 95.719814][ C0] ? __pfx_usb_probe_interface+0x10/0x10 [ 95.722207][ C0] really_probe+0x254/0xae0 [ 95.724183][ C0] __driver_probe_device+0x1e8/0x360 [ 95.726359][ C0] driver_probe_device+0x4f/0x240 [ 95.728597][ C0] __device_attach_driver+0x270/0x410 [ 95.730817][ C0] bus_for_each_drv+0x258/0x2f0 [ 95.732876][ C0] ? __pfx___device_attach_driver+0x10/0x10 [ 95.735387][ C0] ? __pfx_bus_for_each_drv+0x10/0x10 [ 95.737780][ C0] ? _raw_spin_unlock_irqrestore+0x4c/0x80 [ 95.740339][ C0] __device_attach+0x2c4/0x450 [ 95.742359][ C0] ? __pfx___device_attach+0x10/0x10 [ 95.744669][ C0] ? do_raw_spin_unlock+0x4d/0x200 [ 95.746767][ C0] ? _raw_spin_unlock+0x28/0x50 [ 95.748956][ C0] device_initial_probe+0xa1/0xd0 [ 95.751102][ C0] bus_probe_device+0x12a/0x220 [ 95.753136][ C0] device_add+0x7d7/0xb80 [ 95.754954][ C0] usb_set_configuration+0x1ad8/0x2180 [ 95.757303][ C0] usb_generic_driver_probe+0x8d/0x150 [ 95.759584][ C0] usb_probe_device+0x1c3/0x3b0 [ 95.761680][ C0] ? __pfx_usb_probe_device+0x10/0x10 [ 95.763957][ C0] really_probe+0x254/0xae0 [ 95.765977][ C0] __driver_probe_device+0x1e8/0x360 [ 95.768266][ C0] driver_probe_device+0x4f/0x240 [ 95.770386][ C0] __device_attach_driver+0x270/0x410 [ 95.772547][ C0] bus_for_each_drv+0x258/0x2f0 [ 95.774510][ C0] ? __pfx___device_attach_driver+0x10/0x10 [ 95.776918][ C0] ? __pfx_bus_for_each_drv+0x10/0x10 [ 95.779114][ C0] ? _raw_spin_unlock_irqrestore+0x4c/0x80 [ 95.781592][ C0] __device_attach+0x2c4/0x450 [ 95.783606][ C0] ? __pfx___device_attach+0x10/0x10 [ 95.785872][ C0] ? do_raw_spin_unlock+0x4d/0x200 [ 95.788039][ C0] ? _raw_spin_unlock+0x28/0x50 [ 95.790158][ C0] device_initial_probe+0xa1/0xd0 [ 95.792236][ C0] bus_probe_device+0x12a/0x220 [ 95.794246][ C0] device_add+0x7d7/0xb80 [ 95.795971][ C0] usb_new_device+0x9aa/0x1690 [ 95.797981][ C0] ? __pfx_usb_new_device+0x10/0x10 [ 95.800207][ C0] ? _raw_spin_unlock_irq+0x23/0x50 [ 95.802377][ C0] hub_event+0x28e8/0x4d30 [ 95.804282][ C0] ? do_raw_spin_unlock+0x4d/0x200 [ 95.806463][ C0] ? __pfx_hub_event+0x10/0x10 [ 95.808470][ C0] ? process_scheduled_works+0x97a/0x1630 [ 95.810798][ C0] ? rcu_is_watching+0x16/0xb0 [ 95.812718][ C0] ? process_scheduled_works+0x97a/0x1630 [ 95.814916][ C0] process_scheduled_works+0xc3d/0x1630 [ 95.817027][ C0] ? __pfx_process_scheduled_works+0x10/0x10 [ 95.819357][ C0] ? assign_work+0x3cf/0x5d0 [ 95.821178][ C0] worker_thread+0xa47/0xfb0 [ 95.822987][ C0] ? __kthread_parkme+0x71/0x1f0 [ 95.824703][ C0] kthread+0x38b/0x480 [ 95.826287][ C0] ? __pfx_worker_thread+0x10/0x10 [ 95.828277][ C0] ? __pfx_kthread+0x10/0x10 [ 95.830121][ C0] ret_from_fork+0x514/0xb70 [ 95.832140][ C0] ? __pfx_ret_from_fork+0x10/0x10 [ 95.834360][ C0] ? __switch_to+0xc89/0x1420 [ 95.836380][ C0] ? __pfx_kthread+0x10/0x10 [ 95.838307][ C0] ret_from_fork_asm+0x1a/0x30 [ 95.840365][ C0] [ 95.841683][ C0] Modules linked in: [ 95.843408][ C0] ---[ end trace 0000000000000000 ]--- [ 95.845746][ C0] RIP: 0010:f_midi2_stop_eps+0x5f/0x4d0 [ 95.848151][ C0] Code: e8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 ef e8 77 4b 61 fa 41 bc 30 07 00 00 4c 03 65 00 4c 89 e0 48 c1 e8 03 48 89 44 24 10 <42> 0f b6 04 28 84 c0 0f 85 23 04 00 00 41 8b 1c 24 31 ff 89 de e8 [ 95.856118][ C0] RSP: 0000:ffffc90000007930 EFLAGS: 00010002 [ 95.858707][ C0] RAX: 00000000000000e6 RBX: 0000000000000001 RCX: ffff888012df8000 [ 95.862037][ C0] RDX: 0000000000000100 RSI: 0000000000000100 RDI: ffff88801258c148 [ 95.865341][ C0] RBP: ffff88801258c0f0 R08: ffff88801258c14f R09: 1ffff110024b1829 [ 95.868749][ C0] R10: dffffc0000000000 R11: ffffed10024b182a R12: 0000000000000730 [ 95.872187][ C0] R13: dffffc0000000000 R14: ffff88801258c128 R15: 0000000000000001 [ 95.875626][ C0] FS: 0000000000000000(0000) GS:ffff88808c30a000(0000) knlGS:0000000000000000 [ 95.879462][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 95.882327][ C0] CR2: 00007f2db83f8840 CR3: 00000000445c3000 CR4: 0000000000352ef0 [ 95.885631][ C0] Kernel panic - not syncing: Fatal exception in interrupt [ 95.889121][ C0] Kernel Offset: disabled [ 95.890970][ C0] Rebooting in 86400 seconds..