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: 20d, last: 4h43m
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: slab-use-after-free Read in trace_event_raw_event_udc_log_req usb 19 1 29d 26d 21/29 upstream: reported on 2026/08/06 15:27

Sample crash report:
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:00007f9e5501df00 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f9e5419ddeb
RDX: 0000000000000000 RSI: 0000000000005501 RDI: 0000000000000005
RBP: 00007f9e5501efd0 R08: 0000000000000001 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000200000000300 R14: 0000000000000000 R15: 0000000000000000
 </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: 3195 Comm: syz.0.1022 Not tainted syzkaller #0 018ff8b15f97deb4d6c6217ad3b2c61971603935
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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:ffffc90007b8f680 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000004 RCX: 0000000000000065
RDX: 0000000000000000 RSI: ffffffff866d72a0 RDI: ffff88811d00b7d8
RBP: ffffc90007b8f778 R08: 0000000000000070 R09: 0000000000000030
R10: dffffc0000000000 R11: ffffed1023a016fc R12: ffff88811d00b798
R13: ffffffff866d72a0 R14: dffffc0000000000 R15: 0000000000000008
FS:  00007f9e550206c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2f51bff8 CR3: 000000011c13a000 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:202
 gadget_bind+0xe5/0x590 drivers/usb/gadget/legacy/raw_gadget.c:294
 gadget_bind_driver+0x304/0x9c0 drivers/usb/gadget/udc/core.c:1641
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x2e4/0x8b0 drivers/base/dd.c:657
 __driver_probe_device+0x193/0x280 drivers/base/dd.c:799
 driver_probe_device+0x54/0x3f0 drivers/base/dd.c:829
 __driver_attach+0x422/0x5e0 drivers/base/dd.c:1215
 bus_for_each_dev+0x246/0x2d0 drivers/base/bus.c:370
 driver_attach+0x46/0x50 drivers/base/dd.c:1233
 bus_add_driver+0x393/0x730 drivers/base/bus.c:675
 driver_register+0x2b7/0x3c0 drivers/base/driver.c:246
 usb_gadget_register_driver_owner+0xfc/0x270 drivers/usb/gadget/udc/core.c:1731
 raw_ioctl_run drivers/usb/gadget/legacy/raw_gadget.c:596 [inline]
 raw_ioctl+0x144c/0x37a0 drivers/usb/gadget/legacy/raw_gadget.c:1307
 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:0x7f9e5419ddeb
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:00007f9e5501df00 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f9e5419ddeb
RDX: 0000000000000000 RSI: 0000000000005501 RDI: 0000000000000005
RBP: 00007f9e5501efd0 R08: 0000000000000001 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000200000000300 R14: 0000000000000000 R15: 0000000000000000
 </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:ffffc90007b8f680 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000004 RCX: 0000000000000065
RDX: 0000000000000000 RSI: ffffffff866d72a0 RDI: ffff88811d00b7d8
RBP: ffffc90007b8f778 R08: 0000000000000070 R09: 0000000000000030
R10: dffffc0000000000 R11: ffffed1023a016fc R12: ffff88811d00b798
R13: ffffffff866d72a0 R14: dffffc0000000000 R15: 0000000000000008
FS:  00007f9e550206c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2f51bff8 CR3: 000000011c13a000 CR4: 00000000003526b0
----------------
Code disassembly (best guess):
   0:	00 48 89             	add    %cl,-0x77(%rax)
   3:	44 24 18             	rex.R and $0x18,%al
   6:	31 c0                	xor    %eax,%eax
   8:	48 8d 44 24 60       	lea    0x60(%rsp),%rax
   d:	c7 04 24 10 00 00 00 	movl   $0x10,(%rsp)
  14:	48 89 44 24 08       	mov    %rax,0x8(%rsp)
  19:	48 8d 44 24 20       	lea    0x20(%rsp),%rax
  1e:	48 89 44 24 10       	mov    %rax,0x10(%rsp)
  23:	b8 10 00 00 00       	mov    $0x10,%eax
  28:	0f 05                	syscall
* 2a:	89 c2                	mov    %eax,%edx <-- trapping instruction
  2c:	3d 00 f0 ff ff       	cmp    $0xfffff000,%eax
  31:	77 1c                	ja     0x4f
  33:	48 8b 44 24 18       	mov    0x18(%rsp),%rax
  38:	64                   	fs
  39:	48                   	rex.W
  3a:	2b                   	.byte 0x2b
  3b:	04 25                	add    $0x25,%al
  3d:	28 00                	sub    %al,(%rax)

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/02 01:51 android16-6.12 97fb1ec747d3 587f6b29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust general protection fault in trace_event_raw_event_udc_log_req
2026/08/31 23:06 android16-6.12 be43d38e0381 316d9396 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust general protection fault in trace_event_raw_event_udc_log_req
2026/08/13 03:18 android16-6.12 56824e33c0c9 359b2492 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust general protection fault in trace_event_raw_event_udc_log_req
* Struck through repros no longer work on HEAD.