syzbot
general protection fault in trace_event_raw_event_udc_log_req
Status:
premoderation: reported on 2026/08/13 03:18
Reported-by: syzbot+044cbf5b13c76f4e4fad@syzkaller.appspotmail.com
First crash: 83d, last: 1h12m
Sample crash report:
RSP: 002b:00007fab28fd3ef0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fab2a950320 RCX: 00007fab2a59f7ab
RDX: 00007fab2a95034c RSI: 0000000040095505 RDI: 0000000000000003
RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000039
R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fab2a950530 R14: 0000000000000000 R15: 00007fab2a95034e
</TASK>
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 0 UID: 0 PID: 1007 Comm: syz.1.185 Not tainted syzkaller #0 c140e0e572a2730307a15c4db8c6234da3c6df21
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026
RIP: 0010:do_trace_event_raw_event_udc_log_req drivers/usb/gadget/udc/trace.h:242 [inline]
RIP: 0010:trace_event_raw_event_udc_log_req+0x1c1/0x6e0 drivers/usb/gadget/udc/trace.h:223
Code: 1c 3f 4c 89 f8 48 c1 e8 03 42 0f b6 04 30 84 c0 0f 85 ce 02 00 00 41 c6 07 00 48 8b 54 24 08 4c 8d 7a 08 4c 89 f8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 0f 85 c8 02 00 00 41 8b 1f 4d 8d 7c 24 0c 4c
RSP: 0018:ffffc90001747a60 EFLAGS: 00010002
RAX: 0000000000000001 RBX: 000000000000000b RCX: ffffffff83be4454
RDX: 0000000000000000 RSI: ffffffff866dde00 RDI: ffff888135136de4
RBP: ffffc90001747b58 R08: 75622d6e69327065 R09: 6b6c75622d6e6932
R10: dffffc0000000000 R11: ffffed1026a26dbe R12: ffff888135136da4
R13: ffffffff866dde00 R14: dffffc0000000000 R15: 0000000000000008
FS: 00007fab28fd66c0(0000) GS:ffff8881f6c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fab28fd4fe0 CR3: 0000000116de0000 CR4: 00000000003526b0
Call Trace:
<TASK>
trace_usb_ep_alloc_request drivers/usb/gadget/udc/trace.h:264 [inline]
usb_ep_alloc_request+0x16e/0x1c0 drivers/usb/gadget/udc/core.c:211
raw_ioctl_ep_enable drivers/usb/gadget/legacy/raw_gadget.c:891 [inline]
raw_ioctl+0x26f8/0x37a0 drivers/usb/gadget/legacy/raw_gadget.c:1319
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:906 [inline]
__se_sys_ioctl+0x123/0x1b0 fs/ioctl.c:892
__x64_sys_ioctl+0x7f/0xa0 fs/ioctl.c:892
x64_sys_call+0x1878/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:17
do_syscall_x64 arch/x86/entry/common.c:47 [inline]
do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7fab2a59f7ab
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:00007fab28fd3ef0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fab2a950320 RCX: 00007fab2a59f7ab
RDX: 00007fab2a95034c RSI: 0000000040095505 RDI: 0000000000000003
RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000039
R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fab2a950530 R14: 0000000000000000 R15: 00007fab2a95034e
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:do_trace_event_raw_event_udc_log_req drivers/usb/gadget/udc/trace.h:242 [inline]
RIP: 0010:trace_event_raw_event_udc_log_req+0x1c1/0x6e0 drivers/usb/gadget/udc/trace.h:223
Code: 1c 3f 4c 89 f8 48 c1 e8 03 42 0f b6 04 30 84 c0 0f 85 ce 02 00 00 41 c6 07 00 48 8b 54 24 08 4c 8d 7a 08 4c 89 f8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 0f 85 c8 02 00 00 41 8b 1f 4d 8d 7c 24 0c 4c
RSP: 0018:ffffc90001747a60 EFLAGS: 00010002
RAX: 0000000000000001 RBX: 000000000000000b RCX: ffffffff83be4454
RDX: 0000000000000000 RSI: ffffffff866dde00 RDI: ffff888135136de4
RBP: ffffc90001747b58 R08: 75622d6e69327065 R09: 6b6c75622d6e6932
R10: dffffc0000000000 R11: ffffed1026a26dbe R12: ffff888135136da4
R13: ffffffff866dde00 R14: dffffc0000000000 R15: 0000000000000008
FS: 00007fab28fd66c0(0000) GS:ffff8881f6c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fab28fd4fe0 CR3: 0000000116de0000 CR4: 00000000003526b0
----------------
Code disassembly (best guess):
0: 1c 3f sbb $0x3f,%al
2: 4c 89 f8 mov %r15,%rax
5: 48 c1 e8 03 shr $0x3,%rax
9: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax
e: 84 c0 test %al,%al
10: 0f 85 ce 02 00 00 jne 0x2e4
16: 41 c6 07 00 movb $0x0,(%r15)
1a: 48 8b 54 24 08 mov 0x8(%rsp),%rdx
1f: 4c 8d 7a 08 lea 0x8(%rdx),%r15
23: 4c 89 f8 mov %r15,%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 c8 02 00 00 jne 0x2ff
37: 41 8b 1f mov (%r15),%ebx
3a: 4d 8d 7c 24 0c lea 0xc(%r12),%r15
3f: 4c rex.WR
* Struck through repros no longer work on HEAD.