------------[ cut here ]------------
usb_ep_enable: ep129 (ep1in-bulk) has maxpacket 0
WARNING: CPU: 1 PID: 7480 at drivers/usb/gadget/udc/core.c:125 usb_ep_enable+0x263/0x440 drivers/usb/gadget/udc/core.c:124
Modules linked in:
CPU: 1 PID: 7480 Comm: udevd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026
RIP: 0010:usb_ep_enable+0x263/0x440 drivers/usb/gadget/udc/core.c:124
Code: 49 8b 0e 48 c7 c0 40 24 7b 8b 49 c7 c0 60 24 7b 8b 4c 0f 44 c0 48 c7 c7 00 24 7b 8b 48 c7 c6 5f 61 a7 8c 89 ea e8 cd 78 94 fa <0f> 0b e9 e1 fe ff ff e8 21 ba ca fa 49 bc 00 00 00 00 00 fc ff df
RSP: 0018:ffffc900001f0790 EFLAGS: 00010046
RAX: 68626f3316b6cc00 RBX: ffff8880210ac0e0 RCX: ffff88805bea0000
RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000002
RBP: 0000000000000081 R08: ffff8880b8f28c53 R09: 1ffff110171e518a
R10: dffffc0000000000 R11: ffffed10171e518b R12: dffffc0000000000
R13: ffff8880210ac10d R14: ffff8880210ac0e8 R15: ffff88801d3bc63a
FS: 00007f01a2c80880(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6a44beb840 CR3: 000000007aaa1000 CR4: 00000000003506e0
Call Trace:
hidg_set_alt+0x12a/0xa10 drivers/usb/gadget/function/f_hid.c:826
set_config+0x735/0xff0 drivers/usb/gadget/composite.c:1018
composite_setup+0x1df4/0x33a0 drivers/usb/gadget/composite.c:1925
configfs_composite_setup+0xc7/0x100 drivers/usb/gadget/configfs.c:1875
dummy_timer+0x1324/0x34e0 drivers/usb/gadget/udc/dummy_hcd.c:1949
__run_hrtimer kernel/time/hrtimer.c:1754 [inline]
__hrtimer_run_queues+0x525/0xc10 kernel/time/hrtimer.c:1818
hrtimer_run_softirq+0x177/0x290 kernel/time/hrtimer.c:1835
handle_softirqs+0x27d/0x820 kernel/softirq.c:578
__do_softirq kernel/softirq.c:612 [inline]
invoke_softirq kernel/softirq.c:452 [inline]
__irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661
irq_exit_rcu+0x9/0x20 kernel/softirq.c:673
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687
RIP: 0010:percpu_counter_add_batch+0x25c/0x2a0 lib/percpu_counter.c:103
Code: 4d 85 ff 75 16 e8 94 9f 21 fd eb 15 e8 8d 9f 21 fd e8 e8 b9 2c 06 4d 85 ff 74 ea e8 7e 9f 21 fd fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 04 26 00 00 00 00 43 c7 44 26 08 00 00 00 00 65 48 8b 04 25
RSP: 0018:ffffc900033bf880 EFLAGS: 00000293
RAX: ffffffff8465f132 RBX: 0000000000000000 RCX: ffff88805bea0000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900033bf968 R08: ffffffff8e8c626f R09: 1ffffffff1d18c4d
R10: dffffc0000000000 R11: fffffbfff1d18c4e R12: dffffc0000000000
R13: 0000000000000009 R14: 1ffff92000677f18 R15: 0000000000000200
percpu_counter_add include/linux/percpu_counter.h:69 [inline]
percpu_counter_inc include/linux/percpu_counter.h:237 [inline]
alloc_empty_file+0x107/0x1d0 fs/file_table.c:234
path_openat+0x120/0x3270 fs/namei.c:3830
do_filp_open+0x1f2/0x430 fs/namei.c:3871
do_sys_openat2+0x134/0x1d0 fs/open.c:1422
do_sys_open fs/open.c:1437 [inline]
__do_sys_openat fs/open.c:1453 [inline]
__se_sys_openat fs/open.c:1448 [inline]
__x64_sys_openat+0x139/0x160 fs/open.c:1448
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f01a24a7407
Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007ffee29ef450 EFLAGS: 00000202 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f01a2c80880 RCX: 00007f01a24a7407
RDX: 0000000000080000 RSI: 00007ffee29ef5d0 RDI: ffffffffffffff9c
RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000558b319c37f5
R13: 0000558b319c37f5 R14: 0000000000000001 R15: 0000558b319de140
----------------
Code disassembly (best guess):
0: 4d 85 ff test %r15,%r15
3: 75 16 jne 0x1b
5: e8 94 9f 21 fd call 0xfd219f9e
a: eb 15 jmp 0x21
c: e8 8d 9f 21 fd call 0xfd219f9e
11: e8 e8 b9 2c 06 call 0x62cb9fe
16: 4d 85 ff test %r15,%r15
19: 74 ea je 0x5
1b: e8 7e 9f 21 fd call 0xfd219f9e
20: fb sti
21: 48 c7 44 24 40 0e 36 movq $0x45e0360e,0x40(%rsp)
28: e0 45
* 2a: 4b c7 04 26 00 00 00 movq $0x0,(%r14,%r12,1) <-- trapping instruction
31: 00
32: 43 c7 44 26 08 00 00 movl $0x0,0x8(%r14,%r12,1)
39: 00 00
3b: 65 gs
3c: 48 rex.W
3d: 8b .byte 0x8b
3e: 04 25 add $0x25,%al