panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: 0, proposed charge: -1 goroutine 3767584 [running]: panic({0x168cba0, 0xc0083fd440}) GOROOT/src/runtime/panic.go:941 +0x397 fp=0xc00a15c5e8 sp=0xc00a15c528 pc=0x438317 gvisor.dev/gvisor/pkg/sentry/fsimpl/cgroupfs.(*pidsController).Charge(0xc0061066c0, 0xc007c03500, 0x1876da7?, 0x0, 0xffffffffffffffff) pkg/sentry/fsimpl/cgroupfs/pids.go:207 +0x9bb fp=0xc00a15c778 sp=0xc00a15c5e8 pc=0x129c1db gvisor.dev/gvisor/pkg/sentry/fsimpl/cgroupfs.(*cgroupInode).Charge(0xc00450a380, 0xc004aeec60?, 0xc00a15c8b8?, {0x1876da7, 0x4}, 0x95390a?, 0x44a3b5?) pkg/sentry/fsimpl/cgroupfs/base.go:321 +0x19d fp=0xc00a15c850 sp=0xc00a15c778 pc=0x128d6fd gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).chargeLocked(0xc00419a000, 0x397d20?, {0x1876da7, 0x4}, 0x0?, 0x95664f?) pkg/sentry/kernel/task_cgroup.go:234 +0x10f fp=0xc00a15c928 sp=0xc00a15c850 pc=0xd25a0f gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).ChargeFor(0xc00419a000, 0x15051a0?, {0x1876da7, 0x4}, 0x0?, 0x0?) pkg/sentry/kernel/task_cgroup.go:245 +0xf8 fp=0xc00a15c9f0 sp=0xc00a15c928 pc=0xd25b98 gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskSet).newTask.func1() pkg/sentry/kernel/task_start.go:194 +0x58 fp=0xc00a15ca68 sp=0xc00a15c9f0 pc=0xd53738 gvisor.dev/gvisor/pkg/cleanup.clean(...) pkg/cleanup/cleanup.go:59 gvisor.dev/gvisor/pkg/cleanup.(*Cleanup).Clean(0xc00a15cec0) pkg/cleanup/cleanup.go:44 +0x6d fp=0xc00a15ca90 sp=0xc00a15ca68 pc=0x884a0d gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskSet).newTask.func2() pkg/sentry/kernel/task_start.go:180 +0x3a fp=0xc00a15cab0 sp=0xc00a15ca90 pc=0xd5381a runtime.deferreturn() GOROOT/src/runtime/panic.go:436 +0x33 fp=0xc00a15caf0 sp=0xc00a15cab0 pc=0x437433 gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskSet).newTask(0xc000379ab0, {0x1bcfad0, 0xc00419a000}, 0xc00a15d398) pkg/sentry/kernel/task_start.go:211 +0x1194 fp=0xc00a15cee8 sp=0xc00a15caf0 pc=0xd52a74 gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskSet).NewTask(0xc00419a000?, {0x1bcfad0, 0xc00419a000}, 0xc00a15d398) pkg/sentry/kernel/task_start.go:127 +0xeb fp=0xc00a15cf70 sp=0xc00a15cee8 pc=0xd515cb gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Clone(0xc00419a000, 0xc00a15d478) pkg/sentry/kernel/task_clone.go:224 +0x1da5 fp=0xc00a15d460 sp=0xc00a15cf70 pc=0xd27a85 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.clone(0x471077?, 0x3d0f00, 0x7f5ce00ca2f0, 0x7f5ce00ca9d0, 0x7f5ce00ca9d0, 0x7f5ce00ca700) pkg/sentry/syscalls/linux/sys_thread.go:208 +0xfc fp=0xc00a15d500 sp=0xc00a15d460 pc=0xe5563c gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Clone(0x1?, {{0x3d0f00}, {0x7f5ce00ca2f0}, {0x7f5ce00ca9d0}, {0x7f5ce00ca9d0}, {0x7f5ce00ca700}, {0x7f5ce00ca700}}) pkg/sentry/syscalls/linux/sys_clone_amd64.go:36 +0x4e fp=0xc00a15d568 sp=0xc00a15d500 pc=0xe1032e gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc00419a000, 0x38, {{0x3d0f00}, {0x7f5ce00ca2f0}, {0x7f5ce00ca9d0}, {0x7f5ce00ca9d0}, {0x7f5ce00ca700}, {0x7f5ce00ca700}}) pkg/sentry/kernel/task_syscall.go:142 +0xa78 fp=0xc00a15da88 sp=0xc00a15d568 pc=0xd567b8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc00419a000, 0x46f679?, {{0x3d0f00}, {0x7f5ce00ca2f0}, {0x7f5ce00ca9d0}, {0x7f5ce00ca9d0}, {0x7f5ce00ca700}, {0x7f5ce00ca700}}) pkg/sentry/kernel/task_syscall.go:322 +0x6a fp=0xc00a15db10 sp=0xc00a15da88 pc=0xd5848a gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc006b3d590?, 0x46fb2c?, {{0x3d0f00}, {0x7f5ce00ca2f0}, {0x7f5ce00ca9d0}, {0x7f5ce00ca9d0}, {0x7f5ce00ca700}, {0x7f5ce00ca700}}) pkg/sentry/kernel/task_syscall.go:282 +0x8f fp=0xc00a15db88 sp=0xc00a15db10 pc=0xd57f0f gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc00419a000) pkg/sentry/kernel/task_syscall.go:257 +0x3e7 fp=0xc00a15dc90 sp=0xc00a15db88 pc=0xd57b27 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc00419a000?, 0xc00419a000) pkg/sentry/kernel/task_run.go:253 +0x16a5 fp=0xc00a15dec0 sp=0xc00a15dc90 pc=0xd42f25 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc00419a000, 0x99c7) pkg/sentry/kernel/task_run.go:94 +0x354 fp=0xc00a15dfb0 sp=0xc00a15dec0 pc=0xd40f14 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1() pkg/sentry/kernel/task_start.go:370 +0x48 fp=0xc00a15dfe0 sp=0xc00a15dfb0 pc=0xd542c8 runtime.goexit() src/runtime/asm_amd64.s:1571 +0x1 fp=0xc00a15dfe8 sp=0xc00a15dfe0 pc=0x46df01 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:370 +0x1a8