general protection fault in trace_event_raw_event_cgroup_rstat

Status: premoderation: reported on 2026/08/10 00:25
Reported-by: syzbot+0c67986ccf4c308d3984@syzkaller.appspotmail.com
First crash: 24d, last: 1d02h

Sample crash report:
RBP: 00007f3935635024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f3935826038 R14: 00007f3935825fa0 R15: 00007ffeae73a818
 </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: 4465 Comm: syz.7.1183 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_cgroup_rstat include/trace/events/cgroup.h:222 [inline]
RIP: 0010:trace_event_raw_event_cgroup_rstat+0x14b/0x3b0 include/trace/events/cgroup.h:207
Code: 00 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 78 56 62 00 44 89 64 24 18 48 8b 1b 48 83 c3 0c 48 89 d8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 0f 85 8c 01 00 00 44 8b 23 49 8d 5d 08 48 89
RSP: 0018:ffffc9000433fae0 EFLAGS: 00010003
RAX: 0000000000000001 RBX: 000000000000000c RCX: 0000000000080000
RDX: ffffc9000522f000 RSI: 000000000001007a RDI: 000000000001007b
RBP: ffffc9000433fbc8 R08: ffff888132939300 R09: 0000000000000002
R10: fffffffffffffff5 R11: 0000000000000002 R12: 0000000000000000
R13: ffff8881222637a4 R14: 1ffff92000867f60 R15: dffffc0000000000
FS:  00007f393641d6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f39363fafe0 CR3: 0000000134b14000 CR4: 00000000003526b0
Call Trace:
 <TASK>
 trace_cgroup_rstat_locked include/trace/events/cgroup.h:242 [inline]
 __cgroup_rstat_lock+0x11e/0x280 kernel/cgroup/rstat.c:292
 cgroup_rstat_flush+0x22/0x150 kernel/cgroup/rstat.c:351
 cgroup_rstat_exit+0x33/0x1e0 kernel/cgroup/rstat.c:409
 cgroup_create kernel/cgroup/cgroup.c:5872 [inline]
 cgroup_mkdir+0xd96/0x1600 kernel/cgroup/cgroup.c:5921
 kernfs_iop_mkdir+0x1bb/0x2d0 fs/kernfs/dir.c:1250
 vfs_mkdir+0x591/0x810 fs/namei.c:4265
 do_mkdirat+0x240/0x530 fs/namei.c:4288
 __do_sys_mkdirat fs/namei.c:4303 [inline]
 __se_sys_mkdirat fs/namei.c:4301 [inline]
 __x64_sys_mkdirat+0x8b/0xa0 fs/namei.c:4301
 x64_sys_call+0x2ba8/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:259
 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:0x7f393559e159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f393641d028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f3935825fa0 RCX: 00007f393559e159
RDX: 00000000000001ff RSI: 0000200000000040 RDI: ffffffffffffff9c
RBP: 00007f3935635024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f3935826038 R14: 00007f3935825fa0 R15: 00007ffeae73a818
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:do_trace_event_raw_event_cgroup_rstat include/trace/events/cgroup.h:222 [inline]
RIP: 0010:trace_event_raw_event_cgroup_rstat+0x14b/0x3b0 include/trace/events/cgroup.h:207
Code: 00 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 78 56 62 00 44 89 64 24 18 48 8b 1b 48 83 c3 0c 48 89 d8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 0f 85 8c 01 00 00 44 8b 23 49 8d 5d 08 48 89
RSP: 0018:ffffc9000433fae0 EFLAGS: 00010003
RAX: 0000000000000001 RBX: 000000000000000c RCX: 0000000000080000
RDX: ffffc9000522f000 RSI: 000000000001007a RDI: 000000000001007b
RBP: ffffc9000433fbc8 R08: ffff888132939300 R09: 0000000000000002
R10: fffffffffffffff5 R11: 0000000000000002 R12: 0000000000000000
R13: ffff8881222637a4 R14: 1ffff92000867f60 R15: dffffc0000000000
FS:  00007f393641d6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f39363fafe0 CR3: 0000000134b14000 CR4: 00000000003526b0
----------------
Code disassembly (best guess):
   0:	00 48 89             	add    %cl,-0x77(%rax)
   3:	d8 48 c1             	fmuls  -0x3f(%rax)
   6:	e8 03 42 80 3c       	call   0x3c80420e
   b:	38 00                	cmp    %al,(%rax)
   d:	74 08                	je     0x17
   f:	48 89 df             	mov    %rbx,%rdi
  12:	e8 78 56 62 00       	call   0x62568f
  17:	44 89 64 24 18       	mov    %r12d,0x18(%rsp)
  1c:	48 8b 1b             	mov    (%rbx),%rbx
  1f:	48 83 c3 0c          	add    $0xc,%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 0f b6 04 38       	movzbl (%rax,%r15,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 8c 01 00 00    	jne    0x1c3
  37:	44 8b 23             	mov    (%rbx),%r12d
  3a:	49 8d 5d 08          	lea    0x8(%r13),%rbx
  3e:	48                   	rex.W
  3f:	89                   	.byte 0x89

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/02 03:30 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_cgroup_rstat
2026/08/17 13:55 android16-6.12 b21af26d1628 905244d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust general protection fault in trace_event_raw_event_cgroup_rstat
2026/08/10 00:24 android16-6.12 309759bcbe6d 5d63f80b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust general protection fault in trace_event_raw_event_cgroup_rstat
* Struck through repros no longer work on HEAD.