syzbot
general protection fault in trace_event_raw_event_udc_log_req
Status:
premoderation: reported syz repro on 2026/11/19 04:31
Reported-by: syzbot+4a8a8121436f8f86cd2e@syzkaller.appspotmail.com
First crash: 9d10h, last: 8h39m
Sample crash report:
RDX: 00007fce4d9fe34c RSI: 0000000040095505 RDI: 0000000000000004
RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000039
R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fce4d9fe530 R14: 0000000000000000 R15: 00007fce4d9fe34e
</TASK>
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 1 PID: 383 Comm: syz.2.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:trace_event_raw_event_udc_log_req+0x1a2/0x6c0 drivers/usb/gadget/udc/trace.h:232
Code: 7b fe 49 8b 4d 00 be 00 02 00 00 4c 89 ff 48 c7 c2 00 ae 7c 85 e8 fe c6 44 ff 48 8b 54 24 10 4c 8d 6a 08 4c 89 e8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 0f 85 f2 02 00 00 45 8b 7d 00 4d 8d 6c 24 0c
RSP: 0018:ffffc90000b67a40 EFLAGS: 00010002
RAX: 0000000000000001 RBX: 1ffff9200016cf4c RCX: 4557379b90125300
RDX: 0000000000000000 RSI: 0000000000000200 RDI: 0000000000000000
RBP: ffffc90000b67b38 R08: ffff888117fb1400 R09: 0000000000000012
R10: 0000000000000012 R11: 0000000000000000 R12: ffff88810d10a7c8
R13: 0000000000000008 R14: dffffc0000000000 R15: ffff88810d10a808
FS: 000055555ac46500(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b34524220 CR3: 0000000119e30000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
trace_usb_ep_alloc_request drivers/usb/gadget/udc/trace.h:254 [inline]
usb_ep_alloc_request+0x151/0x1a0 drivers/usb/gadget/udc/core.c:196
raw_ioctl_ep_enable drivers/usb/gadget/legacy/raw_gadget.c:843 [inline]
raw_ioctl+0x24c9/0x3040 drivers/usb/gadget/legacy/raw_gadget.c:1268
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:874 [inline]
__se_sys_ioctl+0x121/0x1a0 fs/ioctl.c:860
__x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:860
x64_sys_call+0x2f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:17
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:0x7fce4d6477eb
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:00007ffc21e9c280 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fce4d9fe320 RCX: 00007fce4d6477eb
RDX: 00007fce4d9fe34c RSI: 0000000040095505 RDI: 0000000000000004
RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000039
R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fce4d9fe530 R14: 0000000000000000 R15: 00007fce4d9fe34e
</TASK>
Modules linked in:
---[ end trace 8cfec22043186021 ]---
RIP: 0010:trace_event_raw_event_udc_log_req+0x1a2/0x6c0 drivers/usb/gadget/udc/trace.h:232
Code: 7b fe 49 8b 4d 00 be 00 02 00 00 4c 89 ff 48 c7 c2 00 ae 7c 85 e8 fe c6 44 ff 48 8b 54 24 10 4c 8d 6a 08 4c 89 e8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 0f 85 f2 02 00 00 45 8b 7d 00 4d 8d 6c 24 0c
RSP: 0018:ffffc90000b67a40 EFLAGS: 00010002
RAX: 0000000000000001 RBX: 1ffff9200016cf4c RCX: 4557379b90125300
RDX: 0000000000000000 RSI: 0000000000000200 RDI: 0000000000000000
RBP: ffffc90000b67b38 R08: ffff888117fb1400 R09: 0000000000000012
R10: 0000000000000012 R11: 0000000000000000 R12: ffff88810d10a7c8
R13: 0000000000000008 R14: dffffc0000000000 R15: ffff88810d10a808
FS: 000055555ac46500(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b34524220 CR3: 0000000119e30000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 7b fe jnp 0x0
2: 49 8b 4d 00 mov 0x0(%r13),%rcx
6: be 00 02 00 00 mov $0x200,%esi
b: 4c 89 ff mov %r15,%rdi
e: 48 c7 c2 00 ae 7c 85 mov $0xffffffff857cae00,%rdx
15: e8 fe c6 44 ff call 0xff44c718
1a: 48 8b 54 24 10 mov 0x10(%rsp),%rdx
1f: 4c 8d 6a 08 lea 0x8(%rdx),%r13
23: 4c 89 e8 mov %r13,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax <-- trapping instruction
2f: 84 c0 test %al,%al
31: 0f 85 f2 02 00 00 jne 0x329
37: 45 8b 7d 00 mov 0x0(%r13),%r15d
3b: 4d 8d 6c 24 0c lea 0xc(%r12),%r13
* Struck through repros no longer work on HEAD.