================================================================== BUG: KASAN: slab-use-after-free in find_endpoint+0x2a3/0x2c0 drivers/usb/gadget/udc/dummy_hcd.c:1618 Read of size 1 at addr ffff88807fdbf0da by task syz.3.4399/24780 CPU: 0 UID: 0 PID: 24780 Comm: syz.3.4399 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595 find_endpoint+0x2a3/0x2c0 drivers/usb/gadget/udc/dummy_hcd.c:1618 handle_control_request drivers/usb/gadget/udc/dummy_hcd.c:1761 [inline] dummy_timer+0x259e/0x3700 drivers/usb/gadget/udc/dummy_hcd.c:1942 __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:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:211 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x31/0x80 kernel/locking/spinlock.c:221 Code: f5 53 48 8b 74 24 10 48 89 fb 48 83 c7 18 e8 26 8d 15 f6 48 89 df e8 4e e3 15 f6 f7 c5 00 02 00 00 75 23 9c 58 f6 c4 02 75 37 01 00 00 00 e8 25 ea 04 f6 65 48 83 3d e4 74 ba 08 00 74 16 5b RSP: 0018:ffffc9000e477ae0 EFLAGS: 00000246 RAX: 0000000000000006 RBX: ffff88802e2f8a80 RCX: 0000000000000000 RDX: 0000000000000002 RSI: ffffffff8e3f15b9 RDI: ffffffff8c622280 RBP: 0000000000000283 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff8880b853c040 R13: ffff8880b853cf20 R14: ffff88802e2f8a80 R15: ffff88802e2f8000 class_raw_spinlock_irqsave_destructor include/linux/spinlock.h:594 [inline] try_to_wake_up+0xd8d/0x1c90 kernel/sched/core.c:4302 wake_up_process kernel/sched/core.c:4557 [inline] wake_up_q+0xa1/0x130 kernel/sched/core.c:1183 futex_wake+0x4f4/0x5e0 kernel/futex/waitwake.c:225 class_raw_spinlock_irqsave_destructor include/linux/spinlock.h:594 [inline] try_to_wake_up+0xd8d/0x1c90 kernel/sched/core.c:4302 ---------------- Code disassembly (best guess): 0: f5 cmc 1: 53 push %rbx 2: 48 8b 74 24 10 mov 0x10(%rsp),%rsi 7: 48 89 fb mov %rdi,%rbx a: 48 83 c7 18 add $0x18,%rdi e: e8 26 8d 15 f6 call 0xf6158d39 13: 48 89 df mov %rbx,%rdi 16: e8 4e e3 15 f6 call 0xf615e369 1b: f7 c5 00 02 00 00 test $0x200,%ebp 21: 75 23 jne 0x46 23: 9c pushf 24: 58 pop %rax 25: f6 c4 02 test $0x2,%ah 28: 75 37 jne 0x61 * 2a: bf 01 00 00 00 mov $0x1,%edi <-- trapping instruction 2f: e8 25 ea 04 f6 call 0xf604ea59 34: 65 48 83 3d e4 74 ba cmpq $0x0,%gs:0x8ba74e4(%rip) # 0x8ba7521 3b: 08 00 3d: 74 16 je 0x55 3f: 5b pop %rbx