syzbot


panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg

Status: fixed on 2022/08/31 00:27
Fix commit: 46e08207b58f cgroupfs: Handle hierachy changes across charge/uncharge.
First crash: 938d, last: 818d

Sample crash report:
panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: 0, proposed charge: -1

goroutine 2938 [running]:
panic({0x168cba0, 0xc000597e40})
	GOROOT/src/runtime/panic.go:941 +0x397 fp=0xc00196e5e8 sp=0xc00196e528 pc=0x438317
gvisor.dev/gvisor/pkg/sentry/fsimpl/cgroupfs.(*pidsController).Charge(0xc001257080, 0xc001edea80, 0x1876da7?, 0x0, 0xffffffffffffffff)
	pkg/sentry/fsimpl/cgroupfs/pids.go:207 +0x9bb fp=0xc00196e778 sp=0xc00196e5e8 pc=0x129c1db
gvisor.dev/gvisor/pkg/sentry/fsimpl/cgroupfs.(*cgroupInode).Charge(0xc001e5ce00, 0xc001593ec0?, 0xc00196e8b8?, {0x1876da7, 0x4}, 0x95390a?, 0x44a3b5?)
	pkg/sentry/fsimpl/cgroupfs/base.go:321 +0x19d fp=0xc00196e850 sp=0xc00196e778 pc=0x128d6fd
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).chargeLocked(0xc000ed4a80, 0xb7a?, {0x1876da7, 0x4}, 0x0?, 0x46bd2e?)
	pkg/sentry/kernel/task_cgroup.go:234 +0x10f fp=0xc00196e928 sp=0xc00196e850 pc=0xd25a0f
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).ChargeFor(0xc000ed4a80, 0x15051a0?, {0x1876da7, 0x4}, 0x0?, 0x0?)
	pkg/sentry/kernel/task_cgroup.go:245 +0xf8 fp=0xc00196e9f0 sp=0xc00196e928 pc=0xd25b98
gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskSet).newTask.func1()
	pkg/sentry/kernel/task_start.go:194 +0x58 fp=0xc00196ea68 sp=0xc00196e9f0 pc=0xd53738
gvisor.dev/gvisor/pkg/cleanup.clean(...)
	pkg/cleanup/cleanup.go:59
gvisor.dev/gvisor/pkg/cleanup.(*Cleanup).Clean(0xc00196eec0)
	pkg/cleanup/cleanup.go:44 +0x6d fp=0xc00196ea90 sp=0xc00196ea68 pc=0x884a0d
gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskSet).newTask.func2()
	pkg/sentry/kernel/task_start.go:180 +0x3a fp=0xc00196eab0 sp=0xc00196ea90 pc=0xd5381a
runtime.deferreturn()
	GOROOT/src/runtime/panic.go:436 +0x33 fp=0xc00196eaf0 sp=0xc00196eab0 pc=0x437433
gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskSet).newTask(0xc000418cb0, {0x1bcfad0, 0xc000ed4a80}, 0xc00196f398)
	pkg/sentry/kernel/task_start.go:211 +0x1194 fp=0xc00196eee8 sp=0xc00196eaf0 pc=0xd52a74
gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskSet).NewTask(0xc000ed4a80?, {0x1bcfad0, 0xc000ed4a80}, 0xc00196f398)
	pkg/sentry/kernel/task_start.go:127 +0xeb fp=0xc00196ef70 sp=0xc00196eee8 pc=0xd515cb
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Clone(0xc000ed4a80, 0xc00196f478)
	pkg/sentry/kernel/task_clone.go:224 +0x1da5 fp=0xc00196f460 sp=0xc00196ef70 pc=0xd27a85
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.clone(0x471077?, 0x3d0f00, 0x7f869e4633f0, 0x7f869e4639d0, 0x7f869e4639d0, 0x7f869e463700)
	pkg/sentry/syscalls/linux/sys_thread.go:208 +0xfc fp=0xc00196f500 sp=0xc00196f460 pc=0xe5563c
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Clone(0x1?, {{0x3d0f00}, {0x7f869e4633f0}, {0x7f869e4639d0}, {0x7f869e4639d0}, {0x7f869e463700}, {0x7f869e463700}})
	pkg/sentry/syscalls/linux/sys_clone_amd64.go:36 +0x4e fp=0xc00196f568 sp=0xc00196f500 pc=0xe1032e
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000ed4a80, 0x38, {{0x3d0f00}, {0x7f869e4633f0}, {0x7f869e4639d0}, {0x7f869e4639d0}, {0x7f869e463700}, {0x7f869e463700}})
	pkg/sentry/kernel/task_syscall.go:142 +0xa78 fp=0xc00196fa88 sp=0xc00196f568 pc=0xd567b8
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000ed4a80, 0x46f679?, {{0x3d0f00}, {0x7f869e4633f0}, {0x7f869e4639d0}, {0x7f869e4639d0}, {0x7f869e463700}, {0x7f869e463700}})
	pkg/sentry/kernel/task_syscall.go:322 +0x6a fp=0xc00196fb10 sp=0xc00196fa88 pc=0xd5848a
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000a98960?, 0x46fb2c?, {{0x3d0f00}, {0x7f869e4633f0}, {0x7f869e4639d0}, {0x7f869e4639d0}, {0x7f869e463700}, {0x7f869e463700}})
	pkg/sentry/kernel/task_syscall.go:282 +0x8f fp=0xc00196fb88 sp=0xc00196fb10 pc=0xd57f0f
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000ed4a80)
	pkg/sentry/kernel/task_syscall.go:257 +0x3e7 fp=0xc00196fc90 sp=0xc00196fb88 pc=0xd57b27
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc000ed4a80?, 0xc000ed4a80)
	pkg/sentry/kernel/task_run.go:253 +0x16a5 fp=0xc00196fec0 sp=0xc00196fc90 pc=0xd42f25
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000ed4a80, 0xe9)
	pkg/sentry/kernel/task_run.go:94 +0x354 fp=0xc00196ffb0 sp=0xc00196fec0 pc=0xd40f14
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1()
	pkg/sentry/kernel/task_start.go:370 +0x48 fp=0xc00196ffe0 sp=0xc00196ffb0 pc=0xd542c8
runtime.goexit()
	src/runtime/asm_amd64.s:1571 +0x1 fp=0xc00196ffe8 sp=0xc00196ffe0 pc=0x46df01
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:370 +0x1a8

Crashes (97):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/07/10 00:15 gvisor be6ffa78e4df b5765a15 .config console log report syz C ci-gvisor-ptrace-2-race panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/07/10 00:15 gvisor be6ffa78e4df b5765a15 .config console log report syz C ci-gvisor-ptrace-1-race panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/07/09 23:52 gvisor be6ffa78e4df b5765a15 .config console log report syz C ci-gvisor-ptrace-3 panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/07/09 23:42 gvisor 81414d79c38c 1434eec0 .config console log report syz C ci-gvisor-kvm panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/07/09 23:42 gvisor be6ffa78e4df b5765a15 .config console log report syz C ci-gvisor-ptrace-2 panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/07/09 23:42 gvisor be6ffa78e4df b5765a15 .config console log report syz C ci-gvisor-ptrace-1 panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/07/09 23:21 gvisor be6ffa78e4df b5765a15 .config console log report syz C ci-gvisor-ptrace-3-race panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/30 21:21 gvisor 0982a5e81db4 4a380809 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/29 07:15 gvisor 9a58a5162d8d 07177916 .config console log report info ci-gvisor-ptrace-3-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/27 07:26 gvisor 23b21af6d631 07177916 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/26 20:45 gvisor ccc78d58ed0e e5a303f1 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/26 09:22 gvisor 540c79c8cf7d 15195ea3 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/25 20:49 gvisor dc3a84baa523 e5fb9cf5 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/25 17:38 gvisor dc3a84baa523 e5fb9cf5 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/25 00:50 gvisor 00e0718041e4 514514f6 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/23 18:02 gvisor c3a1bb2fa735 cea8b0f7 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/23 05:06 gvisor c3a1bb2fa735 26a13b38 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/21 20:57 gvisor c3a1bb2fa735 26a13b38 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/19 18:09 gvisor c3a1bb2fa735 26a13b38 .config console log report info ci-gvisor-ptrace-3-race panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/18 09:15 gvisor 5d08a5981320 d58e263f .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/18 06:42 gvisor 5d08a5981320 a9409d47 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/16 14:41 gvisor 2bb73c7bd7dc 7a7cb304 .config console log report info ci-gvisor-ptrace-1-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/12 20:29 gvisor 004b4e727b30 402cd70d .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/12 17:44 gvisor 004b4e727b30 402cd70d .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/09 12:22 gvisor a963196f43de da700653 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/07 16:32 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/07 13:03 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-ptrace-1-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/07 03:00 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/06 20:09 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-ptrace-3-race panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/06 13:33 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/06 01:15 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/05 20:51 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/04 20:38 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/04 11:03 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/03 22:34 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/03 11:20 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/02 22:01 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/02 02:14 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/01 23:13 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/01 16:59 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/01 09:00 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-ptrace-2-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/08/01 05:13 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/07/31 18:11 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/07/28 12:01 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/07/26 13:39 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/07/25 12:17 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-ptrace-3-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/07/24 17:40 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/07/24 08:56 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/07/21 10:40 gvisor 84e56e8b50df 1434eec0 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/07/20 14:52 gvisor 84e56e8b50df 1434eec0 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/07/18 05:16 gvisor be6ffa78e4df b5765a15 .config console log report info ci-gvisor-ptrace-3-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/07/16 19:38 gvisor 84e56e8b50df 1434eec0 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/07/16 11:52 gvisor be6ffa78e4df b5765a15 .config console log report info ci-gvisor-ptrace-2-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/07/15 08:16 gvisor be6ffa78e4df b5765a15 .config console log report info ci-gvisor-ptrace-3-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/07/15 02:23 gvisor 84e56e8b50df 1434eec0 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/07/14 21:36 gvisor 84e56e8b50df 1434eec0 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/07/12 09:14 gvisor be6ffa78e4df b5765a15 .config console log report info ci-gvisor-ptrace-2-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/07/12 07:35 gvisor 84e56e8b50df 1434eec0 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/07/11 19:31 gvisor 84e56e8b50df 1434eec0 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/07/09 23:06 gvisor be6ffa78e4df b5765a15 .config console log report info ci-gvisor-ptrace-3-race panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
2022/05/03 14:48 gvisor ca016724dc56 2df221f6 .config console log report info ci-gvisor-ptrace-1-cover panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: NUM, proposed charg
* Struck through repros no longer work on HEAD.