Oops: general protection fault, probably for non-canonical address 0xdffffc00000000e6: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000730-0x0000000000000737] CPU: 0 UID: 0 PID: 7850 Comm: syz.6.460 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 RIP: 0010:f_midi2_free_ep_reqs drivers/usb/gadget/function/f_midi2.c:1166 [inline] RIP: 0010:f_midi2_free_ep+0x52/0x2f0 drivers/usb/gadget/function/f_midi2.c:1208 Code: 4c 89 f0 48 c1 e8 03 80 3c 28 00 74 08 4c 89 f7 e8 c3 f4 63 fa 41 bc 30 07 00 00 4d 03 26 4c 89 e0 48 c1 e8 03 48 89 44 24 30 <0f> b6 04 28 84 c0 0f 85 5d 02 00 00 41 8b 1c 24 31 ff 89 de e8 75 RSP: 0018:ffffc9000200f970 EFLAGS: 00010212 RAX: 00000000000000e6 RBX: ffff88805263c000 RCX: 0000000000080000 RDX: ffffc90010f14000 RSI: 000000000000e410 RDI: 000000000000e411 RBP: dffffc0000000000 R08: ffffffff90579937 R09: 1ffffffff20af326 R10: dffffc0000000000 R11: fffffbfff20af327 R12: 0000000000000730 R13: dffffc0000000000 R14: ffff88805263c128 R15: dffffc0000000000 FS: 00007f9a834dc6c0(0000) GS:ffff888124f4d000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6e9cda2000 CR3: 0000000053b8f000 CR4: 0000000000350ef0 Call Trace: f_midi2_unbind+0x9b/0x340 drivers/usb/gadget/function/f_midi2.c:2066 purge_configs_funcs+0x248/0x3d0 drivers/usb/gadget/configfs.c:1600 configfs_composite_unbind+0xa4/0x1c0 drivers/usb/gadget/configfs.c:1846 gadget_unbind_driver+0x1cb/0x410 drivers/usb/gadget/udc/core.c:1724 device_remove drivers/base/dd.c:616 [inline] __device_release_driver drivers/base/dd.c:1349 [inline] device_release_driver_internal+0x48b/0x880 drivers/base/dd.c:1372 driver_detach+0x1f3/0x2d0 drivers/base/dd.c:1435 bus_remove_driver+0x226/0x320 drivers/base/bus.c:832 usb_gadget_unregister_driver+0x4e/0x70 drivers/usb/gadget/udc/core.c:1784 unregister_gadget drivers/usb/gadget/configfs.c:263 [inline] gadget_dev_desc_UDC_store+0x17a/0x2f0 drivers/usb/gadget/configfs.c:290 flush_write_buffer fs/configfs/file.c:207 [inline] configfs_write_iter+0x337/0x430 fs/configfs/file.c:229 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x612/0xba0 fs/read_write.c:687 ksys_write+0x150/0x270 fs/read_write.c:739 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f9a8259e019 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f9a834dc028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f9a82826090 RCX: 00007f9a8259e019 RDX: 0000000000000001 RSI: 0000200000000840 RDI: 0000000000000004 RBP: 00007f9a8263500c R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f9a82826128 R14: 00007f9a82826090 R15: 00007ffd709192a8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:f_midi2_free_ep_reqs drivers/usb/gadget/function/f_midi2.c:1166 [inline] RIP: 0010:f_midi2_free_ep+0x52/0x2f0 drivers/usb/gadget/function/f_midi2.c:1208 Code: 4c 89 f0 48 c1 e8 03 80 3c 28 00 74 08 4c 89 f7 e8 c3 f4 63 fa 41 bc 30 07 00 00 4d 03 26 4c 89 e0 48 c1 e8 03 48 89 44 24 30 <0f> b6 04 28 84 c0 0f 85 5d 02 00 00 41 8b 1c 24 31 ff 89 de e8 75 RSP: 0018:ffffc9000200f970 EFLAGS: 00010212 RAX: 00000000000000e6 RBX: ffff88805263c000 RCX: 0000000000080000 RDX: ffffc90010f14000 RSI: 000000000000e410 RDI: 000000000000e411 RBP: dffffc0000000000 R08: ffffffff90579937 R09: 1ffffffff20af326 R10: dffffc0000000000 R11: fffffbfff20af327 R12: 0000000000000730 R13: dffffc0000000000 R14: ffff88805263c128 R15: dffffc0000000000 FS: 00007f9a834dc6c0(0000) GS:ffff888124f4d000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd3cabef2f8 CR3: 0000000053b8f000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess): 0: 4c 89 f0 mov %r14,%rax 3: 48 c1 e8 03 shr $0x3,%rax 7: 80 3c 28 00 cmpb $0x0,(%rax,%rbp,1) b: 74 08 je 0x15 d: 4c 89 f7 mov %r14,%rdi 10: e8 c3 f4 63 fa call 0xfa63f4d8 15: 41 bc 30 07 00 00 mov $0x730,%r12d 1b: 4d 03 26 add (%r14),%r12 1e: 4c 89 e0 mov %r12,%rax 21: 48 c1 e8 03 shr $0x3,%rax 25: 48 89 44 24 30 mov %rax,0x30(%rsp) * 2a: 0f b6 04 28 movzbl (%rax,%rbp,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 0f 85 5d 02 00 00 jne 0x293 36: 41 8b 1c 24 mov (%r12),%ebx 3a: 31 ff xor %edi,%edi 3c: 89 de mov %ebx,%esi 3e: e8 .byte 0xe8 3f: 75 .byte 0x75