program:
r0 = openat$tun(0xffffffffffffff9c, &(0x7f0000000100), 0x2, 0x0)
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)
r1 = openat(0xffffffffffffff9c, &(0x7f0000000580)='./my_configfs/usb_gadget/g1/functions/midi2.usb0/ep.0/block.0/direction\x00', 0x1, 0x0)
write(r1, &(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')
r2 = openat(0xffffffffffffff9c, &(0x7f0000000900)='./my_configfs/usb_gadget/g1/UDC\x00', 0x1, 0x0)
write(r2, &(0x7f0000000940)='dummy_udc.0', 0xb)
ioctl$TUNSETIFF(r0, 0x400454ca, &(0x7f0000000040)={'syzkaller0\x00', 0x4001})
r3 = socket$inet(0x2, 0x2, 0x0)
ioctl$sock_inet_SIOCSIFADDR(r3, 0x8916, &(0x7f0000000080)={'syzkaller0\x00', {0x2, 0x0, @rand_addr=0xac140001}})
sendmsg$can_bcm(0xffffffffffffffff, 0x0, 0x0)
ioctl$sock_inet_SIOCSIFFLAGS(r3, 0x8914, &(0x7f00000000c0)={'syzkaller0\x00', 0x1})
r4 = socket$inet_sctp(0x2, 0x1, 0x84)
bind(r4, &(0x7f0000000000)=@in={0x2, 0x3210, @rand_addr=0xac140001}, 0x10)
listen(r4, 0x5)
write$tun(r0, &(0x7f0000000200)=ANY=[@ANYBLOB="00000800010000000000140008004500003c000000004084ca2502020202ac14000104d2321000000000000000000a"], 0x4a)
[ 92.093499][ T1367] cfg80211: failed to load regulatory.db
[ 92.094421][ T4638] Bluetooth: hci0: command tx timeout
[ 92.528364][ T1367] usb 5-1: new high-speed USB device number 2 using dummy_hcd
[ 92.678892][ T1367] usb 5-1: New USB device found, idVendor=0000, idProduct=0000, bcdDevice= 7.02
[ 92.684142][ T1367] usb 5-1: Dual-Role OTG device on HNP port
[ 92.686975][ T1367] usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 92.709486][ T1367] gspca_main: spca501-2.14.0 probing 0000:0000
[ 92.713104][ T1367] gspca_spca501: reg write: error -32
[ 92.715248][ T1367] spca501 5-1:1.0: Reg write failed for 0x02,0x0f,0x05
[ 92.717992][ T1367] spca501 5-1:1.0: probe with driver spca501 failed with error -22
[ 92.724651][ C0] Oops: general protection fault, probably for non-canonical address 0xdffffc00000000e6: 0000 [#1] SMP KASAN NOPTI
[ 92.729314][ C0] KASAN: null-ptr-deref in range [0x0000000000000730-0x0000000000000737]
[ 92.732331][ C0] CPU: 0 UID: 0 PID: 1367 Comm: kworker/0:3 Not tainted syzkaller #0 PREEMPT(full)
[ 92.735730][ C0] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 92.739418][ C0] Workqueue: usb_hub_wq hub_event
[ 92.741388][ C0] RIP: 0010:f_midi2_stop_eps+0x5f/0x4d0
[ 92.743560][ 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
[ 92.751103][ C0] RSP: 0018:ffffc90000007930 EFLAGS: 00010002
[ 92.753520][ C0] RAX: 00000000000000e6 RBX: 0000000000000001 RCX: ffff888034610000
[ 92.756548][ C0] RDX: 8000000000000100 RSI: 0000000000000100 RDI: ffff888051d38148
[ 92.759625][ C0] RBP: ffff888051d380f0 R08: ffff888051d3814f R09: 1ffff1100a3a7029
[ 92.762797][ C0] R10: dffffc0000000000 R11: ffffed100a3a702a R12: 0000000000000730
[ 92.765917][ C0] R13: dffffc0000000000 R14: ffff888051d38128 R15: 0000000000000001
[ 92.768961][ C0] FS: 0000000000000000(0000) GS:ffff88808c30a000(0000) knlGS:0000000000000000
[ 92.772270][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 92.774553][ C0] CR2: 00007f640d2da0f5 CR3: 000000001ced4000 CR4: 0000000000352ef0
[ 92.777380][ C0] Call Trace:
[ 92.778640][ C0]
[ 92.779720][ C0] f_midi2_set_alt+0x11c/0xf00
[ 92.781715][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10
[ 92.783729][ C0] composite_setup+0x1ffd/0x3480
[ 92.785685][ C0] configfs_composite_setup+0xc7/0x100
[ 92.787770][ C0] dummy_timer+0x2f43/0x4cf0
[ 92.789449][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10
[ 92.791493][ C0] ? __pfx_dummy_timer+0x10/0x10
[ 92.793377][ C0] ? _raw_spin_unlock_irqrestore+0x30/0x80
[ 92.795606][ C0] ? __pfx_dummy_timer+0x10/0x10
[ 92.797741][ C0] __hrtimer_run_queues+0x3bc/0xa10
[ 92.799886][ C0] hrtimer_run_softirq+0x1e3/0x2e0
[ 92.802091][ C0] handle_softirqs+0x226/0x860
[ 92.804094][ C0] ? __irq_exit_rcu+0xcb/0x220
[ 92.806209][ C0] __irq_exit_rcu+0xcb/0x220
[ 92.808135][ C0] irq_exit_rcu+0x9/0x30
[ 92.809869][ C0] sysvec_apic_timer_interrupt+0xa6/0xc0
[ 92.812208][ C0]
[ 92.813408][ C0]
[ 92.814741][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20
[ 92.817271][ C0] RIP: 0010:_raw_spin_unlock_irqrestore+0x47/0x80
[ 92.819883][ 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
[ 92.827916][ C0] RSP: 0018:ffffc900022a65e8 EFLAGS: 00000206
[ 92.830400][ C0] RAX: 0000000000000002 RBX: 0000000000000287 RCX: 8000000000000001
[ 92.833664][ C0] RDX: 0000000000000006 RSI: ffffffff8e460b06 RDI: 0000000000000001
[ 92.837085][ C0] RBP: dffffc0000000000 R08: ffffffff9078fa37 R09: 1ffffffff20f1f46
[ 92.839717][ C0] R10: dffffc0000000000 R11: fffffbfff20f1f47 R12: ffff88801fc26000
[ 92.842711][ C0] R13: 0000000000000000 R14: ffff88801fc26000 R15: 0000000000000287
[ 92.845564][ C0] __mod_timer+0xb53/0xed0
[ 92.847191][ C0] schedule_timeout+0x14d/0x2c0
[ 92.848951][ C0] ? __pfx_schedule_timeout+0x10/0x10
[ 92.850936][ C0] ? __pfx_process_timeout+0x10/0x10
[ 92.853180][ C0] ? _raw_spin_unlock_irq+0x23/0x50
[ 92.855450][ C0] wait_for_completion_timeout+0x2cf/0x610
[ 92.858482][ C0] ? wait_for_completion_timeout+0x265/0x610
[ 92.861557][ C0] ? __pfx_wait_for_completion_timeout+0x10/0x10
[ 92.864484][ C0] usb_start_wait_urb+0x1e9/0x5b0
[ 92.867052][ C0] ? trace_kmalloc+0x2a/0xf0
[ 92.869452][ C0] ? __pfx_usb_start_wait_urb+0x10/0x10
[ 92.872166][ C0] usb_control_msg+0x234/0x3e0
[ 92.874600][ C0] usb_set_interface+0x521/0x1470
[ 92.877084][ C0] snd_usb_midi_v2_create+0x621/0x4ac0
[ 92.879707][ C0] ? __pfx_proc_audio_usbid_read+0x10/0x10
[ 92.882401][ C0] ? snd_card_rw_proc_new+0x10d/0x140
[ 92.884730][ C0] ? __pfx_snd_usb_midi_v2_create+0x10/0x10
[ 92.887344][ C0] ? usb_ifnum_to_if+0x262/0x2f0
[ 92.889547][ C0] snd_usb_create_stream+0x262/0x630
[ 92.891865][ C0] usb_audio_probe+0x144c/0x2240
[ 92.894088][ C0] ? __pfx_usb_audio_probe+0x10/0x10
[ 92.896094][ C0] ? _raw_spin_unlock_irqrestore+0x30/0x80
[ 92.898519][ C0] usb_probe_interface+0x653/0xc60
[ 92.900674][ C0] ? __pfx_usb_probe_interface+0x10/0x10
[ 92.903054][ C0] really_probe+0x254/0xae0
[ 92.905088][ C0] __driver_probe_device+0x1e8/0x360
[ 92.907436][ C0] driver_probe_device+0x4f/0x240
[ 92.909556][ C0] __device_attach_driver+0x270/0x410
[ 92.911836][ C0] bus_for_each_drv+0x258/0x2f0
[ 92.913797][ C0] ? __pfx___device_attach_driver+0x10/0x10
[ 92.916204][ C0] ? __pfx_bus_for_each_drv+0x10/0x10
[ 92.918338][ C0] ? _raw_spin_unlock_irqrestore+0x4c/0x80
[ 92.920874][ C0] __device_attach+0x2c4/0x450
[ 92.922995][ C0] ? __pfx___device_attach+0x10/0x10
[ 92.925326][ C0] ? do_raw_spin_unlock+0x4d/0x200
[ 92.927562][ C0] ? _raw_spin_unlock+0x28/0x50
[ 92.929673][ C0] device_initial_probe+0xa1/0xd0
[ 92.931886][ C0] bus_probe_device+0x12a/0x220
[ 92.934143][ C0] device_add+0x7d7/0xb80
[ 92.935991][ C0] usb_set_configuration+0x1ad8/0x2180
[ 92.938351][ C0] usb_generic_driver_probe+0x8d/0x150
[ 92.940402][ C0] usb_probe_device+0x1c3/0x3b0
[ 92.942145][ C0] ? __pfx_usb_probe_device+0x10/0x10
[ 92.944387][ C0] really_probe+0x254/0xae0
[ 92.946200][ C0] __driver_probe_device+0x1e8/0x360
[ 92.948515][ C0] driver_probe_device+0x4f/0x240
[ 92.950720][ C0] __device_attach_driver+0x270/0x410
[ 92.953119][ C0] bus_for_each_drv+0x258/0x2f0
[ 92.955389][ C0] ? __pfx___device_attach_driver+0x10/0x10
[ 92.957929][ C0] ? __pfx_bus_for_each_drv+0x10/0x10
[ 92.960271][ C0] ? _raw_spin_unlock_irqrestore+0x4c/0x80
[ 92.962811][ C0] __device_attach+0x2c4/0x450
[ 92.964886][ C0] ? __pfx___device_attach+0x10/0x10
[ 92.967208][ C0] ? do_raw_spin_unlock+0x4d/0x200
[ 92.969440][ C0] ? _raw_spin_unlock+0x28/0x50
[ 92.971554][ C0] device_initial_probe+0xa1/0xd0
[ 92.973793][ C0] bus_probe_device+0x12a/0x220
[ 92.975941][ C0] device_add+0x7d7/0xb80
[ 92.977698][ C0] usb_new_device+0x9aa/0x1690
[ 92.979667][ C0] ? __pfx_usb_new_device+0x10/0x10
[ 92.981843][ C0] ? _raw_spin_unlock_irq+0x23/0x50
[ 92.984163][ C0] hub_event+0x28e8/0x4d30
[ 92.986148][ C0] ? do_raw_spin_unlock+0x4d/0x200
[ 92.988322][ C0] ? __pfx_hub_event+0x10/0x10
[ 92.990329][ C0] ? process_scheduled_works+0x97a/0x1630
[ 92.992730][ C0] ? rcu_is_watching+0x16/0xb0
[ 92.994792][ C0] ? process_scheduled_works+0x97a/0x1630
[ 92.997255][ C0] process_scheduled_works+0xc3d/0x1630
[ 92.999681][ C0] ? __pfx_process_scheduled_works+0x10/0x10
[ 93.002309][ C0] ? assign_work+0x3cf/0x5d0
[ 93.004356][ C0] worker_thread+0xa47/0xfb0
[ 93.006437][ C0] ? __kthread_parkme+0x71/0x1f0
[ 93.008604][ C0] kthread+0x38b/0x480
[ 93.010410][ C0] ? __pfx_worker_thread+0x10/0x10
[ 93.012666][ C0] ? __pfx_kthread+0x10/0x10
[ 93.014715][ C0] ret_from_fork+0x514/0xb70
[ 93.016727][ C0] ? __pfx_ret_from_fork+0x10/0x10
[ 93.018952][ C0] ? __switch_to+0xc89/0x1420
[ 93.021013][ C0] ? __pfx_kthread+0x10/0x10
[ 93.023047][ C0] ret_from_fork_asm+0x1a/0x30
[ 93.025122][ C0]
[ 93.026557][ C0] Modules linked in:
[ 93.028277][ C0] ---[ end trace 0000000000000000 ]---
[ 93.030630][ C0] RIP: 0010:f_midi2_stop_eps+0x5f/0x4d0
[ 93.033041][ 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
[ 93.041007][ C0] RSP: 0018:ffffc90000007930 EFLAGS: 00010002
[ 93.043602][ C0] RAX: 00000000000000e6 RBX: 0000000000000001 RCX: ffff888034610000
[ 93.046925][ C0] RDX: 8000000000000100 RSI: 0000000000000100 RDI: ffff888051d38148
[ 93.050293][ C0] RBP: ffff888051d380f0 R08: ffff888051d3814f R09: 1ffff1100a3a7029
[ 93.053721][ C0] R10: dffffc0000000000 R11: ffffed100a3a702a R12: 0000000000000730
[ 93.057126][ C0] R13: dffffc0000000000 R14: ffff888051d38128 R15: 0000000000000001
[ 93.060462][ C0] FS: 0000000000000000(0000) GS:ffff88808c30a000(0000) knlGS:0000000000000000
[ 93.063890][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 93.066044][ C0] CR2: 00007f640d2da0f5 CR3: 000000001ced4000 CR4: 0000000000352ef0
[ 93.068916][ C0] Kernel panic - not syncing: Fatal exception in interrupt
[ 93.071854][ C0] Kernel Offset: disabled
[ 93.073473][ C0] Rebooting in 86400 seconds..