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: 1d07h, last: 1d07h

Sample crash report:
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: 1356 Comm: syz.3.306 Not tainted syzkaller #0 c4896d72d1fb51cdc6291d08376a37fd8080d7bb
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 68 40 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:ffffc90010d377e0 EFLAGS: 00010003
RAX: 0000000000000001 RBX: 000000000000000c RCX: ffff88810d7e3900
RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000000
RBP: ffffc90010d378c8 R08: ffff88810d7e3900 R09: 0000000000000002
R10: fffffffffffffff5 R11: 0000000000000000 R12: 0000000000000000
R13: ffff888121e8ae2c R14: 1ffff920021a6f00 R15: dffffc0000000000
FS:  00007f9bdbafd6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9bdbadcd58 CR3: 000000011d490000 CR4: 00000000003526b0
DR0: 0000000000000007 DR1: 000000affffffffd DR2: 4000000000010022
DR3: 0000000000000005 DR6: 00000000ffff0ff0 DR7: 0000000000000400
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:5882 [inline]
 cgroup_mkdir+0xd96/0x1600 kernel/cgroup/cgroup.c:5931
 kernfs_iop_mkdir+0x1be/0x2d0 fs/kernfs/dir.c:1250
 vfs_mkdir+0x591/0x810 fs/namei.c:4265
 open_or_create_special_dir+0xf1/0x200 fs/incfs/vfs.c:468
 incfs_mount_fs+0x433/0x970 fs/incfs/vfs.c:1863
 legacy_get_tree+0x106/0x1b0 fs/fs_context.c:662
 vfs_get_tree+0x9e/0x290 fs/super.c:1820
 do_new_mount+0x251/0xb40 fs/namespace.c:3567
 path_mount+0x66a/0xff0 fs/namespace.c:3894
 do_mount fs/namespace.c:3907 [inline]
 __do_sys_mount fs/namespace.c:4117 [inline]
 __se_sys_mount+0x2bf/0x480 fs/namespace.c:4094
 __x64_sys_mount+0xc3/0xf0 fs/namespace.c:4094
 x64_sys_call+0x2021/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:166
 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:0x7f9bdab9e0d9
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:00007f9bdbafd028 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f9bdae25fa0 RCX: 00007f9bdab9e0d9
RDX: 0000200000000080 RSI: 00002000000000c0 RDI: 0000200000000140
RBP: 00007f9bdac35024 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000120809c R11: 0000000000000246 R12: 0000000000000000
R13: 00007f9bdae26038 R14: 00007f9bdae25fa0 R15: 00007fff0c113e38
 </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 68 40 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:ffffc90010d377e0 EFLAGS: 00010003
RAX: 0000000000000001 RBX: 000000000000000c RCX: ffff88810d7e3900
RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000000
RBP: ffffc90010d378c8 R08: ffff88810d7e3900 R09: 0000000000000002
R10: fffffffffffffff5 R11: 0000000000000000 R12: 0000000000000000
R13: ffff888121e8ae2c R14: 1ffff920021a6f00 R15: dffffc0000000000
FS:  00007f9bdbafd6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9bdbadcd58 CR3: 000000011d490000 CR4: 00000000003526b0
DR0: 0000000000000007 DR1: 000000affffffffd DR2: 4000000000010022
DR3: 0000000000000005 DR6: 00000000ffff0ff0 DR7: 0000000000000400
----------------
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 68 40 62 00       	call   0x62407f
  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 (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.