------------[ cut here ]------------ usb_ep_enable: ep133 (ep5in-int) has maxpacket 0 WARNING: CPU: 1 PID: 7815 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: 7815 Comm: syz.2.620 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 RIP: 0010:usb_ep_enable+0x263/0x440 drivers/usb/gadget/udc/core.c:124 Code: 49 8b 0e 48 c7 c0 e0 47 9a 8b 49 c7 c0 00 48 9a 8b 4c 0f 44 c0 48 c7 c7 a0 47 9a 8b 48 c7 c6 db 26 c9 8c 89 ea e8 bd 85 99 fa <0f> 0b e9 e1 fe ff ff e8 01 e1 cf fa 49 bc 00 00 00 00 00 fc ff df RSP: 0018:ffffc900001f0790 EFLAGS: 00010046 RAX: 0b31016f7bebf100 RBX: ffff8881433d01d0 RCX: ffff88802e925a00 RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000002 RBP: 0000000000000085 R08: ffff8880b8d28c53 R09: 1ffff110171a518a R10: dffffc0000000000 R11: ffffed10171a518b R12: dffffc0000000000 R13: ffff8881433d01fd R14: ffff8881433d01d8 R15: ffff888025ec253a FS: 00007f465d0c56c0(0000) GS:ffff8880b8d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fbc3b1556c8 CR3: 0000000058715000 CR4: 00000000003506e0 DR0: 0000000000000008 DR1: 0000000000000007 DR2: 0000000000000004 DR3: 0000000000000008 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: hidg_set_alt+0x12a/0xa10 drivers/usb/gadget/function/f_hid.c:827 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+0x130c/0x35d0 drivers/usb/gadget/udc/dummy_hcd.c:1953 __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:on_stack arch/x86/include/asm/stacktrace.h:60 [inline] RIP: 0010:stack_access_ok arch/x86/kernel/unwind_orc.c:393 [inline] RIP: 0010:deref_stack_reg arch/x86/kernel/unwind_orc.c:403 [inline] RIP: 0010:unwind_next_frame+0xefc/0x2990 arch/x86/kernel/unwind_orc.c:585 Code: 89 ee e8 a7 ef 4b 00 85 ed 0f 95 c0 4c 39 f3 0f 96 c1 20 c1 4d 39 f7 0f 97 c0 84 c1 4c 89 f5 0f 84 33 02 00 00 48 89 6c 24 30 <48> 8d 45 08 48 39 d8 0f 97 c1 4c 39 f8 0f 96 c0 84 c1 48 8b 6c 24 RSP: 0018:ffffc9000e7df618 EFLAGS: 00000202 RAX: ffffffff813bf201 RBX: ffffc9000e7d8000 RCX: 0000000000000001 RDX: ffff88802e925a00 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc9000e7df740 R08: ffff88802e925a00 R09: 0000000000000003 R10: 0000000000000004 R11: 0000000000000002 R12: 1ffff92001cfbeeb R13: ffffc9000e7df748 R14: ffffc9000e7df740 R15: ffffc9000e7e0000 __unwind_start+0x5bb/0x730 arch/x86/kernel/unwind_orc.c:760 unwind_start arch/x86/include/asm/unwind.h:64 [inline] arch_stack_walk+0xf8/0x190 arch/x86/kernel/stacktrace.c:24 stack_trace_save+0xaa/0x100 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:53 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:198 [inline] __do_kmalloc_node mm/slab_common.c:1007 [inline] __kmalloc+0xb7/0x240 mm/slab_common.c:1020 kmalloc include/linux/slab.h:604 [inline] kzalloc include/linux/slab.h:721 [inline] tomoyo_encode2 security/tomoyo/realpath.c:45 [inline] tomoyo_encode+0x2ad/0x570 security/tomoyo/realpath.c:80 tomoyo_realpath_from_path+0x57c/0x5c0 security/tomoyo/realpath.c:283 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_number_perm+0x248/0x5e0 security/tomoyo/file.c:723 security_file_ioctl+0x70/0xa0 security/security.c:2735 __do_sys_ioctl fs/ioctl.c:865 [inline] __se_sys_ioctl+0x48/0x170 fs/ioctl.c:857 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:0x7f465c19f7ab Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 RSP: 002b:00007f465d0c2f00 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f465c19f7ab RDX: 00007f465d0c3fd0 RSI: 0000000080085502 RDI: 0000000000000003 RBP: 00007f465d0c3fd0 R08: 0000000000000009 R09: 00007f465d0c2fc8 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000080085502 R13: 0000000800000000 R14: 0000000000000009 R15: 00007f465c256ba4 ---------------- Code disassembly (best guess): 0: 89 ee mov %ebp,%esi 2: e8 a7 ef 4b 00 call 0x4befae 7: 85 ed test %ebp,%ebp 9: 0f 95 c0 setne %al c: 4c 39 f3 cmp %r14,%rbx f: 0f 96 c1 setbe %cl 12: 20 c1 and %al,%cl 14: 4d 39 f7 cmp %r14,%r15 17: 0f 97 c0 seta %al 1a: 84 c1 test %al,%cl 1c: 4c 89 f5 mov %r14,%rbp 1f: 0f 84 33 02 00 00 je 0x258 25: 48 89 6c 24 30 mov %rbp,0x30(%rsp) * 2a: 48 8d 45 08 lea 0x8(%rbp),%rax <-- trapping instruction 2e: 48 39 d8 cmp %rbx,%rax 31: 0f 97 c1 seta %cl 34: 4c 39 f8 cmp %r15,%rax 37: 0f 96 c0 setbe %al 3a: 84 c1 test %al,%cl 3c: 48 rex.W 3d: 8b .byte 0x8b 3e: 6c insb (%dx),%es:(%rdi) 3f: 24 .byte 0x24