program: r0 = socket$kcm(0x10, 0x2, 0x0) r1 = bpf$MAP_CREATE(0x0, &(0x7f0000000000)=ANY=[@ANYBLOB="1900000004000000040000000200000000000000", @ANYRES32=0x1, @ANYBLOB='\x00'/20, @ANYRES32=0x0, @ANYRES32, @ANYBLOB='\x00'/28], 0x48) syz_usb_connect$cdc_ncm(0x0, 0x6e, 0x0, 0x0) r2 = socket$nl_generic(0x10, 0x3, 0x10) ioctl$sock_SIOCGIFINDEX(r2, 0x8933, &(0x7f0000000800)={'bond0\x00', 0x0}) socket(0x11, 0x3, 0x0) (async) r4 = socket(0x11, 0x3, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000080)='./config\x00', 0x1ff) (async) mkdirat(0xffffffffffffff9c, &(0x7f0000000080)='./config\x00', 0x1ff) mount(0x0, &(0x7f00000000c0)='./config\x00', &(0x7f0000000100)='configfs\x00', 0x0, 0x0) (async) mount(0x0, &(0x7f00000000c0)='./config\x00', &(0x7f0000000100)='configfs\x00', 0x0, 0x0) mkdirat(0xffffffffffffff9c, &(0x7f0000000140)='./config/usb_gadget/g1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f00000002c0)='./config/usb_gadget/g1/configs/c.1\x00', 0x1ff) (async) mkdirat(0xffffffffffffff9c, &(0x7f00000002c0)='./config/usb_gadget/g1/configs/c.1\x00', 0x1ff) mkdirat(0xffffffffffffff9c, &(0x7f0000000340)='./config/usb_gadget/g1/functions/midi2.usb0\x00', 0x1ff) r5 = openat(0xffffffffffffff9c, &(0x7f0000000380)='./config/usb_gadget/g1/functions/midi2.usb0/ep.0/block.0/direction\x00', 0x2, 0x0) write(r5, &(0x7f0000000400)='1', 0x1) symlinkat(&(0x7f0000000440)='./config/usb_gadget/g1/functions/midi2.usb0\x00', 0xffffffffffffff9c, &(0x7f0000000480)='./config/usb_gadget/g1/configs/c.1/midi2.usb0\x00') r6 = openat(0xffffffffffffff9c, &(0x7f00000004c0)='./config/usb_gadget/g1/UDC\x00', 0x2, 0x0) write(r6, &(0x7f0000000500)='dummy_udc.0', 0xb) sendto$packet(r4, &(0x7f0000000840)="1412e0c84935a9738e0ff2f70800", 0xe, 0x0, &(0x7f00000007c0)={0x11, 0x0, r3, 0x1, 0x0, 0x6, @multicast}, 0x14) bpf$BPF_PROG_QUERY(0x10, &(0x7f0000000300)={@ifindex=r3, 0x12, 0x0, 0x200, &(0x7f0000000140)=[0x0, 0x0, 0x0, 0x0, 0x0, 0x0], 0x6, 0x0, &(0x7f0000000180)=[0x0], &(0x7f0000000200)=[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0], &(0x7f00000002c0)=[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]}, 0x40) bpf$MAP_GET_NEXT_KEY(0x2, &(0x7f0000000240)={r1, &(0x7f0000000280)="65b2", &(0x7f0000000000)=""/6, 0x2}, 0x20) seccomp$SECCOMP_GET_NOTIF_SIZES(0x3, 0x0, &(0x7f0000000100)) (async) seccomp$SECCOMP_GET_NOTIF_SIZES(0x3, 0x0, &(0x7f0000000100)) syz_usb_connect$cdc_ecm(0x3, 0x5f, &(0x7f0000000340)={{0x12, 0x1, 0x300, 0x2, 0x0, 0x0, 0x8, 0x525, 0xa4a1, 0x40, 0x1, 0x2, 0x3, 0x1, [{{0x9, 0x2, 0x4d, 0x1, 0x1, 0x33, 0xa0, 0x0, "", [{{0x9, 0x4, 0x0, 0x4, 0x2, 0x2, 0x6, 0x0, 0x3, {{0xa, 0x24, 0x6, 0x0, 0x0, "59a500d78e"}, {0x5, 0x24, 0x0, 0x71}, {0xd, 0x24, 0xf, 0x1, 0x3, 0x7, 0x7fff, 0x6}, [@acm={0x4, 0x24, 0x2, 0x8}]}, {[{{0x9, 0x5, 0x81, 0x3, 0xd20258daf2bb40b7, 0x6, 0x7, 0xd}}], {{0x9, 0x5, 0x82, 0x2, 0x8, 0xf, 0xc, 0x3a}}, {{0x9, 0x5, 0x3, 0x2, 0x200, 0x92, 0x1, 0x6}}}}}]}}]}}, &(0x7f00000004c0)={0xa, &(0x7f00000003c0)={0xa, 0x6, 0x110, 0x2f, 0x7, 0x9, 0x20, 0x40}, 0x24, &(0x7f0000000400)=ANY=[@ANYBLOB="050f240004071002024807000310001300059207000b10010c0500070100020500000000"], 0x2, [{0x4, &(0x7f0000000440)=@lang_id={0x4, 0x3, 0x180c}}, {0x4, &(0x7f0000000480)=@lang_id={0x4, 0x3, 0x82c}}]}) (async) syz_usb_connect$cdc_ecm(0x3, 0x5f, &(0x7f0000000340)={{0x12, 0x1, 0x300, 0x2, 0x0, 0x0, 0x8, 0x525, 0xa4a1, 0x40, 0x1, 0x2, 0x3, 0x1, [{{0x9, 0x2, 0x4d, 0x1, 0x1, 0x33, 0xa0, 0x0, "", [{{0x9, 0x4, 0x0, 0x4, 0x2, 0x2, 0x6, 0x0, 0x3, {{0xa, 0x24, 0x6, 0x0, 0x0, "59a500d78e"}, {0x5, 0x24, 0x0, 0x71}, {0xd, 0x24, 0xf, 0x1, 0x3, 0x7, 0x7fff, 0x6}, [@acm={0x4, 0x24, 0x2, 0x8}]}, {[{{0x9, 0x5, 0x81, 0x3, 0xd20258daf2bb40b7, 0x6, 0x7, 0xd}}], {{0x9, 0x5, 0x82, 0x2, 0x8, 0xf, 0xc, 0x3a}}, {{0x9, 0x5, 0x3, 0x2, 0x200, 0x92, 0x1, 0x6}}}}}]}}]}}, &(0x7f00000004c0)={0xa, &(0x7f00000003c0)={0xa, 0x6, 0x110, 0x2f, 0x7, 0x9, 0x20, 0x40}, 0x24, &(0x7f0000000400)=ANY=[@ANYBLOB="050f240004071002024807000310001300059207000b10010c0500070100020500000000"], 0x2, [{0x4, &(0x7f0000000440)=@lang_id={0x4, 0x3, 0x180c}}, {0x4, &(0x7f0000000480)=@lang_id={0x4, 0x3, 0x82c}}]}) bpf$BPF_TASK_FD_QUERY(0x14, &(0x7f00000001c0)={0xffffffffffffffff, 0xffffffffffffffff, 0x0, 0xb, &(0x7f0000000100)='syzkaller0\x00'}, 0x30) bpf$MAP_GET_NEXT_KEY(0x2, &(0x7f00000000c0)={r1, &(0x7f0000000100), &(0x7f0000000000), 0x2}, 0x20) (async) bpf$MAP_GET_NEXT_KEY(0x2, &(0x7f00000000c0)={r1, &(0x7f0000000100), &(0x7f0000000000), 0x2}, 0x20) sendmsg$kcm(r0, &(0x7f0000000000)={0x0, 0x0, &(0x7f0000000080)=[{&(0x7f0000000040)="2e00000011008108090f9becdb4cb92e264831371900000069bd6efb2502eaf60d002700020400bf050005001201", 0x2e}], 0x1}, 0x0) (async) sendmsg$kcm(r0, &(0x7f0000000000)={0x0, 0x0, &(0x7f0000000080)=[{&(0x7f0000000040)="2e00000011008108090f9becdb4cb92e264831371900000069bd6efb2502eaf60d002700020400bf050005001201", 0x2e}], 0x1}, 0x0) [ 96.109765][ T5283] Bluetooth: hci0: command tx timeout [ 96.269377][ T25] audit: type=1800 audit(1788586775.774:2): pid=5323 uid=0 auid=4294967295 ses=4294967295 subj=unconfined op=collect_data cause=failed comm="syz.0.0" name="direction" dev="configfs" ino=4279 res=0 errno=0 [ 96.289394][ T25] audit: type=1800 audit(1788586775.794:3): pid=5323 uid=0 auid=4294967295 ses=4294967295 subj=unconfined op=collect_data cause=failed comm="syz.0.0" name="UDC" dev="configfs" ino=4281 res=0 errno=0 [ 96.514984][ T5324] UDC core: USB Raw Gadget: couldn't find an available UDC or it's busy [ 96.522934][ T5328] UDC core: USB Raw Gadget: couldn't find an available UDC or it's busy [ 96.535675][ T5324] misc raw-gadget: fail, usb_gadget_register_driver returned -16 [ 96.539957][ T5328] misc raw-gadget: fail, usb_gadget_register_driver returned -16 [ 96.565305][ T5324] netlink: 'syz.0.0': attribute type 39 has an invalid length. [ 96.571687][ T5328] netlink: 'syz.0.0': attribute type 39 has an invalid length. [ 96.743835][ T5320] usb 5-1: new high-speed USB device number 2 using dummy_hcd [ 96.894498][ T5320] usb 5-1: New USB device found, idVendor=0000, idProduct=0000, bcdDevice= 7.03 [ 96.900494][ T5320] usb 5-1: Dual-Role OTG device on HNP port [ 96.903831][ T5320] usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 96.951556][ T5320] gspca_main: spca501-2.14.0 probing 0000:0000 [ 96.958786][ T5320] gspca_spca501: reg write: error -32 [ 96.961838][ T5320] spca501 5-1:1.0: Reg write failed for 0x02,0x0f,0x05 [ 96.966439][ T5320] spca501 5-1:1.0: probe with driver spca501 failed with error -22 [ 96.988857][ C0] Oops: general protection fault, probably for non-canonical address 0xdffffc00000000e6: 0000 [#1] SMP KASAN NOPTI [ 96.993780][ C0] KASAN: null-ptr-deref in range [0x0000000000000730-0x0000000000000737] [ 96.997199][ C0] CPU: 0 UID: 0 PID: 5320 Comm: kworker/0:5 Not tainted syzkaller #0 PREEMPT(full) [ 97.001047][ C0] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 97.005058][ C0] Workqueue: usb_hub_wq hub_event [ 97.007352][ C0] RIP: 0010:f_midi2_stop_eps+0x28e/0x4d0 [ 97.009850][ C0] Code: 89 f0 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 f7 e8 a7 c6 5a fa 41 bf 30 07 00 00 4d 03 3e 4c 89 f8 48 c1 e8 03 48 89 44 24 18 <42> 0f b6 04 28 84 c0 0f 85 12 02 00 00 41 8b 1f 31 ff 89 de e8 79 [ 97.018892][ C0] RSP: 0018:ffffc90000007930 EFLAGS: 00010002 [ 97.022101][ C0] RAX: 00000000000000e6 RBX: ffff88800e944120 RCX: ffff888012d88000 [ 97.025240][ C0] RDX: 0000000000000100 RSI: 0000000000000100 RDI: ffffffff8c6da420 [ 97.028438][ C0] RBP: ffff88800e944100 R08: 0000000098b389b2 R09: 0000000098591239 [ 97.031678][ C0] R10: 0000000000000010 R11: ffffffff8ed5c6e0 R12: ffff88800e944730 [ 97.034870][ C0] R13: dffffc0000000000 R14: ffff88800e944128 R15: 0000000000000730 [ 97.038094][ C0] FS: 0000000000000000(0000) GS:ffff88808c2cd000(0000) knlGS:0000000000000000 [ 97.041547][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 97.044288][ C0] CR2: 00007fffc5d55790 CR3: 000000001f514000 CR4: 0000000000352ef0 [ 97.047487][ C0] Call Trace: [ 97.048708][ C0] [ 97.049939][ C0] f_midi2_set_alt+0x11c/0xf00 [ 97.051891][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 97.054213][ C0] composite_setup+0x1ffd/0x3480 [ 97.056347][ C0] configfs_composite_setup+0xc7/0x100 [ 97.058697][ C0] dummy_timer+0x2f43/0x4cf0 [ 97.060845][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 97.063206][ C0] ? __pfx_dummy_timer+0x10/0x10 [ 97.065299][ C0] ? _raw_spin_unlock_irqrestore+0x30/0x80 [ 97.067775][ C0] ? __pfx_dummy_timer+0x10/0x10 [ 97.069631][ C0] __hrtimer_run_queues+0x3bc/0xa10 [ 97.071700][ C0] hrtimer_run_softirq+0x1e3/0x2e0 [ 97.073824][ C0] handle_softirqs+0x226/0x860 [ 97.075921][ C0] ? __irq_exit_rcu+0xcb/0x220 [ 97.078040][ C0] __irq_exit_rcu+0xcb/0x220 [ 97.080070][ C0] irq_exit_rcu+0x9/0x30 [ 97.081899][ C0] sysvec_apic_timer_interrupt+0xa6/0xc0 [ 97.084265][ C0] [ 97.085620][ C0] [ 97.086922][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 97.089406][ C0] RIP: 0010:_raw_spin_unlock_irqrestore+0x47/0x80 [ 97.092098][ C0] Code: f7 e8 5d b5 ba f5 f7 c3 00 02 00 00 74 05 e8 60 03 e7 f5 9c 58 a9 00 02 00 00 75 29 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 f4 ce ab f5 65 48 8b 05 9c 21 ac 07 48 85 c0 74 18 5b 41 5e c3 [ 97.100257][ C0] RSP: 0018:ffffc9000eb76730 EFLAGS: 00000206 [ 97.102651][ C0] RAX: 0000000000000002 RBX: 0000000000000246 RCX: 8000000000000001 [ 97.105885][ C0] RDX: 0000000000000006 RSI: ffffffff8e477aa7 RDI: 0000000000000001 [ 97.109032][ C0] RBP: 0000000000000007 R08: ffffffff907a3a7f R09: 1ffffffff20f474f [ 97.112378][ C0] R10: dffffc0000000000 R11: fffffbfff20f4750 R12: 0000000000000000 [ 97.115787][ C0] R13: dffffc0000000000 R14: ffff888034130000 R15: 1ffff11003ec2094 [ 97.119063][ C0] dummy_urb_enqueue+0x587/0x780 [ 97.121109][ C0] usb_hcd_submit_urb+0x328/0x1b60 [ 97.123333][ C0] usb_start_wait_urb+0x13f/0x5b0 [ 97.125584][ C0] ? __pfx_usb_start_wait_urb+0x10/0x10 [ 97.127948][ C0] usb_control_msg+0x234/0x3e0 [ 97.129982][ C0] usb_set_interface+0x521/0x1470 [ 97.132165][ C0] ? __kmalloc_cache_noprof+0x14d/0x600 [ 97.134576][ C0] snd_usb_midi_v2_create+0x621/0x4ac0 [ 97.136959][ C0] ? __pfx_proc_audio_usbid_read+0x10/0x10 [ 97.139412][ C0] ? snd_card_rw_proc_new+0x10d/0x140 [ 97.141699][ C0] ? __pfx_snd_usb_midi_v2_create+0x10/0x10 [ 97.144348][ C0] ? usb_ifnum_to_if+0x262/0x2f0 [ 97.146548][ C0] snd_usb_create_stream+0x262/0x630 [ 97.148802][ C0] usb_audio_probe+0x144c/0x2240 [ 97.150930][ C0] ? __pfx_usb_audio_probe+0x10/0x10 [ 97.153069][ C0] ? _raw_spin_unlock_irqrestore+0x30/0x80 [ 97.155483][ C0] usb_probe_interface+0x788/0xe50 [ 97.157545][ C0] ? __pfx_usb_probe_interface+0x10/0x10 [ 97.159877][ C0] ? sysfs_do_create_link_sd+0xe0/0x110 [ 97.162193][ C0] ? driver_sysfs_add+0x1fe/0x210 [ 97.164310][ C0] ? __pfx_usb_probe_interface+0x10/0x10 [ 97.166718][ C0] really_probe+0x254/0xae0 [ 97.168642][ C0] __driver_probe_device+0x1e8/0x360 [ 97.170841][ C0] driver_probe_device+0x4f/0x240 [ 97.172946][ C0] __device_attach_driver+0x270/0x410 [ 97.175216][ C0] bus_for_each_drv+0x258/0x2f0 [ 97.177296][ C0] ? __pfx___device_attach_driver+0x10/0x10 [ 97.179632][ C0] ? __pfx_bus_for_each_drv+0x10/0x10 [ 97.181885][ C0] ? _raw_spin_unlock_irqrestore+0x4c/0x80 [ 97.184360][ C0] __device_attach+0x2c4/0x450 [ 97.186370][ C0] ? __pfx___device_attach+0x10/0x10 [ 97.188495][ C0] ? do_raw_spin_unlock+0x4d/0x200 [ 97.190673][ C0] ? _raw_spin_unlock+0x28/0x50 [ 97.192828][ C0] device_initial_probe+0xa1/0xd0 [ 97.195091][ C0] bus_probe_device+0x12a/0x220 [ 97.197181][ C0] device_add+0x7d7/0xb80 [ 97.199021][ C0] usb_set_configuration+0x1ad8/0x2180 [ 97.201361][ C0] usb_generic_driver_probe+0x8d/0x150 [ 97.203669][ C0] usb_probe_device+0x1c3/0x3b0 [ 97.205755][ C0] ? __pfx_usb_probe_device+0x10/0x10 [ 97.208014][ C0] really_probe+0x254/0xae0 [ 97.209950][ C0] __driver_probe_device+0x1e8/0x360 [ 97.212264][ C0] driver_probe_device+0x4f/0x240 [ 97.214411][ C0] __device_attach_driver+0x270/0x410 [ 97.216700][ C0] bus_for_each_drv+0x258/0x2f0 [ 97.218886][ C0] ? __pfx___device_attach_driver+0x10/0x10 [ 97.221480][ C0] ? __pfx_bus_for_each_drv+0x10/0x10 [ 97.223835][ C0] ? _raw_spin_unlock_irqrestore+0x4c/0x80 [ 97.226429][ C0] __device_attach+0x2c4/0x450 [ 97.228565][ C0] ? __pfx___device_attach+0x10/0x10 [ 97.230816][ C0] ? do_raw_spin_unlock+0x4d/0x200 [ 97.233036][ C0] ? _raw_spin_unlock+0x28/0x50 [ 97.235227][ C0] device_initial_probe+0xa1/0xd0 [ 97.237461][ C0] bus_probe_device+0x12a/0x220 [ 97.239641][ C0] device_add+0x7d7/0xb80 [ 97.241528][ C0] usb_new_device+0x9aa/0x1690 [ 97.243696][ C0] ? __pfx_usb_new_device+0x10/0x10 [ 97.246149][ C0] ? _raw_spin_unlock_irq+0x23/0x50 [ 97.248510][ C0] hub_event+0x28e8/0x4d30 [ 97.250454][ C0] ? do_raw_spin_unlock+0x4d/0x200 [ 97.253035][ C0] ? __pfx_hub_event+0x10/0x10 [ 97.255674][ C0] ? rcu_is_watching+0x16/0xb0 [ 97.257848][ C0] ? process_scheduled_works+0x97a/0x1630 [ 97.260564][ C0] process_scheduled_works+0xc3d/0x1630 [ 97.263258][ C0] ? __pfx_process_scheduled_works+0x10/0x10 [ 97.265946][ C0] ? assign_work+0x3cf/0x5d0 [ 97.268314][ C0] worker_thread+0xa47/0xfb0 [ 97.270858][ C0] ? __kthread_parkme+0x71/0x1f0 [ 97.273117][ C0] kthread+0x38b/0x480 [ 97.274934][ C0] ? __pfx_worker_thread+0x10/0x10 [ 97.277241][ C0] ? __pfx_kthread+0x10/0x10 [ 97.279363][ C0] ret_from_fork+0x514/0xb70 [ 97.281390][ C0] ? __pfx_ret_from_fork+0x10/0x10 [ 97.283700][ C0] ? __switch_to+0xc89/0x1420 [ 97.285802][ C0] ? __pfx_kthread+0x10/0x10 [ 97.287867][ C0] ret_from_fork_asm+0x1a/0x30 [ 97.289990][ C0] [ 97.291329][ C0] Modules linked in: [ 97.293062][ C0] ---[ end trace 0000000000000000 ]--- [ 97.295453][ C0] RIP: 0010:f_midi2_stop_eps+0x28e/0x4d0 [ 97.295470][ C0] Code: 89 f0 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 f7 e8 a7 c6 5a fa 41 bf 30 07 00 00 4d 03 3e 4c 89 f8 48 c1 e8 03 48 89 44 24 18 <42> 0f b6 04 28 84 c0 0f 85 12 02 00 00 41 8b 1f 31 ff 89 de e8 79 [ 97.295476][ C0] RSP: 0018:ffffc90000007930 EFLAGS: 00010002 [ 97.295484][ C0] RAX: 00000000000000e6 RBX: ffff88800e944120 RCX: ffff888012d88000 [ 97.295490][ C0] RDX: 0000000000000100 RSI: 0000000000000100 RDI: ffffffff8c6da420 [ 97.295494][ C0] RBP: ffff88800e944100 R08: 0000000098b389b2 R09: 0000000098591239 [ 97.295499][ C0] R10: 0000000000000010 R11: ffffffff8ed5c6e0 R12: ffff88800e944730 [ 97.295503][ C0] R13: dffffc0000000000 R14: ffff88800e944128 R15: 0000000000000730 [ 97.295508][ C0] FS: 0000000000000000(0000) GS:ffff88808c2cd000(0000) knlGS:0000000000000000 [ 97.295514][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 97.295519][ C0] CR2: 00007fffc5d55790 CR3: 000000001f514000 CR4: 0000000000352ef0 [ 97.295557][ C0] Kernel panic - not syncing: Fatal exception in interrupt [ 97.337943][ C0] Kernel Offset: disabled [ 97.340378][ C0] Rebooting in 86400 seconds..