------------[ cut here ]------------ usb_ep_enable: ep129 (ep1in-bulk) has maxpacket 0 WARNING: drivers/usb/gadget/udc/core.c:124 at usb_ep_enable+0x3e6/0x490 drivers/usb/gadget/udc/core.c:124, CPU#0: swapper/0/0 Modules linked in: CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:usb_ep_enable+0x3f8/0x490 drivers/usb/gadget/udc/core.c:124 Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 93 00 00 00 48 8d 3d 1a 4e 86 0a 48 8b 4b 08 40 0f b6 d5 4d 89 e0 48 c7 c6 00 bf fb 8c <67> 48 0f b9 3a bd ea ff ff ff e9 8e fd ff ff 49 c7 c4 a0 b1 fb 8c RSP: 0018:ffffc90000007a10 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: ffff8880267540e0 RCX: ffffffff8cfbf600 RDX: 0000000000000081 RSI: ffffffff8cfbbf00 RDI: ffffffff92787470 RBP: 0000000000000081 R08: ffffffff8cfbb1e0 R09: 0000000000000000 R10: ffffffff926aee5f R11: 0000000000000000 R12: ffffffff8cfbb1e0 R13: 0000000000000000 R14: ffff8880267540e0 R15: ffff8880284821a0 FS: 0000000000000000(0000) GS:ffff888095279000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000f7329110 CR3: 000000004e6f9000 CR4: 0000000000352ef0 Call Trace: hidg_set_alt+0x190/0xa10 drivers/usb/gadget/function/f_hid.c:1042 set_config drivers/usb/gadget/composite.c:1018 [inline] composite_setup+0x2ccf/0x9290 drivers/usb/gadget/composite.c:1901 configfs_composite_setup+0xfb/0x130 drivers/usb/gadget/configfs.c:1877 dummy_timer+0x20a0/0x3840 drivers/usb/gadget/udc/dummy_hcd.c:1983 __run_hrtimer kernel/time/hrtimer.c:2079 [inline] __hrtimer_run_queues+0x448/0x9a0 kernel/time/hrtimer.c:2136 hrtimer_run_softirq+0x1ca/0x360 kernel/time/hrtimer.c:2153 handle_softirqs+0x216/0xa20 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0x178/0x220 kernel/softirq.c:786 irq_exit_rcu+0x9/0x30 kernel/softirq.c:809 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:pv_native_safe_halt+0xf/0x20 arch/x86/kernel/paravirt.c:64 Code: 17 a2 02 e9 43 61 03 00 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa eb 07 0f 00 2d 23 7c 1e 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 RSP: 0018:ffffffff8fc07cf0 EFLAGS: 00000206 RAX: 00000000003e76d7 RBX: ffffffff8fc91540 RCX: ffffffff8bed4325 RDX: 0000000000000001 RSI: ffffffff8e626997 RDI: ffffffff8c836180 RBP: fffffbfff1f922a8 R08: 0000000000000001 R09: ffffed10055c6825 R10: ffff88802ae3412b R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000000 R14: 1ffffffff1f80fa2 R15: dffffc0000000000 arch_safe_halt arch/x86/include/asm/paravirt.h:62 [inline] default_idle+0x9/0x10 arch/x86/kernel/process.c:768 default_idle_call+0x6c/0xb0 kernel/sched/idle.c:122 cpuidle_idle_call kernel/sched/idle.c:199 [inline] do_idle+0x3ae/0x5b0 kernel/sched/idle.c:355 cpu_startup_entry+0x4f/0x60 kernel/sched/idle.c:458 rest_init+0x2d3/0x2e0 init/main.c:789 start_kernel+0x48e/0x490 init/main.c:1247 x86_64_start_reservations+0x24/0x30 arch/x86/kernel/head64.c:310 x86_64_start_kernel+0x12b/0x130 arch/x86/kernel/head64.c:291 common_startup_64+0x13e/0x158 ---------------- Code disassembly (best guess): 0: 48 89 fa mov %rdi,%rdx 3: 48 c1 ea 03 shr $0x3,%rdx 7: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) b: 0f 85 93 00 00 00 jne 0xa4 11: 48 8d 3d 1a 4e 86 0a lea 0xa864e1a(%rip),%rdi # 0xa864e32 18: 48 8b 4b 08 mov 0x8(%rbx),%rcx 1c: 40 0f b6 d5 movzbl %bpl,%edx 20: 4d 89 e0 mov %r12,%r8 23: 48 c7 c6 00 bf fb 8c mov $0xffffffff8cfbbf00,%rsi * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: bd ea ff ff ff mov $0xffffffea,%ebp 34: e9 8e fd ff ff jmp 0xfffffdc7 39: 49 c7 c4 a0 b1 fb 8c mov $0xffffffff8cfbb1a0,%r12