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: 6986 Comm: syz.1.51 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 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: 00010002 RAX: dffffc0000000000 RBX: ffff888069720000 RCX: ffffffff87e73949 RDX: 00000000000000e6 RSI: ffffffff87e73786 RDI: ffff888069720128 RBP: ffff888069720128 R08: 0000000000000004 R09: 0000000000000020 R10: 0000000000000020 R11: 0000000000000000 R12: ffff8880697200f0 R13: ffff888069720128 R14: ffff888069720740 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff888123ed8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7bee600020 CR3: 000000007d854000 CR4: 00000000003526f0 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 95 a9 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 fc 40 03 00 c3 cc cc cc cc 31 c0 RSP: 0018:ffffc90003467430 EFLAGS: 00000296 RAX: 0000000000000001 RBX: ffffffff8ebe8200 RCX: 0000000000000001 RDX: 0000000000000046 RSI: ffffffff8e1822c3 RDI: ffffffff8c402680 RBP: ffff88801e394a80 R08: 0000000000000006 R09: 0000000000001000 R10: 0000000000000000 R11: 0000000000000000 R12: 00000000ffffffff R13: 0000000000000246 R14: ffff88801e395648 R15: 0000000000000001 lookup_page_ext+0x6e/0x100 mm/page_ext.c:258 page_ext_iter_begin include/linux/page_ext.h:137 [inline] page_table_check_clear+0x309/0x8f0 mm/page_table_check.c:78 __page_table_check_pte_clear+0xf1/0x100 mm/page_table_check.c:155 page_table_check_pte_clear include/linux/page_table_check.h:55 [inline] ptep_get_and_clear_full arch/x86/include/asm/pgtable.h:1263 [inline] get_and_clear_full_ptes include/linux/pgtable.h:879 [inline] zap_present_folio_ptes mm/memory.c:1648 [inline] zap_present_ptes mm/memory.c:1730 [inline] do_zap_pte_range mm/memory.c:1832 [inline] zap_pte_range mm/memory.c:1934 [inline] zap_pmd_range mm/memory.c:2020 [inline] zap_pud_range mm/memory.c:2048 [inline] zap_p4d_range mm/memory.c:2069 [inline] __zap_vma_range+0x2ccc/0x4a30 mm/memory.c:2109 unmap_vmas+0x299/0x5f0 mm/memory.c:2178 exit_mmap+0x1ef/0xa00 mm/mmap.c:1300 __mmput+0x12a/0x410 kernel/fork.c:1187 mmput+0x67/0x80 kernel/fork.c:1210 exit_mm kernel/exit.c:615 [inline] do_exit+0x8b1/0x2ae0 kernel/exit.c:997 do_group_exit+0xd5/0x2a0 kernel/exit.c:1152 get_signal+0x1ec7/0x21e0 kernel/signal.c:3046 arch_do_signal_or_restart+0x91/0x7e0 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:66 [inline] exit_to_user_mode_loop+0x139/0x6f0 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:318 [inline] do_syscall_64+0x666/0x870 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1bd359e019 Code: Unable to access opcode bytes at 0x7f1bd359dfef. RSP: 002b:00007f1bd440c0e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007f1bd3825fa8 RCX: 00007f1bd359e019 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f1bd3825fa8 RBP: 00007f1bd3825fa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f1bd3826038 R14: 00007ffe3451d660 R15: 00007ffe3451d748 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: 00010002 RAX: dffffc0000000000 RBX: ffff888069720000 RCX: ffffffff87e73949 RDX: 00000000000000e6 RSI: ffffffff87e73786 RDI: ffff888069720128 RBP: ffff888069720128 R08: 0000000000000004 R09: 0000000000000020 R10: 0000000000000020 R11: 0000000000000000 R12: ffff8880697200f0 R13: ffff888069720128 R14: ffff888069720740 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff888123ed8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7bee600020 CR3: 000000007d854000 CR4: 00000000003526f0 ---------------- 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