------------[ cut here ]------------
usb_ep_enable: ep129 (ep1in-bulk) has maxpacket 0
WARNING: CPU: 0 PID: 1931 at drivers/usb/gadget/udc/core.c:125 usb_ep_enable+0x210/0x3c0 drivers/usb/gadget/udc/core.c:124
Modules linked in:
CPU: 0 UID: 0 PID: 1931 Comm: syz.4.483 Not tainted syzkaller #0 5fe152ef41c0f52d2b9838e2edd0515112f50e23
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:usb_ep_enable+0x210/0x3c0 drivers/usb/gadget/udc/core.c:124
Code: 4d 00 48 c7 c0 20 62 6d 86 49 c7 c0 40 62 6d 86 4c 0f 44 c0 48 c7 c7 e0 61 6d 86 48 c7 c6 d8 b7 1d 87 44 89 f2 e8 50 2b 4b fd <0f> 0b e9 4c ff ff ff e8 c4 59 ce fd 49 bc 00 00 00 00 00 fc ff df
RSP: 0018:ffffc90000007878 EFLAGS: 00010046
RAX: 7a784c754775a500 RBX: ffff8881033200b0 RCX: ffff888117183900
RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffffc900000078a0 R08: ffff8881f6e294d3 R09: 1ffff1103edc529a
R10: dffffc0000000000 R11: ffffed103edc529b R12: dffffc0000000000
R13: ffff8881033200b8 R14: 0000000000000081 R15: ffff888114b73b3a
FS: 0000000000000000(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f16aa2b8ff8 CR3: 000000010ebe4000 CR4: 00000000003526b0
Call Trace:
hidg_set_alt+0x138/0xa70 drivers/usb/gadget/function/f_hid.c:1057
set_config+0x812/0xd10 drivers/usb/gadget/composite.c:1021
composite_setup+0x18b0/0x3320 drivers/usb/gadget/composite.c:1929
configfs_composite_setup+0xc6/0x110 drivers/usb/gadget/configfs.c:1883
dummy_timer+0x2eee/0x4900 drivers/usb/gadget/udc/dummy_hcd.c:1935
__run_hrtimer kernel/time/hrtimer.c:1758 [inline]
__hrtimer_run_queues+0x3ae/0x8e0 kernel/time/hrtimer.c:1822
hrtimer_run_softirq+0x159/0x560 kernel/time/hrtimer.c:1839
handle_softirqs+0x1aa/0x5b0 kernel/softirq.c:621
__do_softirq kernel/softirq.c:659 [inline]
invoke_softirq kernel/softirq.c:476 [inline]
__irq_exit_rcu+0x47/0xb0 kernel/softirq.c:708
irq_exit_rcu+0xd/0x30 kernel/softirq.c:720
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
sysvec_apic_timer_interrupt+0x82/0x90 arch/x86/kernel/apic/apic.c:1049
asm_sysvec_apic_timer_interrupt+0x1f/0x30 arch/x86/include/asm/idtentry.h:702
RIP: 0010:check_kcov_mode kernel/kcov.c:194 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x3a/0x70 kernel/kcov.c:217
Code: 0c 75 7d 7e 65 8b 15 0d 75 7d 7e 81 e2 00 01 ff 00 74 11 81 fa 00 01 00 00 75 35 83 b9 ec 0b 00 00 00 74 2c 8b 91 c8 0b 00 00 <83> fa 02 75 21 48 8b 91 d0 0b 00 00 48 8b 32 48 8d 7e 01 8b 89 cc
RSP: 0018:ffffc900014374f0 EFLAGS: 00000246
RAX: ffffffff81d01cd9 RBX: 00007f16a7fcb000 RCX: ffff888117183900
RDX: 0000000000000000 RSI: 00000000000001fd RDI: 00000000000001c5
RBP: ffffc900014374f0 R08: ffffea00048e85f3 R09: 1ffffd400091d0be
R10: dffffc0000000000 R11: fffff9400091d0bf R12: ffff888122375e58
R13: dffffc0000000000 R14: 00007f16a7fcb000 R15: 00007f16a8000000
zap_present_folio_ptes mm/memory.c:1547 [inline]
zap_present_ptes mm/memory.c:1603 [inline]
do_zap_pte_range mm/memory.c:1708 [inline]
zap_pte_range mm/memory.c:1752 [inline]
zap_pmd_range mm/memory.c:1845 [inline]
zap_pud_range mm/memory.c:1874 [inline]
zap_p4d_range mm/memory.c:1895 [inline]
unmap_page_range+0x2019/0x48f0 mm/memory.c:1916
unmap_single_vma mm/memory.c:1962 [inline]
unmap_vmas+0x2dd/0x400 mm/memory.c:2006
exit_mmap+0x28a/0xc20 mm/mmap.c:1975
__mmput+0x92/0x330 kernel/fork.c:1370
mmput+0x55/0x170 kernel/fork.c:1394
exit_mm kernel/exit.c:581 [inline]
do_exit+0x9a5/0x2850 kernel/exit.c:948
do_group_exit+0x21f/0x2f0 kernel/exit.c:1104
get_signal+0x134c/0x1490 kernel/signal.c:2941
arch_do_signal_or_restart+0xbc/0x700 arch/x86/kernel/signal.c:337
exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
__syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
syscall_exit_to_user_mode+0x57/0xb0 kernel/entry/common.c:218
do_syscall_64+0x63/0xf0 arch/x86/entry/common.c:84
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f16a939e199
Code: Unable to access opcode bytes at 0x7f16a939e16f.
RSP: 002b:00007f16aa2b90e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007f16a9625fa8 RCX: 00007f16a939e199
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f16a9625fa8
RBP: 00007f16a9625fa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f16a9626038 R14: 00007ffdff385f30 R15: 00007ffdff386018
---[ end trace 0000000000000000 ]---
configfs-gadget.g1 gadget.0: Enable IN endpoint FAILED!
----------------
Code disassembly (best guess):
0: 0c 75 or $0x75,%al
2: 7d 7e jge 0x82
4: 65 8b 15 0d 75 7d 7e mov %gs:0x7e7d750d(%rip),%edx # 0x7e7d7518
b: 81 e2 00 01 ff 00 and $0xff0100,%edx
11: 74 11 je 0x24
13: 81 fa 00 01 00 00 cmp $0x100,%edx
19: 75 35 jne 0x50
1b: 83 b9 ec 0b 00 00 00 cmpl $0x0,0xbec(%rcx)
22: 74 2c je 0x50
24: 8b 91 c8 0b 00 00 mov 0xbc8(%rcx),%edx
* 2a: 83 fa 02 cmp $0x2,%edx <-- trapping instruction
2d: 75 21 jne 0x50
2f: 48 8b 91 d0 0b 00 00 mov 0xbd0(%rcx),%rdx
36: 48 8b 32 mov (%rdx),%rsi
39: 48 8d 7e 01 lea 0x1(%rsi),%rdi
3d: 8b .byte 0x8b
3e: 89 cc mov %ecx,%esp