syzbot


general protection fault in cgroup_rstat_flush_locked
Status: auto-closed as invalid on 2022/03/14 20:31
Reported-by: syzbot+363f98e1c445bd838351@syzkaller.appspotmail.com
First crash: 373d, last: 192d

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc000000006f: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000378-0x000000000000037f]
CPU: 1 PID: 2934 Comm: kworker/1:3 Not tainted 5.15.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: cgroup_destroy css_release_work_fn
RIP: 0010:cgroup_rstat_cpu kernel/cgroup/rstat.c:13 [inline]
RIP: 0010:cgroup_rstat_cpu_pop_updated kernel/cgroup/rstat.c:106 [inline]
RIP: 0010:cgroup_rstat_flush_locked+0x17f/0xdc0 kernel/cgroup/rstat.c:161
Code: 01 e8 48 85 f6 49 89 f7 48 89 44 24 08 75 08 e9 73 06 00 00 4d 89 e7 e8 af 20 06 00 4d 8d b7 78 03 00 00 4c 89 f0 48 c1 e8 03 <42> 80 3c 28 00 0f 85 87 08 00 00 49 8b 9f 78 03 00 00 48 83 3c 24
RSP: 0018:ffffc9000afefc20 EFLAGS: 00010006
RAX: 000000000000006f RBX: ffffe8ffffc73a20 RCX: 0000000000000000
RDX: ffff8880237cba00 RSI: ffffffff8171a5c1 RDI: ffffe8ffffc73a50
RBP: ffff8880b9c00000 R08: 0000000000000001 R09: 0000000000000003
R10: fffff520015fdf76 R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000378 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1583084030 CR3: 0000000042925000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 cgroup_rstat_flush+0x38/0x50 kernel/cgroup/rstat.c:203
 css_release_work_fn+0x440/0x920 kernel/cgroup/cgroup.c:5145
 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298
 worker_thread+0x658/0x11f0 kernel/workqueue.c:2445
 kthread+0x405/0x4f0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
Modules linked in:
---[ end trace 90d7582f56a699a3 ]---
RIP: 0010:cgroup_rstat_cpu kernel/cgroup/rstat.c:13 [inline]
RIP: 0010:cgroup_rstat_cpu_pop_updated kernel/cgroup/rstat.c:106 [inline]
RIP: 0010:cgroup_rstat_flush_locked+0x17f/0xdc0 kernel/cgroup/rstat.c:161
Code: 01 e8 48 85 f6 49 89 f7 48 89 44 24 08 75 08 e9 73 06 00 00 4d 89 e7 e8 af 20 06 00 4d 8d b7 78 03 00 00 4c 89 f0 48 c1 e8 03 <42> 80 3c 28 00 0f 85 87 08 00 00 49 8b 9f 78 03 00 00 48 83 3c 24
RSP: 0018:ffffc9000afefc20 EFLAGS: 00010006
RAX: 000000000000006f RBX: ffffe8ffffc73a20 RCX: 0000000000000000
RDX: ffff8880237cba00 RSI: ffffffff8171a5c1 RDI: ffffe8ffffc73a50
RBP: ffff8880b9c00000 R08: 0000000000000001 R09: 0000000000000003
R10: fffff520015fdf76 R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000378 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1583084030 CR3: 0000000042925000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	01 e8                	add    %ebp,%eax
   2:	48 85 f6             	test   %rsi,%rsi
   5:	49 89 f7             	mov    %rsi,%r15
   8:	48 89 44 24 08       	mov    %rax,0x8(%rsp)
   d:	75 08                	jne    0x17
   f:	e9 73 06 00 00       	jmpq   0x687
  14:	4d 89 e7             	mov    %r12,%r15
  17:	e8 af 20 06 00       	callq  0x620cb
  1c:	4d 8d b7 78 03 00 00 	lea    0x378(%r15),%r14
  23:	4c 89 f0             	mov    %r14,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1) <-- trapping instruction
  2f:	0f 85 87 08 00 00    	jne    0x8bc
  35:	49 8b 9f 78 03 00 00 	mov    0x378(%r15),%rbx
  3c:	48                   	rex.W
  3d:	83                   	.byte 0x83
  3e:	3c 24                	cmp    $0x24,%al

Crashes (36):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-bpf-kasan-gce 2021/11/12 09:05 bpf 5833291ab6de 75b04091 .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-kasan-gce 2021/09/30 15:10 bpf 79e3445b38e0 be530f6c .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-kasan-gce 2021/08/27 12:15 bpf 5b029a32cfe4 b318694d .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-net-this-kasan-gce 2021/07/17 03:23 net 20192d9c9f6a f115ae98 .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-kasan-gce 2021/06/07 08:09 bpf 1a8024239dac 500c2339 .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-kasan-gce 2021/05/20 10:18 bpf d0c0fe10ce6d a343ba6b .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/11/14 20:30 bpf-next 325d956d6717 83f5c9b5 .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/11/05 22:17 bpf-next be2f2d1680df 4c1be0be .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/10/30 13:14 bpf-next f48ad69097fe 098b5d53 .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/10/30 11:43 bpf-next f48ad69097fe 098b5d53 .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/10/18 21:50 bpf-next 431bfb9ee3e2 0c5d9412 .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/10/10 16:15 bpf-next 5319255b8df9 838e7e2c .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/10/04 15:41 bpf-next 0693b27644f0 ce697b49 .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/09/25 14:37 bpf-next 091037fb770e 8cac236e .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/09/22 06:05 bpf-next cf8980a36235 169724fe .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/09/07 20:44 bpf-next 27151f177827 6ca60148 .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/08/31 08:45 bpf-next fca35b11e18a 8f58a0ef .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/08/30 12:47 bpf-next 47bb27a20d6e be2c130d .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-net-kasan-gce 2021/08/30 11:03 net-next eaf2aaec0be4 be2c130d .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/08/30 08:34 bpf-next 47bb27a20d6e be2c130d .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-net-kasan-gce 2021/08/18 23:01 net-next 3349d3625d62 a2fe1cb5 .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/08/10 00:17 bpf-next c83ae15dc947 6972b106 .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/07/31 21:53 bpf-next ab0720ce227c 6c236867 .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/07/26 14:53 bpf-next 2b7e9f25e590 fd511809 .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/07/20 06:13 bpf-next 08f71a1e39a1 bc48c9ab .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/07/15 18:01 bpf-next cf2c6f08632f b9a2f64e .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/07/10 20:38 bpf-next eff94154cc1a 8f5a7b8c .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/07/07 12:55 bpf-next 5e437416ff66 4846d5c1 .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/07/03 14:08 bpf-next dbe69e433722 55aa55c2 .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/06/04 09:32 bpf-next 56b8b7f9533b 0740de69 .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/06/04 03:08 bpf-next 56b8b7f9533b 0740de69 .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/06/02 02:37 bpf-next 05924717ac70 032639db .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/06/01 00:36 bpf-next e8e0f0f48478 032639db .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/05/26 05:09 bpf-next a720a2a0ad6c 93d3a9f6 .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/05/24 03:05 bpf-next a49e72b3bda7 3c7fef33 .config log report info general protection fault in cgroup_rstat_flush_locked
ci-upstream-bpf-next-kasan-gce 2021/05/18 13:38 bpf-next f18ba26da88a a343ba6b .config log report info general protection fault in cgroup_rstat_flush_locked