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) r0 = openat$tun(0xffffffffffffff9c, &(0x7f00000002c0), 0x0, 0x0) r1 = syz_open_dev$sndpcmc(&(0x7f0000000000), 0x0, 0x0) ioctl$SNDRV_PCM_IOCTL_HW_REFINE_OLD(r1, 0x80044100, &(0x7f00000034c0)={0x0, [0x2, 0x8, 0x5], [{0x0, 0x0, 0x0, 0x0, 0x1}, {0x0, 0x0, 0x0, 0x1}, {0x0, 0x3fffffe}, {}, {0x0, 0xd74}, {}, {0xfffffffe}, {}, {}, {}, {}, {0x7}], 0x2}) ioctl$TUNSETIFF(r0, 0x400454ca, &(0x7f0000000040)={'syzkaller0\x00', 0x2}) r2 = openat$tun(0xffffffffffffff9c, &(0x7f0000000400), 0x0, 0x0) close(r2) socket$nl_generic(0x10, 0x3, 0x10) ioctl$SIOCSIFHWADDR(r2, 0x8914, &(0x7f0000002280)={'syzkaller0\x00', @multicast}) ioctl$sock_SIOCGIFINDEX(0xffffffffffffffff, 0x8933, &(0x7f0000000100)={'syzkaller0\x00', 0x0}) sendmsg$nl_route_sched(0xffffffffffffffff, &(0x7f0000000000)={0x0, 0x0, &(0x7f0000000580)={&(0x7f0000000340)=@newqdisc={0x4c, 0x24, 0x4ee4e6a52ff56541, 0x70bd25, 0x25dfdbfd, {0x0, 0x0, 0x0, r3, {0x0, 0xb}, {0xffff, 0xffff}, {0xfff2}}, [@qdisc_kind_options=@q_netem={{0xa}, {0x1c, 0x2, {{0x3, 0x3, 0x4361, 0x7, 0xffffffff, 0x3}}}}]}, 0x4c}, 0x1, 0x0, 0x0, 0x8000}, 0x0) sendmsg$nl_route_sched(0xffffffffffffffff, &(0x7f00000003c0)={0x0, 0x0, &(0x7f0000000300)={&(0x7f00000005c0)=@newqdisc={0x3c, 0x24, 0x4ee4e6a52ff56541, 0x70b926, 0x25dfdbfc, {0x0, 0x0, 0x0, r3, {0x0, 0xd}, {0xf, 0xb}, {0xffff, 0x2}}, [@qdisc_kind_options=@q_cake={{0x9}, {0xc, 0x2, [@TCA_CAKE_ACK_FILTER={0x8, 0x10, 0x2}]}}]}, 0x3c}, 0x1, 0x0, 0x0, 0x240040e0}, 0x4890) r4 = socket$packet(0x11, 0x3, 0x300) add_key(0x0, 0x0, &(0x7f0000000200)="308205553082033da00302010202147398ea982dd02ea8b1cf57c7f297b3e61afc8c0a300d06092a864886f70d01010b050030343132303006035504030c29436572746966696361746520766572696669636174696f6e", 0x57, 0x0) sendto$packet(r4, &(0x7f0000000240)="800000800000210ee7decd7a000340008100", 0x36, 0x40, &(0x7f00000001c0)={0x11, 0x8100, r3, 0x1, 0xd8, 0x6, @broadcast}, 0x14) 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) r5 = openat(0xffffffffffffff9c, &(0x7f0000000580)='./my_configfs/usb_gadget/g1/functions/midi2.usb0/ep.0/block.0/direction\x00', 0x1, 0x0) write(r5, &(0x7f0000000600)='2', 0x1) symlinkat(&(0x7f0000000880)='./my_configfs/usb_gadget/g1/functions/midi2.usb0\x00', 0xffffffffffffff9c, &(0x7f00000008c0)='./my_configfs/usb_gadget/g1/configs/c.1/midi2.usb0\x00') r6 = openat(0xffffffffffffff9c, &(0x7f0000000900)='./my_configfs/usb_gadget/g1/UDC\x00', 0x1, 0x0) write(r6, &(0x7f0000000940)='dummy_udc.0', 0xb) [ 86.940437][ T5278] Bluetooth: hci0: command tx timeout [ 86.949013][ T805] cfg80211: failed to load regulatory.db [ 87.134649][ T5317] syzkaller0: entered promiscuous mode [ 87.137170][ T5317] syzkaller0: entered allmulticast mode [ 87.710153][ T9] usb 5-1: new high-speed USB device number 2 using dummy_hcd [ 87.861111][ T9] usb 5-1: New USB device found, idVendor=0000, idProduct=0000, bcdDevice= 7.02 [ 87.865820][ T9] usb 5-1: Dual-Role OTG device on HNP port [ 87.868540][ T9] usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 87.902963][ T9] gspca_main: spca501-2.14.0 probing 0000:0000 [ 87.907293][ T9] gspca_spca501: reg write: error -32 [ 87.910624][ T9] spca501 5-1:1.0: Reg write failed for 0x02,0x0f,0x05 [ 87.913817][ T9] spca501 5-1:1.0: probe with driver spca501 failed with error -22 [ 87.923098][ C0] Oops: general protection fault, probably for non-canonical address 0xdffffc00000000e6: 0000 [#1] SMP KASAN NOPTI [ 87.928220][ C0] KASAN: null-ptr-deref in range [0x0000000000000730-0x0000000000000737] [ 87.931559][ C0] CPU: 0 UID: 0 PID: 9 Comm: kworker/0:0 Not tainted syzkaller #0 PREEMPT(full) [ 87.935168][ C0] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 87.939240][ C0] Workqueue: usb_hub_wq hub_event [ 87.941384][ C0] RIP: 0010:f_midi2_stop_eps+0x5f/0x4d0 [ 87.943810][ 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 [ 87.952321][ C0] RSP: 0018:ffffc90000007930 EFLAGS: 00010002 [ 87.955014][ C0] RAX: 00000000000000e6 RBX: 0000000000000001 RCX: ffff88801b734b00 [ 87.958318][ C0] RDX: 8000000000000100 RSI: 0000000000000100 RDI: ffff888012b10148 [ 87.961794][ C0] RBP: ffff888012b100f0 R08: ffff888012b1014f R09: 1ffff11002562029 [ 87.965299][ C0] R10: dffffc0000000000 R11: ffffed100256202a R12: 0000000000000730 [ 87.968842][ C0] R13: dffffc0000000000 R14: ffff888012b10128 R15: 0000000000000001 [ 87.972298][ C0] FS: 0000000000000000(0000) GS:ffff88808c30a000(0000) knlGS:0000000000000000 [ 87.976185][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 87.979114][ C0] CR2: 00007f333803f0f5 CR3: 0000000012069000 CR4: 0000000000352ef0 [ 87.982535][ C0] Call Trace: [ 87.984096][ C0] [ 87.985607][ C0] f_midi2_set_alt+0x11c/0xf00 [ 87.988202][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 87.990558][ C0] composite_setup+0x1ffd/0x3480 [ 87.992817][ C0] configfs_composite_setup+0xc7/0x100 [ 87.995221][ C0] dummy_timer+0x2f43/0x4cf0 [ 87.997368][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 87.999897][ C0] ? __pfx_dummy_timer+0x10/0x10 [ 88.002329][ C0] ? _raw_spin_unlock_irqrestore+0x30/0x80 [ 88.004977][ C0] ? __pfx_dummy_timer+0x10/0x10 [ 88.007211][ C0] __hrtimer_run_queues+0x3bc/0xa10 [ 88.009545][ C0] hrtimer_run_softirq+0x1e3/0x2e0 [ 88.011684][ C0] handle_softirqs+0x226/0x860 [ 88.015003][ C0] ? __irq_exit_rcu+0xcb/0x220 [ 88.017127][ C0] __irq_exit_rcu+0xcb/0x220 [ 88.019240][ C0] irq_exit_rcu+0x9/0x30 [ 88.021145][ C0] sysvec_apic_timer_interrupt+0xa6/0xc0 [ 88.023600][ C0] [ 88.024889][ C0] [ 88.026166][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 88.028858][ C0] RIP: 0010:_raw_spin_unlock_irqrestore+0x47/0x80 [ 88.031666][ 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 [ 88.040151][ C0] RSP: 0018:ffffc9000022e7d0 EFLAGS: 00000206 [ 88.042832][ C0] RAX: 0000000000000006 RBX: 0000000000000246 RCX: 8000000000000001 [ 88.046296][ C0] RDX: 0000000000000006 RSI: ffffffff8e460b06 RDI: 0000000000000001 [ 88.049750][ C0] RBP: 0000000000000007 R08: ffffffff9078fa37 R09: 1ffffffff20f1f46 [ 88.053282][ C0] R10: dffffc0000000000 R11: fffffbfff20f1f47 R12: 0000000000000000 [ 88.056595][ C0] R13: dffffc0000000000 R14: ffff888034518000 R15: 1ffff11006908094 [ 88.060120][ C0] dummy_urb_enqueue+0x587/0x780 [ 88.062265][ C0] usb_hcd_submit_urb+0x328/0x1b60 [ 88.064582][ C0] usb_start_wait_urb+0x13f/0x5b0 [ 88.066740][ C0] ? trace_kmalloc+0x2a/0xf0 [ 88.068751][ C0] ? __pfx_usb_start_wait_urb+0x10/0x10 [ 88.071212][ C0] usb_control_msg+0x234/0x3e0 [ 88.073347][ C0] usb_set_interface+0x521/0x1470 [ 88.075580][ C0] snd_usb_midi_v2_create+0x621/0x4ac0 [ 88.078081][ C0] ? __pfx_proc_audio_usbid_read+0x10/0x10 [ 88.080735][ C0] ? snd_card_rw_proc_new+0x10d/0x140 [ 88.083112][ C0] ? __pfx_snd_usb_midi_v2_create+0x10/0x10 [ 88.085701][ C0] ? usb_ifnum_to_if+0x262/0x2f0 [ 88.087759][ C0] snd_usb_create_stream+0x262/0x630 [ 88.089907][ C0] usb_audio_probe+0x144c/0x2240 [ 88.091747][ C0] ? __pfx_usb_audio_probe+0x10/0x10 [ 88.093840][ C0] ? _raw_spin_unlock_irqrestore+0x30/0x80 [ 88.096284][ C0] usb_probe_interface+0x653/0xc60 [ 88.098148][ C0] ? __pfx_usb_probe_interface+0x10/0x10 [ 88.100333][ C0] really_probe+0x254/0xae0 [ 88.102290][ C0] __driver_probe_device+0x1e8/0x360 [ 88.104502][ C0] driver_probe_device+0x4f/0x240 [ 88.106654][ C0] __device_attach_driver+0x270/0x410 [ 88.108681][ C0] bus_for_each_drv+0x258/0x2f0 [ 88.110542][ C0] ? __pfx___device_attach_driver+0x10/0x10 [ 88.112997][ C0] ? __pfx_bus_for_each_drv+0x10/0x10 [ 88.115315][ C0] ? _raw_spin_unlock_irqrestore+0x4c/0x80 [ 88.117876][ C0] __device_attach+0x2c4/0x450 [ 88.119866][ C0] ? __pfx___device_attach+0x10/0x10 [ 88.122028][ C0] ? do_raw_spin_unlock+0x4d/0x200 [ 88.123770][ C0] ? _raw_spin_unlock+0x28/0x50 [ 88.125410][ C0] device_initial_probe+0xa1/0xd0 [ 88.127069][ C0] bus_probe_device+0x12a/0x220 [ 88.128943][ C0] device_add+0x7d7/0xb80 [ 88.130696][ C0] usb_set_configuration+0x1ad8/0x2180 [ 88.133033][ C0] usb_generic_driver_probe+0x8d/0x150 [ 88.135324][ C0] usb_probe_device+0x1c3/0x3b0 [ 88.137409][ C0] ? __pfx_usb_probe_device+0x10/0x10 [ 88.139703][ C0] really_probe+0x254/0xae0 [ 88.141419][ C0] __driver_probe_device+0x1e8/0x360 [ 88.143541][ C0] driver_probe_device+0x4f/0x240 [ 88.145727][ C0] __device_attach_driver+0x270/0x410 [ 88.147938][ C0] bus_for_each_drv+0x258/0x2f0 [ 88.150012][ C0] ? __pfx___device_attach_driver+0x10/0x10 [ 88.152449][ C0] ? __pfx_bus_for_each_drv+0x10/0x10 [ 88.154666][ C0] ? _raw_spin_unlock_irqrestore+0x4c/0x80 [ 88.157160][ C0] __device_attach+0x2c4/0x450 [ 88.159087][ C0] ? __pfx___device_attach+0x10/0x10 [ 88.161003][ C0] ? do_raw_spin_unlock+0x4d/0x200 [ 88.163066][ C0] ? _raw_spin_unlock+0x28/0x50 [ 88.165111][ C0] device_initial_probe+0xa1/0xd0 [ 88.167270][ C0] bus_probe_device+0x12a/0x220 [ 88.169367][ C0] device_add+0x7d7/0xb80 [ 88.171213][ C0] usb_new_device+0x9aa/0x1690 [ 88.173261][ C0] ? __pfx_usb_new_device+0x10/0x10 [ 88.175396][ C0] ? _raw_spin_unlock_irq+0x23/0x50 [ 88.177597][ C0] hub_event+0x28e8/0x4d30 [ 88.179535][ C0] ? _raw_spin_unlock_irqrestore+0x4c/0x80 [ 88.181962][ C0] ? __pfx_hub_event+0x10/0x10 [ 88.183984][ C0] ? process_scheduled_works+0x97a/0x1630 [ 88.186251][ C0] ? rcu_is_watching+0x16/0xb0 [ 88.188147][ C0] ? process_scheduled_works+0x97a/0x1630 [ 88.190195][ C0] process_scheduled_works+0xc3d/0x1630 [ 88.192247][ C0] ? __pfx_process_scheduled_works+0x10/0x10 [ 88.194614][ C0] ? assign_work+0x3cf/0x5d0 [ 88.196577][ C0] worker_thread+0xa47/0xfb0 [ 88.198629][ C0] kthread+0x38b/0x480 [ 88.200311][ C0] ? __pfx_worker_thread+0x10/0x10 [ 88.202562][ C0] ? __pfx_kthread+0x10/0x10 [ 88.204450][ C0] ret_from_fork+0x514/0xb70 [ 88.206213][ C0] ? __pfx_ret_from_fork+0x10/0x10 [ 88.208271][ C0] ? __switch_to+0xc89/0x1420 [ 88.210228][ C0] ? __pfx_kthread+0x10/0x10 [ 88.212130][ C0] ret_from_fork_asm+0x1a/0x30 [ 88.214197][ C0] [ 88.215566][ C0] Modules linked in: [ 88.217349][ C0] ---[ end trace 0000000000000000 ]--- [ 88.219665][ C0] RIP: 0010:f_midi2_stop_eps+0x5f/0x4d0 [ 88.222014][ 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 [ 88.229456][ C0] RSP: 0018:ffffc90000007930 EFLAGS: 00010002 [ 88.231785][ C0] RAX: 00000000000000e6 RBX: 0000000000000001 RCX: ffff88801b734b00 [ 88.234809][ C0] RDX: 8000000000000100 RSI: 0000000000000100 RDI: ffff888012b10148 [ 88.237805][ C0] RBP: ffff888012b100f0 R08: ffff888012b1014f R09: 1ffff11002562029 [ 88.240925][ C0] R10: dffffc0000000000 R11: ffffed100256202a R12: 0000000000000730 [ 88.244079][ C0] R13: dffffc0000000000 R14: ffff888012b10128 R15: 0000000000000001 [ 88.247312][ C0] FS: 0000000000000000(0000) GS:ffff88808c30a000(0000) knlGS:0000000000000000 [ 88.250940][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 88.253748][ C0] CR2: 00007f333803f0f5 CR3: 0000000012069000 CR4: 0000000000352ef0 [ 88.257044][ C0] Kernel panic - not syncing: Fatal exception in interrupt [ 88.260363][ C0] Kernel Offset: disabled [ 88.262199][ C0] Rebooting in 86400 seconds..