------------[ cut here ]------------
usb_ep_enable: ep129 (ep1in-bulk) has maxpacket 0
WARNING: CPU: 1 PID: 4464 at drivers/usb/gadget/udc/core.c:125 usb_ep_enable+0x27c/0x4d0 drivers/usb/gadget/udc/core.c:124
Modules linked in:
CPU: 1 PID: 4464 Comm: udevd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026
RIP: 0010:usb_ep_enable+0x27c/0x4d0 drivers/usb/gadget/udc/core.c:124
Code: 49 8b 0e 48 c7 c0 80 cf 3e 8b 49 c7 c0 a0 cf 3e 8b 4c 0f 44 c0 48 c7 c7 40 cf 3e 8b 48 c7 c6 19 aa 63 8c 89 ea e8 d4 f4 ce fa <0f> 0b e9 c4 fe ff ff e8 78 6a 03 fb 49 bc 00 00 00 00 00 fc ff df
RSP: 0018:ffffc900001e0788 EFLAGS: 00010046
RAX: 590bda898879e000 RBX: ffff88802578c0e0 RCX: ffff888024ed1e00
RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000002
RBP: 0000000000000081 R08: ffff8880b8f279db R09: 1ffff110171e4f3b
R10: dffffc0000000000 R11: ffffed10171e4f3c R12: dffffc0000000000
R13: ffff88802578c10d R14: ffff88802578c0e8 R15: ffff88807845683a
FS: 00007fd998fe3880(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc905c00001 CR3: 000000007a724000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
hidg_set_alt+0x126/0xa00 drivers/usb/gadget/function/f_hid.c:822
set_config+0x6e8/0xf70 drivers/usb/gadget/composite.c:986
composite_setup+0x194c/0x2b00 drivers/usb/gadget/composite.c:1893
configfs_composite_setup+0xc3/0x100 drivers/usb/gadget/configfs.c:1484
dummy_timer+0x12ea/0x3420 drivers/usb/gadget/udc/dummy_hcd.c:1936
__run_hrtimer kernel/time/hrtimer.c:1751 [inline]
__hrtimer_run_queues+0x522/0xc90 kernel/time/hrtimer.c:1815
hrtimer_run_softirq+0x173/0x290 kernel/time/hrtimer.c:1832
handle_softirqs+0x291/0x910 kernel/softirq.c:596
__do_softirq kernel/softirq.c:630 [inline]
invoke_softirq kernel/softirq.c:470 [inline]
__irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679
irq_exit_rcu+0x5/0x20 kernel/softirq.c:691
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:orc_ip arch/x86/kernel/unwind_orc.c:30 [inline]
RIP: 0010:__orc_find arch/x86/kernel/unwind_orc.c:52 [inline]
RIP: 0010:orc_find arch/x86/kernel/unwind_orc.c:178 [inline]
RIP: 0010:unwind_next_frame+0x1212/0x1fd0 arch/x86/kernel/unwind_orc.c:448
Code: c1 48 c1 f9 02 48 c1 e8 3f 48 01 c8 48 83 e0 fe 4c 8d 7c 45 00 4c 89 f8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 0f b6 04 08 <84> c0 75 27 49 63 07 4c 01 f8 49 8d 4f 04 4c 39 f0 48 0f 46 e9 49
RSP: 0018:ffffc90004c27400 EFLAGS: 00000a02
RAX: 0000000000000000 RBX: ffffc90004c274a8 RCX: dffffc0000000000
RDX: ffffffff8ea3f3e4 RSI: ffffffff8e330394 RDI: ffffffff8138fb37
RBP: ffffffff8e330394 R08: 000000000000000c R09: 0000000000000000
R10: dffffc0000000000 R11: fffff52000984ea1 R12: ffffffff8e330394
R13: ffffffff8e3303c0 R14: ffffffff8170d845 R15: ffffffff8e3303a8
arch_stack_walk+0x10c/0x140 arch/x86/kernel/stacktrace.c:25
stack_trace_save+0xa6/0xf0 kernel/stacktrace.c:122
kasan_save_stack mm/kasan/common.c:46 [inline]
kasan_set_track+0x4b/0x70 mm/kasan/common.c:53
__kasan_slab_alloc+0x6b/0x80 mm/kasan/common.c:329
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook+0x4b/0x490 mm/slab.h:737
slab_alloc_node mm/slub.c:3359 [inline]
slab_alloc mm/slub.c:3367 [inline]
__kmem_cache_alloc_lru mm/slub.c:3374 [inline]
kmem_cache_alloc+0x18b/0x2f0 mm/slub.c:3383
kmem_cache_zalloc include/linux/slab.h:689 [inline]
lsm_file_alloc security/security.c:576 [inline]
security_file_alloc+0x30/0x110 security/security.c:1544
__alloc_file+0xc2/0x230 fs/file_table.c:143
alloc_empty_file+0x90/0x180 fs/file_table.c:187
path_openat+0x11c/0x2f10 fs/namei.c:3777
do_filp_open+0x1ee/0x420 fs/namei.c:3818
do_sys_openat2+0x14b/0x4f0 fs/open.c:1320
do_sys_open fs/open.c:1336 [inline]
__do_sys_openat fs/open.c:1352 [inline]
__se_sys_openat fs/open.c:1347 [inline]
__x64_sys_openat+0x135/0x160 fs/open.c:1347
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fd9988a7407
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:00007fff8128ef70 EFLAGS: 00000202 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fd998fe3880 RCX: 00007fd9988a7407
RDX: 0000000000080000 RSI: 00005610ddea9a90 RDI: ffffffffffffff9c
RBP: 00005610ddea9a90 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000009
----------------
Code disassembly (best guess):
0: c1 48 c1 f9 rorl $0xf9,-0x3f(%rax)
4: 02 48 c1 add -0x3f(%rax),%cl
7: e8 3f 48 01 c8 call 0xc801484b
c: 48 83 e0 fe and $0xfffffffffffffffe,%rax
10: 4c 8d 7c 45 00 lea 0x0(%rbp,%rax,2),%r15
15: 4c 89 f8 mov %r15,%rax
18: 48 c1 e8 03 shr $0x3,%rax
1c: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx
23: fc ff df
26: 0f b6 04 08 movzbl (%rax,%rcx,1),%eax
* 2a: 84 c0 test %al,%al <-- trapping instruction
2c: 75 27 jne 0x55
2e: 49 63 07 movslq (%r15),%rax
31: 4c 01 f8 add %r15,%rax
34: 49 8d 4f 04 lea 0x4(%r15),%rcx
38: 4c 39 f0 cmp %r14,%rax
3b: 48 0f 46 e9 cmovbe %rcx,%rbp
3f: 49 rex.WB