Oops: general protection fault, probably for non-canonical address 0xdffffc00000000e6: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000730-0x0000000000000737] CPU: 1 UID: 0 PID: 5776 Comm: kworker/1:8 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 Workqueue: usb_hub_wq hub_event RIP: 0010:f_midi2_free_ep_reqs+0x56/0x2b0 drivers/usb/gadget/function/f_midi2.c:1166 Code: 85 6a 02 00 00 49 8b 45 00 48 89 44 24 18 48 05 30 07 00 00 48 89 c2 48 89 44 24 20 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e b5 01 00 00 48 8b 44 24 18 31 RSP: 0018:ffffc90000a089e8 EFLAGS: 00010012 RAX: dffffc0000000000 RBX: ffff888075674000 RCX: ffffffff87e5e609 RDX: 00000000000000e6 RSI: ffffffff87e5e446 RDI: ffff888075674128 RBP: ffff888075674128 R08: 0000000000000004 R09: 0000000000000020 R10: 0000000000000020 R11: 000000000000757b R12: ffff8880756740f0 R13: ffff888075674128 R14: ffff888075674740 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff888123ed9000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fbb1164ddf0 CR3: 000000007a282000 CR4: 0000000000350ef0 Call Trace: f_midi2_stop_eps drivers/usb/gadget/function/f_midi2.c:1246 [inline] f_midi2_set_alt+0x444/0x5f0 drivers/usb/gadget/function/f_midi2.c:1296 composite_setup+0x16f8/0x9290 drivers/usb/gadget/composite.c:1933 configfs_composite_setup+0xfb/0x130 drivers/usb/gadget/configfs.c:1877 dummy_timer+0x2045/0x36f0 drivers/usb/gadget/udc/dummy_hcd.c:1951 __run_hrtimer kernel/time/hrtimer.c:2032 [inline] __hrtimer_run_queues+0x462/0x9c0 kernel/time/hrtimer.c:2096 hrtimer_run_softirq+0x17d/0x2c0 kernel/time/hrtimer.c:2113 handle_softirqs+0x1ea/0x9b0 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x162/0x210 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:lock_is_held_type+0xf5/0x140 kernel/locking/lockdep.c:5945 Code: ff ff ff ff 65 0f c1 15 19 d5 aa 08 83 fa 01 8b 44 24 04 75 2d 9c 5a 80 e6 02 75 47 41 f7 c5 00 02 00 00 74 01 fb 48 83 c4 08 <5b> 5d 41 5c 41 5d 41 5e 41 5f e9 27 5f 56 f5 e9 22 5f 56 f5 31 c0 RSP: 0018:ffffc90004206900 EFLAGS: 00000296 RAX: 0000000000000000 RBX: ffffffff8ebe8140 RCX: 0000000000000001 RDX: 0000000000000046 RSI: ffffffff8e18673f RDI: ffffffff8c401a80 RBP: ffff888034040000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000001388 R11: 0000000000000000 R12: 00000000ffffffff R13: 0000000000000246 R14: ffff888034040cb8 R15: 0000000000000007 lock_is_held include/linux/lockdep.h:249 [inline] __might_resched+0x29f/0x330 kernel/sched/core.c:9159 __wait_for_common+0x8f/0x4c0 kernel/sched/completion.c:116 usb_start_wait_urb+0x2ae/0x580 drivers/usb/core/message.c:72 usb_internal_control_msg drivers/usb/core/message.c:117 [inline] usb_control_msg+0x328/0x4b0 drivers/usb/core/message.c:167 usb_control_msg_send+0xca/0x130 drivers/usb/core/message.c:226 usb_set_interface+0x9b6/0xe20 drivers/usb/core/message.c:1649 snd_usb_midi_v2_create+0x629/0x4070 sound/usb/midi2.c:1122 snd_usb_create_stream.isra.0+0x386/0x4d0 sound/usb/card.c:290 snd_usb_create_streams sound/usb/card.c:392 [inline] usb_audio_probe+0xf05/0x3b10 sound/usb/card.c:1031 usb_probe_interface+0x303/0x8f0 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:628 [inline] really_probe+0x241/0xa60 drivers/base/dd.c:706 __driver_probe_device+0x20e/0x450 drivers/base/dd.c:868 driver_probe_device+0x4a/0x140 drivers/base/dd.c:898 __device_attach_driver+0x1df/0x320 drivers/base/dd.c:1026 bus_for_each_drv+0x159/0x1e0 drivers/base/bus.c:500 __device_attach+0x1e4/0x4d0 drivers/base/dd.c:1098 device_initial_probe+0xaf/0xd0 drivers/base/dd.c:1153 bus_probe_device+0x64/0x160 drivers/base/bus.c:620 device_add+0x121d/0x1970 drivers/base/core.c:3772 usb_set_configuration+0xd97/0x1c60 drivers/usb/core/message.c:2268 usb_generic_driver_probe+0xa1/0xe0 drivers/usb/core/generic.c:250 usb_probe_device+0xef/0x400 drivers/usb/core/driver.c:291 call_driver_probe drivers/base/dd.c:628 [inline] really_probe+0x241/0xa60 drivers/base/dd.c:706 __driver_probe_device+0x20e/0x450 drivers/base/dd.c:868 driver_probe_device+0x4a/0x140 drivers/base/dd.c:898 __device_attach_driver+0x1df/0x320 drivers/base/dd.c:1026 bus_for_each_drv+0x159/0x1e0 drivers/base/bus.c:500 __device_attach+0x1e4/0x4d0 drivers/base/dd.c:1098 device_initial_probe+0xaf/0xd0 drivers/base/dd.c:1153 bus_probe_device+0x64/0x160 drivers/base/bus.c:620 device_add+0x121d/0x1970 drivers/base/core.c:3772 usb_new_device.cold+0x685/0x115c drivers/usb/core/hub.c:2695 hub_port_connect drivers/usb/core/hub.c:5567 [inline] hub_port_connect_change drivers/usb/core/hub.c:5707 [inline] port_event drivers/usb/core/hub.c:5871 [inline] hub_event+0x30a3/0x4a60 drivers/usb/core/hub.c:5953 process_one_work+0xa23/0x1940 kernel/workqueue.c:3322 process_scheduled_works kernel/workqueue.c:3405 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3486 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x72b/0xd50 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:f_midi2_free_ep_reqs+0x56/0x2b0 drivers/usb/gadget/function/f_midi2.c:1166 Code: 85 6a 02 00 00 49 8b 45 00 48 89 44 24 18 48 05 30 07 00 00 48 89 c2 48 89 44 24 20 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e b5 01 00 00 48 8b 44 24 18 31 RSP: 0018:ffffc90000a089e8 EFLAGS: 00010012 RAX: dffffc0000000000 RBX: ffff888075674000 RCX: ffffffff87e5e609 RDX: 00000000000000e6 RSI: ffffffff87e5e446 RDI: ffff888075674128 RBP: ffff888075674128 R08: 0000000000000004 R09: 0000000000000020 R10: 0000000000000020 R11: 000000000000757b R12: ffff8880756740f0 R13: ffff888075674128 R14: ffff888075674740 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff888123ed9000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fbb1164ddf0 CR3: 000000007a282000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess): 0: 85 6a 02 test %ebp,0x2(%rdx) 3: 00 00 add %al,(%rax) 5: 49 8b 45 00 mov 0x0(%r13),%rax 9: 48 89 44 24 18 mov %rax,0x18(%rsp) e: 48 05 30 07 00 00 add $0x730,%rax 14: 48 89 c2 mov %rax,%rdx 17: 48 89 44 24 20 mov %rax,0x20(%rsp) 1c: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 23: fc ff df 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 74 08 je 0x3a 32: 3c 03 cmp $0x3,%al 34: 0f 8e b5 01 00 00 jle 0x1ef 3a: 48 8b 44 24 18 mov 0x18(%rsp),%rax 3f: 31 .byte 0x31