syzbot
general protection fault in trace_event_raw_event_udc_log_req
Status:
premoderation: reported on 2026/09/04 05:20
Reported-by: syzbot+8e1b1f64c9af2ecd6261@syzkaller.appspotmail.com
First crash: 18d, last: 10d
Sample crash report:
RBP: 00007f798a6a6fd0 R08: 0000000000000001 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00002000000001c0 R14: 0000000000000002 R15: 0000000000000000
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 0 PID: 4248 Comm: syz.5.853 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:trace_event_raw_event_udc_log_req+0x1a8/0x6d0 drivers/usb/gadget/udc/trace.h:232
Code: 92 fe 49 8b 4d 00 be 00 02 00 00 4c 89 ff 48 c7 c2 a0 34 58 85 e8 d8 46 4f 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 f6 02 00 00 45 8b 7d 00 4d 8d 6c 24 0c
RSP: 0018:ffffc90000def960 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 1ffff920001bdf30 RCX: b10cdde516f32600
RDX: 0000000000000000 RSI: 000000000003bd21 RDI: 000000000003bd22
RBP: ffffc90000defa48 R08: ffff888132e91400 R09: 0000000000000012
R10: 0000000000000012 R11: 0000000000000002 R12: ffff88812ce6c3b0
R13: 0000000000000008 R14: dffffc0000000000 R15: ffff88812ce6c3f0
FS: 00007f798a6a86c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7bb9105060 CR3: 0000000111f34000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
trace_usb_ep_alloc_request drivers/usb/gadget/udc/trace.h:254 [inline]
usb_ep_alloc_request+0x12c/0x180 drivers/usb/gadget/udc/core.c:187
gadget_bind+0xe1/0x580 drivers/usb/gadget/legacy/raw_gadget.c:292
udc_bind_to_driver+0x24e/0x6d0 drivers/usb/gadget/udc/core.c:1573
usb_gadget_probe_driver+0x1fc/0x380 drivers/usb/gadget/udc/core.c:1639
raw_ioctl_run drivers/usb/gadget/legacy/raw_gadget.c:548 [inline]
raw_ioctl+0x114d/0x3040 drivers/usb/gadget/legacy/raw_gadget.c:1255
vfs_ioctl fs/ioctl.c:48 [inline]
__do_sys_ioctl fs/ioctl.c:753 [inline]
__se_sys_ioctl+0x121/0x1a0 fs/ioctl.c:739
__x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:739
do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f798bc4edeb
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:00007f798a6a5f00 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000009 RCX: 00007f798bc4edeb
RDX: 0000000000000000 RSI: 0000000000005501 RDI: 0000000000000009
RBP: 00007f798a6a6fd0 R08: 0000000000000001 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00002000000001c0 R14: 0000000000000002 R15: 0000000000000000
Modules linked in:
---[ end trace b19e3c727eecf4c2 ]---
RIP: 0010:trace_event_raw_event_udc_log_req+0x1a8/0x6d0 drivers/usb/gadget/udc/trace.h:232
Code: 92 fe 49 8b 4d 00 be 00 02 00 00 4c 89 ff 48 c7 c2 a0 34 58 85 e8 d8 46 4f 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 f6 02 00 00 45 8b 7d 00 4d 8d 6c 24 0c
RSP: 0018:ffffc90000def960 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 1ffff920001bdf30 RCX: b10cdde516f32600
RDX: 0000000000000000 RSI: 000000000003bd21 RDI: 000000000003bd22
RBP: ffffc90000defa48 R08: ffff888132e91400 R09: 0000000000000012
R10: 0000000000000012 R11: 0000000000000002 R12: ffff88812ce6c3b0
R13: 0000000000000008 R14: dffffc0000000000 R15: ffff88812ce6c3f0
FS: 00007f798a6a86c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7bb9105060 CR3: 0000000111f34000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 92 xchg %eax,%edx
1: fe 49 8b decb -0x75(%rcx)
4: 4d 00 be 00 02 00 00 rex.WRB add %r15b,0x200(%r14)
b: 4c 89 ff mov %r15,%rdi
e: 48 c7 c2 a0 34 58 85 mov $0xffffffff855834a0,%rdx
15: e8 d8 46 4f ff call 0xff4f46f2
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 f6 02 00 00 jne 0x32d
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.