syzbot
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: 15d, last: 8d10h
Sample crash report:
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:00007f18b64bb028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f18b5825fa0 RCX: 00007f18b559e0d9
RDX: 00000000000001ff RSI: 0000200000000000 RDI: ffffffffffffff9c
RBP: 00007f18b64bb090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007f18b5826038 R14: 00007f18b5825fa0 R15: 00007ffcab0978c8
</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: 1 UID: 0 PID: 2437 Comm: syz.5.695 Not tainted syzkaller #0 3c3170d5147e1ade2ce3347a3db15f56e1abada8
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:ffffc90010c3fae0 EFLAGS: 00010003
RAX: 0000000000000001 RBX: 000000000000000c RCX: ffff888114642600
RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000000
RBP: ffffc90010c3fbc8 R08: ffff888114642600 R09: 0000000000000002
R10: fffffffffffffff5 R11: 0000000000000000 R12: 0000000000000000
R13: ffff888132acec74 R14: 1ffff92002187f60 R15: dffffc0000000000
FS: 00007f18b64bb6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f18b5827dac CR3: 0000000117bca000 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: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
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:0x7f18b559e0d9
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:00007f18b64bb028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f18b5825fa0 RCX: 00007f18b559e0d9
RDX: 00000000000001ff RSI: 0000200000000000 RDI: ffffffffffffff9c
RBP: 00007f18b64bb090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007f18b5826038 R14: 00007f18b5825fa0 R15: 00007ffcab0978c8
</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:ffffc90010c3fae0 EFLAGS: 00010003
RAX: 0000000000000001 RBX: 000000000000000c RCX: ffff888114642600
RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000000
RBP: ffffc90010c3fbc8 R08: ffff888114642600 R09: 0000000000000002
R10: fffffffffffffff5 R11: 0000000000000000 R12: 0000000000000000
R13: ffff888132acec74 R14: 1ffff92002187f60 R15: dffffc0000000000
FS: 00007f18b64bb6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f18b5827dac CR3: 0000000117bca000 CR4: 00000000003526b0
----------------
Code disassembly (best guess):
0: ff c3 inc %ebx
2: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
9: 00 00 00
c: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
11: 48 89 f8 mov %rdi,%rax
14: 48 89 f7 mov %rsi,%rdi
17: 48 89 d6 mov %rdx,%rsi
1a: 48 89 ca mov %rcx,%rdx
1d: 4d 89 c2 mov %r8,%r10
20: 4d 89 c8 mov %r9,%r8
23: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9
28: 0f 05 syscall
* 2a: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction
30: 73 01 jae 0x33
32: c3 ret
33: 48 c7 c1 e8 ff ff ff mov $0xffffffffffffffe8,%rcx
3a: f7 d8 neg %eax
3c: 64 89 01 mov %eax,%fs:(%rcx)
3f: 48 rex.W
* Struck through repros no longer work on HEAD.