syzbot
general protection fault in trace_event_raw_event_udc_log_req
Status:
premoderation: reported on 2026/11/19 04:31
Reported-by: syzbot+4a8a8121436f8f86cd2e@syzkaller.appspotmail.com
First crash: 4h10m, last: 4h10m
Sample crash report:
RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe57529a950 R14: 0000000000000000 R15: 00007fe57529a76e
</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: 5607 Comm: syz.1.1429 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: 7c fe 49 8b 4d 00 be 00 02 00 00 4c 89 ff 48 c7 c2 e0 9c 7c 85 e8 9e e0 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:ffffc90000e07a40 EFLAGS: 00010002
RAX: 0000000000000001 RBX: 1ffff920001c0f4c RCX: 5df1867d3a9b8200
RDX: 0000000000000000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc90000e07b38 R08: ffff888123a5d000 R09: 0000000000000012
R10: 0000000000000012 R11: 0000000000000002 R12: ffff8881269fab78
R13: 0000000000000008 R14: dffffc0000000000 R15: ffff8881269fabb8
FS: 00007fe5739416c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000010000 CR3: 000000012e5cd000 CR4: 00000000003506a0
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:0x7fe574ef31eb
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:00007fe57393eef0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fe57529a320 RCX: 00007fe574ef31eb
RDX: 00007fe57529a76c RSI: 0000000040095505 RDI: 0000000000000003
RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe57529a950 R14: 0000000000000000 R15: 00007fe57529a76e
</TASK>
Modules linked in:
---[ end trace b0fa388cfb1d5785 ]---
RIP: 0010:trace_event_raw_event_udc_log_req+0x1a2/0x6c0 drivers/usb/gadget/udc/trace.h:232
Code: 7c fe 49 8b 4d 00 be 00 02 00 00 4c 89 ff 48 c7 c2 e0 9c 7c 85 e8 9e e0 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:ffffc90000e07a40 EFLAGS: 00010002
RAX: 0000000000000001 RBX: 1ffff920001c0f4c RCX: 5df1867d3a9b8200
RDX: 0000000000000000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc90000e07b38 R08: ffff888123a5d000 R09: 0000000000000012
R10: 0000000000000012 R11: 0000000000000002 R12: ffff8881269fab78
R13: 0000000000000008 R14: dffffc0000000000 R15: ffff8881269fabb8
FS: 00007fe5739416c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000010000 CR3: 000000012e5cd000 CR4: 00000000003506a0
----------------
Code disassembly (best guess):
0: 7c fe jl 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 e0 9c 7c 85 mov $0xffffffff857c9ce0,%rdx
15: e8 9e e0 44 ff call 0xff44e0b8
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.