syzbot


general protection fault in cgroup_rstat_flush

Status: upstream: reported on 2025/05/09 19:04
Subsystems: cgroups
[Documentation on labels]
Reported-by: syzbot+175b931e69c9ad9e1945@syzkaller.appspotmail.com
First crash: 87d, last: 30d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [cgroups?] general protection fault in cgroup_rstat_flush 1 (2) 2025/05/09 19:56

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xe7ffed1c349d2324: 0000 [#1] SMP KASAN PTI
KASAN: maybe wild-memory-access in range [0x3fff88e1a4e91920-0x3fff88e1a4e91927]
CPU: 0 UID: 0 PID: 7566 Comm: syz.6.277 Not tainted 6.15.0-syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:cgroup_rstat_push_children kernel/cgroup/rstat.c:165 [inline]
RIP: 0010:cgroup_rstat_updated_list kernel/cgroup/rstat.c:245 [inline]
RIP: 0010:cgroup_rstat_flush+0x840/0x1e70 kernel/cgroup/rstat.c:325
Code: 70 74 08 48 89 df e8 9f ec 66 00 4c 8b 23 4b 8d 1c 3c 48 81 c3 a0 00 00 00 49 89 dd 49 c1 ed 03 48 b8 00 00 00 00 00 fc ff df <41> 80 7c 05 00 00 74 08 48 89 df e8 70 ec 66 00 48 8b 03 48 3b 44
RSP: 0018:ffffc90003b5f480 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 3fff88e1a4e91920 RCX: 1ffffffff1b2b984
RDX: ffffc9000dc60000 RSI: 00000000000096e9 RDI: ffff88802d46c5c1
RBP: ffffc90003b5f670 R08: ffffffff8f7e0b77 R09: 1ffffffff1efc16e
R10: dffffc0000000000 R11: fffffbfff1efc16f R12: ffff8881260f6000
R13: 07fff11c349d2324 R14: 0000000000000000 R15: 400000607ed9b880
FS:  00007f0bbb84c6c0(0000) GS:ffff8881260f6000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f15d2c74000 CR3: 000000004e3e2000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 zswap_shrinker_count+0x21b/0x530 mm/zswap.c:1305
 do_shrink_slab+0x8e/0x1110 mm/shrinker.c:384
 shrink_slab+0xd74/0x10d0 mm/shrinker.c:664
 drop_slab_node mm/vmscan.c:436 [inline]
 drop_slab+0x14e/0x290 mm/vmscan.c:454
 drop_caches_sysctl_handler+0xc7/0x170 fs/drop_caches.c:68
 proc_sys_call_handler+0x50c/0x7c0 fs/proc/proc_sysctl.c:601
 do_iter_readv_writev+0x518/0x6e0 fs/read_write.c:-1
 vfs_writev+0x306/0x9a0 fs/read_write.c:1055
 do_writev+0x14d/0x2d0 fs/read_write.c:1101
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f0bba98e969
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f0bbb84c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000014
RAX: ffffffffffffffda RBX: 00007f0bbabb6080 RCX: 00007f0bba98e969
RDX: 0000000000000001 RSI: 00002000000000c0 RDI: 0000000000000005
RBP: 00007f0bbaa10ab1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f0bbabb6080 R15: 00007ffeed8a4088
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:cgroup_rstat_push_children kernel/cgroup/rstat.c:165 [inline]
RIP: 0010:cgroup_rstat_updated_list kernel/cgroup/rstat.c:245 [inline]
RIP: 0010:cgroup_rstat_flush+0x840/0x1e70 kernel/cgroup/rstat.c:325
Code: 70 74 08 48 89 df e8 9f ec 66 00 4c 8b 23 4b 8d 1c 3c 48 81 c3 a0 00 00 00 49 89 dd 49 c1 ed 03 48 b8 00 00 00 00 00 fc ff df <41> 80 7c 05 00 00 74 08 48 89 df e8 70 ec 66 00 48 8b 03 48 3b 44
RSP: 0018:ffffc90003b5f480 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 3fff88e1a4e91920 RCX: 1ffffffff1b2b984
RDX: ffffc9000dc60000 RSI: 00000000000096e9 RDI: ffff88802d46c5c1
RBP: ffffc90003b5f670 R08: ffffffff8f7e0b77 R09: 1ffffffff1efc16e
R10: dffffc0000000000 R11: fffffbfff1efc16f R12: ffff8881260f6000
R13: 07fff11c349d2324 R14: 0000000000000000 R15: 400000607ed9b880
FS:  00007f0bbb84c6c0(0000) GS:ffff8881260f6000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f15d2c74000 CR3: 000000004e3e2000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	70 74                	jo     0x76
   2:	08 48 89             	or     %cl,-0x77(%rax)
   5:	df e8                	fucomip %st(0),%st
   7:	9f                   	lahf
   8:	ec                   	in     (%dx),%al
   9:	66 00 4c 8b 23       	data16 add %cl,0x23(%rbx,%rcx,4)
   e:	4b 8d 1c 3c          	lea    (%r12,%r15,1),%rbx
  12:	48 81 c3 a0 00 00 00 	add    $0xa0,%rbx
  19:	49 89 dd             	mov    %rbx,%r13
  1c:	49 c1 ed 03          	shr    $0x3,%r13
  20:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  27:	fc ff df
* 2a:	41 80 7c 05 00 00    	cmpb   $0x0,0x0(%r13,%rax,1) <-- trapping instruction
  30:	74 08                	je     0x3a
  32:	48 89 df             	mov    %rbx,%rdi
  35:	e8 70 ec 66 00       	call   0x66ecaa
  3a:	48 8b 03             	mov    (%rbx),%rax
  3d:	48                   	rex.W
  3e:	3b                   	.byte 0x3b
  3f:	44                   	rex.R

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/26 11:54 upstream 0ff41df1cb26 2d4582d0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in cgroup_rstat_flush
2025/05/09 19:04 upstream 9c69f8884904 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in cgroup_rstat_flush
2025/05/01 22:42 upstream 4f79eaa2ceac 51b137cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in cgroup_rstat_flush
2025/04/20 18:38 upstream 6fea5fabd332 2a20f901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in cgroup_rstat_flush
2025/04/16 23:37 upstream c62f4b82d571 a95239b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in cgroup_rstat_flush
2025/03/29 18:25 upstream 7d06015d936c d3999433 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in cgroup_rstat_flush
* Struck through repros no longer work on HEAD.