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: 5899 Comm: kworker/0:9 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 Workqueue: events_power_efficient check_lifetime 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:ffffc900000079d8 EFLAGS: 00010012 RAX: dffffc0000000000 RBX: ffff888067b64000 RCX: 0000000000000102 RDX: 00000000000000e6 RSI: ffffffff87f466b6 RDI: ffff888067b64128 RBP: ffff888067b64128 R08: 0000000000000004 R09: 0000000000000020 R10: 0000000000000020 R11: 00000000000075fb R12: ffff888067b640f0 R13: ffff888067b64128 R14: ffff888067b64740 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff888123b61000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4d84827dac CR3: 000000004a8e3000 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+0x2039/0x3700 drivers/usb/gadget/udc/dummy_hcd.c:1951 __run_hrtimer kernel/time/hrtimer.c:2067 [inline] __hrtimer_run_queues+0x462/0x9c0 kernel/time/hrtimer.c:2124 hrtimer_run_softirq+0x1ca/0x360 kernel/time/hrtimer.c:2141 handle_softirqs+0x1e6/0x9d0 kernel/softirq.c:645 __do_softirq kernel/softirq.c:679 [inline] invoke_softirq kernel/softirq.c:519 [inline] __irq_exit_rcu+0x194/0x210 kernel/softirq.c:767 irq_exit_rcu+0x9/0x30 kernel/softirq.c:784 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:__kasan_check_byte+0x15/0x50 mm/kasan/common.c:573 Code: 00 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 40 d6 41 54 49 89 f4 55 48 89 fd 53 e8 7d 1e 00 00 89 c3 <84> c0 74 0b 89 d8 5b 5d 41 5c e9 47 7a 92 fe 4c 89 e1 48 89 ef 31 RSP: 0018:ffffc90005457b00 EFLAGS: 00000297 RAX: 0000000000000001 RBX: 0000000000000001 RCX: 0000000000000002 RDX: 0000000000000000 RSI: ffffffff8a479a57 RDI: fffffbfff1dbd80c RBP: ffffffff8edec060 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000004f R11: 0000000000000001 R12: ffffffff8a479a57 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 kasan_check_byte include/linux/kasan.h:402 [inline] lock_acquire kernel/locking/lockdep.c:5882 [inline] lock_acquire+0x132/0x380 kernel/locking/lockdep.c:5865 rcu_lock_acquire include/linux/rcupdate.h:309 [inline] rcu_read_lock include/linux/rcupdate.h:849 [inline] check_lifetime+0xc7/0xab0 net/ipv4/devinet.c:725 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396 process_scheduled_works kernel/workqueue.c:3479 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 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:ffffc900000079d8 EFLAGS: 00010012 RAX: dffffc0000000000 RBX: ffff888067b64000 RCX: 0000000000000102 RDX: 00000000000000e6 RSI: ffffffff87f466b6 RDI: ffff888067b64128 RBP: ffff888067b64128 R08: 0000000000000004 R09: 0000000000000020 R10: 0000000000000020 R11: 00000000000075fb R12: ffff888067b640f0 R13: ffff888067b64128 R14: ffff888067b64740 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff888123b61000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4d84827dac CR3: 000000004a8e3000 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