[v5.15] WARNING in usb_ep_enable

0 views
Skip to first unread message

syzbot

unread,
Jul 31, 2026, 4:18:34 PM (yesterday) Jul 31
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 6e2fd6534337 Linux 5.15.213
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=129da5b9580000
kernel config: https://syzkaller.appspot.com/x/.config?x=f161cbc9aef65db0
dashboard link: https://syzkaller.appspot.com/bug?extid=5bd412baa2c4211bdc7a
compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/d7b46606b13d/disk-6e2fd653.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/da120fdeb081/vmlinux-6e2fd653.xz
kernel image: https://storage.googleapis.com/syzbot-assets/3c2643457e3f/bzImage-6e2fd653.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+5bd412...@syzkaller.appspotmail.com

------------[ cut here ]------------
usb_ep_enable: ep129 (ep1in-bulk) has maxpacket 0
WARNING: CPU: 0 PID: 4320 at drivers/usb/gadget/udc/core.c:108 usb_ep_enable+0x25f/0x440 drivers/usb/gadget/udc/core.c:107
Modules linked in:
CPU: 0 PID: 4320 Comm: syz.2.18 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:usb_ep_enable+0x25f/0x440 drivers/usb/gadget/udc/core.c:107
Code: 49 8b 0e 48 c7 c0 80 27 d5 8a 49 c7 c0 a0 27 d5 8a 4c 0f 44 c0 48 c7 c7 40 27 d5 8a 48 c7 c6 1d 96 e1 8b 89 ea e8 c1 94 7f 03 <0f> 0b e9 e1 fe ff ff e8 95 67 43 fb 49 bc 00 00 00 00 00 fc ff df
RSP: 0018:ffffc900000076a8 EFLAGS: 00010046
RAX: 60294de2ffe8c400 RBX: ffff8881485300e0 RCX: ffff88807a26bb80
RDX: 0000000000000100 RSI: 0000000000000102 RDI: 0000000000000000
RBP: 0000000000000081 R08: ffff8880b902795b R09: 1ffff11017204f2b
R10: dffffc0000000000 R11: ffffed1017204f2c R12: dffffc0000000000
R13: ffff88814853010d R14: ffff8881485300e8 R15: ffff88802250393a
FS: 00007f03e9c316c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200001000000 CR3: 000000005d55b000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
hidg_set_alt+0x126/0xa00 drivers/usb/gadget/function/f_hid.c:822
set_config+0x734/0xfa0 drivers/usb/gadget/composite.c:972
composite_setup+0x1999/0x2b60 drivers/usb/gadget/composite.c:1878
configfs_composite_setup+0xc3/0x100 drivers/usb/gadget/configfs.c:1492
dummy_timer+0x1338/0x33c0 drivers/usb/gadget/udc/dummy_hcd.c:1930
call_timer_fn+0x17b/0x540 kernel/time/timer.c:1648
expire_timers kernel/time/timer.c:1699 [inline]
__run_timers+0x56c/0x810 kernel/time/timer.c:1970
run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1983
handle_softirqs+0x336/0x830 kernel/softirq.c:576
__do_softirq kernel/softirq.c:610 [inline]
invoke_softirq kernel/softirq.c:450 [inline]
__irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659
irq_exit_rcu+0x5/0x20 kernel/softirq.c:671
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:unwind_next_frame+0x53/0x1cf0 arch/x86/kernel/unwind_orc.c:424
Code: 24 10 42 80 3c 30 00 74 05 e8 f9 10 89 00 4c 8b 63 48 48 8d 7b 38 48 89 fd 48 c1 ed 03 42 80 7c 35 00 00 74 05 e8 dd 10 89 00 <4c> 8b 6b 38 49 89 df 49 c1 ef 03 43 0f b6 04 37 84 c0 0f 85 15 16
RSP: 0018:ffffc900031d6eb0 EFLAGS: 00000246
RAX: 1ffff9200063adf2 RBX: ffffc900031d6f48 RCX: dffffc0000000001
RDX: dffffc0000000000 RSI: ffffffff81676d96 RDI: ffffc900031d6f80
RBP: 1ffff9200063adf0 R08: ffffc900031d7010 R09: 0000000000000000
R10: dffffc0000000000 R11: fffff5200063adf5 R12: ffffffff81676d96
R13: 1ffff1100f44d820 R14: dffffc0000000000 R15: ffffc900031d6f48
arch_stack_walk+0x10c/0x140 arch/x86/kernel/stacktrace.c:25
stack_trace_save+0xa6/0xf0 kernel/stacktrace.c:122
save_stack+0x121/0x230 mm/page_owner.c:119
__set_page_owner+0x41/0x2d0 mm/page_owner.c:181
prep_new_page mm/page_alloc.c:2426 [inline]
get_page_from_freelist+0x24f6/0x2670 mm/page_alloc.c:4192
__alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501
alloc_pages_vma+0x2bc/0x790 mm/mempolicy.c:2146
shmem_alloc_page mm/shmem.c:1586 [inline]
shmem_alloc_and_acct_page+0x47f/0xbe0 mm/shmem.c:1611
shmem_getpage_gfp+0x14be/0x2c10 mm/shmem.c:1906
shmem_getpage mm/shmem.c:151 [inline]
shmem_write_begin+0xcd/0x1a0 mm/shmem.c:2474
generic_perform_write+0x2b6/0x550 mm/filemap.c:3785
__generic_file_write_iter+0x261/0x4e0 mm/filemap.c:3912
generic_file_write_iter+0xa6/0x1b0 mm/filemap.c:3944
call_write_iter include/linux/fs.h:2173 [inline]
new_sync_write fs/read_write.c:507 [inline]
vfs_write+0x748/0xd70 fs/read_write.c:594
ksys_write+0x153/0x260 fs/read_write.c:647
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f03eb99984e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f03e9c30da8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f03e9c316c0 RCX: 00007f03eb99984e
RDX: 00000000013bd7ef RSI: 00007f03e1811000 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003
R13: 00007f03e9c30ee0 R14: 00007f03e9c30ea0 R15: 00007f03e1811000
</TASK>
----------------
Code disassembly (best guess):
0: 24 10 and $0x10,%al
2: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1)
7: 74 05 je 0xe
9: e8 f9 10 89 00 call 0x891107
e: 4c 8b 63 48 mov 0x48(%rbx),%r12
12: 48 8d 7b 38 lea 0x38(%rbx),%rdi
16: 48 89 fd mov %rdi,%rbp
19: 48 c1 ed 03 shr $0x3,%rbp
1d: 42 80 7c 35 00 00 cmpb $0x0,0x0(%rbp,%r14,1)
23: 74 05 je 0x2a
25: e8 dd 10 89 00 call 0x891107
* 2a: 4c 8b 6b 38 mov 0x38(%rbx),%r13 <-- trapping instruction
2e: 49 89 df mov %rbx,%r15
31: 49 c1 ef 03 shr $0x3,%r15
35: 43 0f b6 04 37 movzbl (%r15,%r14,1),%eax
3a: 84 c0 test %al,%al
3c: 0f .byte 0xf
3d: 85 .byte 0x85
3e: 15 .byte 0x15
3f: 16 (bad)


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Jul 31, 2026, 5:09:32 PM (yesterday) Jul 31
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: a1153c0deb44 Linux 6.6.147
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=148ff1b9580000
kernel config: https://syzkaller.appspot.com/x/.config?x=f0bc3d90c30838b5
dashboard link: https://syzkaller.appspot.com/bug?extid=d851455dbf571fe8e225
compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/9f646bfa1b52/disk-a1153c0d.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/a2aec2e8f0fd/vmlinux-a1153c0d.xz
kernel image: https://storage.googleapis.com/syzbot-assets/a7abe1f87405/bzImage-a1153c0d.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+d85145...@syzkaller.appspotmail.com

------------[ cut here ]------------
usb_ep_enable: ep129 (ep1in-bulk) has maxpacket 0
WARNING: CPU: 1 PID: 5142 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: 5142 Comm: udevd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:usb_ep_enable+0x263/0x440 drivers/usb/gadget/udc/core.c:124
Code: 49 8b 0e 48 c7 c0 40 bd 7a 8b 49 c7 c0 60 bd 7a 8b 4c 0f 44 c0 48 c7 c7 00 bd 7a 8b 48 c7 c6 e7 8b a6 8c 89 ea e8 fd e0 97 fa <0f> 0b e9 e1 fe ff ff e8 e1 10 ce fa 49 bc 00 00 00 00 00 fc ff df
RSP: 0000:ffffc9001085f6f0 EFLAGS: 00010046
RAX: a74fe6bca5745e00 RBX: ffff8881416600e0 RCX: ffff88807d8b5a00
RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000002
RBP: 0000000000000081 R08: ffff8880b8f28c53 R09: 1ffff110171e518a
R10: dffffc0000000000 R11: ffffed10171e518b R12: dffffc0000000000
R13: ffff88814166010d R14: ffff8881416600e8 R15: ffff88805c1a67ba
FS: 00007fa85b683880(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000004fe0 CR3: 0000000019af7000 CR4: 00000000003506e0
Call Trace:
<TASK>
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+0x1309/0x3420 drivers/usb/gadget/udc/dummy_hcd.c:1935
__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+0x56/0xc0 arch/x86/kernel/apic/apic.c:1088
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687
RIP: 0033:0x55f8a43003f9
Code: c7 31 db e8 d9 cf ff ff eb 1c 0f 1f 80 00 00 00 00 48 8d 5c 03 01 4c 89 f6 48 89 ef e8 f0 f4 ff ff 49 39 dd 7e 11 4d 8d 34 1c <4c> 89 f7 e8 cf 8e fd ff 48 85 c0 75 da 48 89 ef e8 92 cc ff ff 85
RSP: 002b:00007ffd1143fdf0 EFLAGS: 00000202
RAX: 000055f8de13f280 RBX: 00000000000000a0 RCX: 000055f8de15a1d8
RDX: 0000000000000000 RSI: 000055f8de1549c0 RDI: 000055f8de1549c8
RBP: 000055f8de15a110 R08: 000055f8de15a1d0 R09: 00007fa85aff1ad0
R10: 000055f8de1419a0 R11: 0000000000000012 R12: 00007ffd1143ff4b
R13: 00000000000000c3 R14: 00007ffd1143ffeb R15: 0000000000000000
</TASK>

syzbot

unread,
Jul 31, 2026, 9:05:32 PM (22 hours ago) Jul 31
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 6e2fd6534337 Linux 5.15.213
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17faf5b9580000
kernel config: https://syzkaller.appspot.com/x/.config?x=f161cbc9aef65db0
dashboard link: https://syzkaller.appspot.com/bug?extid=5bd412baa2c4211bdc7a
compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11abfa49580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13374e32580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/d7b46606b13d/disk-6e2fd653.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/da120fdeb081/vmlinux-6e2fd653.xz
kernel image: https://storage.googleapis.com/syzbot-assets/3c2643457e3f/bzImage-6e2fd653.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+5bd412...@syzkaller.appspotmail.com

------------[ cut here ]------------
usb_ep_enable: ep129 (ep1in-bulk) has maxpacket 0
WARNING: CPU: 0 PID: 0 at drivers/usb/gadget/udc/core.c:108 usb_ep_enable+0x25f/0x440 drivers/usb/gadget/udc/core.c:107
Modules linked in:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:usb_ep_enable+0x25f/0x440 drivers/usb/gadget/udc/core.c:107
Code: 49 8b 0e 48 c7 c0 80 27 d5 8a 49 c7 c0 a0 27 d5 8a 4c 0f 44 c0 48 c7 c7 40 27 d5 8a 48 c7 c6 1d 96 e1 8b 89 ea e8 c1 94 7f 03 <0f> 0b e9 e1 fe ff ff e8 95 67 43 fb 49 bc 00 00 00 00 00 fc ff df
RSP: 0018:ffffc900000076a8 EFLAGS: 00010046
RAX: bcba74ca5ada9800 RBX: ffff8881486f00e0 RCX: ffffffff8c0bc480
RDX: 0000000000000100 RSI: 0000000000000103 RDI: 0000000000000000
RBP: 0000000000000081 R08: ffff8880b902795b R09: 1ffff11017204f2b
R10: dffffc0000000000 R11: ffffed1017204f2c R12: dffffc0000000000
R13: ffff8881486f010d R14: ffff8881486f00e8 R15: ffff88802a38bb3a
FS: 0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffda3284e54 CR3: 0000000029c63000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
hidg_set_alt+0x126/0xa00 drivers/usb/gadget/function/f_hid.c:822
set_config+0x734/0xfa0 drivers/usb/gadget/composite.c:972
composite_setup+0x1999/0x2b60 drivers/usb/gadget/composite.c:1878
configfs_composite_setup+0xc3/0x100 drivers/usb/gadget/configfs.c:1492
dummy_timer+0x1338/0x33c0 drivers/usb/gadget/udc/dummy_hcd.c:1930
call_timer_fn+0x17b/0x540 kernel/time/timer.c:1648
expire_timers kernel/time/timer.c:1699 [inline]
__run_timers+0x56c/0x810 kernel/time/timer.c:1970
run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1983
handle_softirqs+0x336/0x830 kernel/softirq.c:576
__do_softirq kernel/softirq.c:610 [inline]
invoke_softirq kernel/softirq.c:450 [inline]
__irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659
irq_exit_rcu+0x5/0x20 kernel/softirq.c:671
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:default_idle+0xb/0x10 arch/x86/kernel/process.c:730
Code: b7 48 89 df e8 36 b7 f4 f7 eb ad e8 df ab f6 ff 00 00 cc cc 00 00 cc cc 00 00 cc cc 00 00 cc 66 90 0f 00 2d e7 65 5c 00 fb f4 <c3> 0f 1f 40 00 41 57 41 56 53 49 be 00 00 00 00 00 fc ff df 65 48
RSP: 0018:ffffffff8c007dc8 EFLAGS: 000002c6
RAX: bcba74ca5ada9800 RBX: ffffffff8c0bc480 RCX: bcba74ca5ada9800
RDX: 0000000000000001 RSI: ffffffff8a2b2be0 RDI: ffffffff8a7a4200
RBP: ffffffff8c007ef8 R08: ffff8880b903b30b R09: 1ffff11017207661
R10: dffffc0000000000 R11: ffffed1017207662 R12: 1ffffffff1800fc4
R13: dffffc0000000000 R14: 1ffffffff1817890 R15: 0000000000000000
default_idle_call+0x81/0xc0 kernel/sched/idle.c:112
cpuidle_idle_call kernel/sched/idle.c:202 [inline]
do_idle+0x3a1/0x650 kernel/sched/idle.c:326
cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:424
start_kernel+0x489/0x540 init/main.c:1153
secondary_startup_64_no_verify+0xb1/0xbb
</TASK>
----------------
Code disassembly (best guess):
0: b7 48 mov $0x48,%bh
2: 89 df mov %ebx,%edi
4: e8 36 b7 f4 f7 call 0xf7f4b73f
9: eb ad jmp 0xffffffb8
b: e8 df ab f6 ff call 0xfff6abef
10: 00 00 add %al,(%rax)
12: cc int3
13: cc int3
14: 00 00 add %al,(%rax)
16: cc int3
17: cc int3
18: 00 00 add %al,(%rax)
1a: cc int3
1b: cc int3
1c: 00 00 add %al,(%rax)
1e: cc int3
1f: 66 90 xchg %ax,%ax
21: 0f 00 2d e7 65 5c 00 verw 0x5c65e7(%rip) # 0x5c660f
28: fb sti
29: f4 hlt
* 2a: c3 ret <-- trapping instruction
2b: 0f 1f 40 00 nopl 0x0(%rax)
2f: 41 57 push %r15
31: 41 56 push %r14
33: 53 push %rbx
34: 49 be 00 00 00 00 00 movabs $0xdffffc0000000000,%r14
3b: fc ff df
3e: 65 gs
3f: 48 rex.W


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

syzbot

unread,
5:05 AM (14 hours ago) 5:05 AM
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: fb28aa725e05 Linux 6.1.180
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=16a4cdb9580000
kernel config: https://syzkaller.appspot.com/x/.config?x=872c04466179833f
dashboard link: https://syzkaller.appspot.com/bug?extid=b97587abb3b094010b9b
compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8
userspace arch: arm64

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/d420eb944682/disk-fb28aa72.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/affae450ab23/vmlinux-fb28aa72.xz
kernel image: https://storage.googleapis.com/syzbot-assets/b9e6919ed519/Image-fb28aa72.gz.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+b97587...@syzkaller.appspotmail.com

------------[ cut here ]------------
usb_ep_enable: ep129 (ep1in-bulk) has maxpacket 0
WARNING: CPU: 1 PID: 0 at drivers/usb/gadget/udc/core.c:125 usb_ep_enable+0x2a8/0x528 drivers/usb/gadget/udc/core.c:124
Modules linked in:
CPU: 1 PID: 0 Comm: swapper/1 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/02/2026
pstate: 624000c5 (nZCv daIF +PAN -UAO +TCO -DIT -SSBS BTYPE=--)
pc : usb_ep_enable+0x2a8/0x528 drivers/usb/gadget/udc/core.c:124
lr : usb_ep_enable+0x2a8/0x528 drivers/usb/gadget/udc/core.c:124
sp : ffff8000080178a0
x29: ffff8000080178a0 x28: 1fffe0001edd56d2 x27: 1fffe0001edd56e8
x26: dfff800000000000 x25: ffff0000f6eab690 x24: 1fffe0001a3be021
x23: ffff0000d1df00e8 x22: dfff800000000000 x21: 0000000000000081
x20: ffff0000f5bf393a x19: ffff0000d1df00e0 x18: 1fffe00033e7697e
x17: 0000000000000000 x16: ffff800011b90080 x15: 0000000000000000
x14: 0000000000000001 x13: 1fffe00033e769a3 x12: 0000000000000000
x11: ff00800008195f70 x10: 0000000000000000 x9 : 6d87719b9f9aca00
x8 : 6d87719b9f9aca00 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff800008017338 x4 : ffff800015464e80 x3 : ffff800008540904
x2 : 0000000000000001 x1 : 0000000000000103 x0 : 0000000000000000
Call trace:
usb_ep_enable+0x2a8/0x528 drivers/usb/gadget/udc/core.c:124
hidg_set_alt+0x128/0x820 drivers/usb/gadget/function/f_hid.c:822
set_config+0x668/0xdf8 drivers/usb/gadget/composite.c:986
composite_setup+0x1590/0x27f4 drivers/usb/gadget/composite.c:1893
configfs_composite_setup+0xc0/0x104 drivers/usb/gadget/configfs.c:1484
dummy_timer+0xd8c/0x2840 drivers/usb/gadget/udc/dummy_hcd.c:1936
__run_hrtimer kernel/time/hrtimer.c:1751 [inline]
__hrtimer_run_queues+0x444/0xc58 kernel/time/hrtimer.c:1815
hrtimer_run_softirq+0x164/0x408 kernel/time/hrtimer.c:1832
handle_softirqs+0x318/0xc90 kernel/softirq.c:596
__do_softirq+0x14/0x20 kernel/softirq.c:630
____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80
call_on_irq_stack+0x30/0x48 arch/arm64/kernel/entry.S:897
do_softirq_own_stack+0x20/0x2c arch/arm64/kernel/irq.c:85
invoke_softirq kernel/softirq.c:477 [inline]
__irq_exit_rcu+0x23c/0x430 kernel/softirq.c:679
irq_exit_rcu+0x14/0x84 kernel/softirq.c:691
__el1_irq arch/arm64/kernel/entry-common.c:472 [inline]
el1_interrupt+0x38/0x54 arch/arm64/kernel/entry-common.c:486
el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:491
el1h_64_irq+0x64/0x68 arch/arm64/kernel/entry.S:581
arch_local_irq_enable arch/arm64/include/asm/irqflags.h:35 [inline]
raw_spin_rq_unlock_irq kernel/sched/sched.h:1374 [inline]
finish_lock_switch+0xb8/0x1c8 kernel/sched/core.c:5005
finish_task_switch+0x120/0x658 kernel/sched/core.c:5123
context_switch kernel/sched/core.c:5249 [inline]
__schedule+0xdb8/0x1a6c kernel/sched/core.c:6563
schedule_idle+0x60/0xa4 kernel/sched/core.c:6667
do_idle+0x598/0x600 kernel/sched/idle.c:352
cpu_startup_entry+0x5c/0x74 kernel/sched/idle.c:422
secondary_start_kernel+0x190/0x1b4 arch/arm64/kernel/smp.c:265
__secondary_switched+0xb0/0xb4 arch/arm64/kernel/head.S:618
irq event stamp: 5788315
hardirqs last enabled at (5788314): [<ffff800011c77b24>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline]
hardirqs last enabled at (5788314): [<ffff800011c77b24>] _raw_spin_unlock_irqrestore+0x48/0xac kernel/locking/spinlock.c:194
hardirqs last disabled at (5788315): [<ffff800011c77948>] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline]
hardirqs last disabled at (5788315): [<ffff800011c77948>] _raw_spin_lock_irqsave+0xa4/0xb0 kernel/locking/spinlock.c:162
softirqs last enabled at (5788302): [<ffff8000081ae3bc>] softirq_handle_end kernel/softirq.c:439 [inline]
softirqs last enabled at (5788302): [<ffff8000081ae3bc>] handle_softirqs+0xb1c/0xc90 kernel/softirq.c:624
softirqs last disabled at (5788311): [<ffff800008020e6c>] __do_softirq+0x14/0x20 kernel/softirq.c:630
---[ end trace 0000000000000000 ]---
configfs-gadget.g1 gadget.0: Enable IN endpoint FAILED!

syzbot

unread,
3:06 PM (4 hours ago) 3:06 PM
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: a1153c0deb44 Linux 6.6.147
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=148ee5b9580000
kernel config: https://syzkaller.appspot.com/x/.config?x=f0bc3d90c30838b5
dashboard link: https://syzkaller.appspot.com/bug?extid=d851455dbf571fe8e225
compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=128a8649580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12b6ee32580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/9f646bfa1b52/disk-a1153c0d.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/a2aec2e8f0fd/vmlinux-a1153c0d.xz
kernel image: https://storage.googleapis.com/syzbot-assets/a7abe1f87405/bzImage-a1153c0d.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+d85145...@syzkaller.appspotmail.com

------------[ cut here ]------------
usb_ep_enable: ep129 (ep1in-bulk) has maxpacket 0
WARNING: CPU: 0 PID: 5154 at drivers/usb/gadget/udc/core.c:125 usb_ep_enable+0x263/0x440 drivers/usb/gadget/udc/core.c:124
Modules linked in:
CPU: 0 PID: 5154 Comm: kworker/0:3 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Workqueue: usb_hub_wq hub_event
RIP: 0010:usb_ep_enable+0x263/0x440 drivers/usb/gadget/udc/core.c:124
Code: 49 8b 0e 48 c7 c0 40 bd 7a 8b 49 c7 c0 60 bd 7a 8b 4c 0f 44 c0 48 c7 c7 00 bd 7a 8b 48 c7 c6 e7 8b a6 8c 89 ea e8 fd e0 97 fa <0f> 0b e9 e1 fe ff ff e8 e1 10 ce fa 49 bc 00 00 00 00 00 fc ff df
RSP: 0018:ffffc900000077b0 EFLAGS: 00010046
RAX: feee2053634aca00 RBX: ffff8881437480e0 RCX: ffff88807de61e00
RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000002
RBP: 0000000000000081 R08: ffff8880b8e28c53 R09: 1ffff110171c518a
R10: dffffc0000000000 R11: ffffed10171c518b R12: dffffc0000000000
R13: ffff88814374810d R14: ffff8881437480e8 R15: ffff88802ddc46ba
FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f43be1ef2f8 CR3: 000000002dd59000 CR4: 00000000003506f0
Call Trace:
<IRQ>
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+0x1309/0x3420 drivers/usb/gadget/udc/dummy_hcd.c:1935
__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
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xc0/0x120 kernel/locking/spinlock.c:194
Code: c7 44 24 20 00 00 00 00 9c 8f 44 24 20 f7 44 24 20 00 02 00 00 41 c6 04 07 f8 75 4b f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 <e8> 3b 6f c6 f6 65 8b 05 9c 3d 6d 75 85 c0 74 3c 48 c7 04 24 0e 36
RSP: 0018:ffffc900033b6fe0 EFLAGS: 00000206
RAX: dffffc0000000004 RBX: 0000000000000a06 RCX: feee2053634aca00
RDX: dffffc0000000000 RSI: ffffffff8acacbe0 RDI: 0000000000000001
RBP: ffffc900033b7070 R08: ffffffff911eb56f R09: 1ffffffff223d6ad
R10: dffffc0000000000 R11: fffffbfff223d6ae R12: dffffc0000000000
R13: dffffc0000000000 R14: ffff888143748000 R15: 1ffff92000676dfc
spin_unlock_irqrestore include/linux/spinlock.h:406 [inline]
dummy_urb_enqueue+0x587/0x780 drivers/usb/gadget/udc/dummy_hcd.c:1318
usb_hcd_submit_urb+0x318/0x1aa0 drivers/usb/core/hcd.c:1533
usb_start_wait_urb+0x140/0x580 drivers/usb/core/message.c:62
usb_internal_control_msg drivers/usb/core/message.c:117 [inline]
usb_control_msg+0x235/0x3e0 drivers/usb/core/message.c:167
usb_control_msg_send drivers/usb/core/message.c:226 [inline]
usb_set_configuration+0x12a8/0x2150 drivers/usb/core/message.c:2206
usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:238
usb_probe_device+0x12a/0x260 drivers/usb/core/driver.c:293
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x247/0xae0 drivers/base/dd.c:717
__driver_probe_device+0x1f5/0x390 drivers/base/dd.c:879
driver_probe_device+0x4f/0x420 drivers/base/dd.c:909
__device_attach_driver+0x2ca/0x510 drivers/base/dd.c:1037
bus_for_each_drv+0x252/0x2e0 drivers/base/bus.c:459
__device_attach+0x2c1/0x420 drivers/base/dd.c:1109
bus_probe_device+0x180/0x260 drivers/base/bus.c:580
device_add+0x87c/0xc40 drivers/base/core.c:3700
usb_new_device+0x995/0x1550 drivers/usb/core/hub.c:2660
hub_port_connect drivers/usb/core/hub.c:5529 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5669 [inline]
port_event drivers/usb/core/hub.c:5833 [inline]
hub_event+0x29d5/0x4a80 drivers/usb/core/hub.c:5915
process_one_work kernel/workqueue.c:2653 [inline]
process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2730
worker_thread+0xa5e/0xfe0 kernel/workqueue.c:2811
kthread+0x2fa/0x390 kernel/kthread.c:388
ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
</TASK>
----------------
Code disassembly (best guess):
0: c7 44 24 20 00 00 00 movl $0x0,0x20(%rsp)
7: 00
8: 9c pushf
9: 8f 44 24 20 pop 0x20(%rsp)
d: f7 44 24 20 00 02 00 testl $0x200,0x20(%rsp)
14: 00
15: 41 c6 04 07 f8 movb $0xf8,(%r15,%rax,1)
1a: 75 4b jne 0x67
1c: f7 c3 00 02 00 00 test $0x200,%ebx
22: 74 01 je 0x25
24: fb sti
25: bf 01 00 00 00 mov $0x1,%edi
* 2a: e8 3b 6f c6 f6 call 0xf6c66f6a <-- trapping instruction
2f: 65 8b 05 9c 3d 6d 75 mov %gs:0x756d3d9c(%rip),%eax # 0x756d3dd2
36: 85 c0 test %eax,%eax
38: 74 3c je 0x76
3a: 48 rex.W
3b: c7 .byte 0xc7
3c: 04 24 add $0x24,%al
3e: 0e (bad)
3f: 36 ss
Reply all
Reply to author
Forward
0 new messages