panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: 0, proposed charge: -1 goroutine 1213328 [running]: panic({0xfdaa60, 0xc005dde370}) GOROOT/src/runtime/panic.go:941 +0x397 fp=0xc0039e4eb0 sp=0xc0039e4df0 pc=0x435837 gvisor.dev/gvisor/pkg/sentry/fsimpl/cgroupfs.(*pidsController).Charge(0xc00590c360, 0xc0096c2000, 0x11b9293?, 0x4?, 0xffffffffffffffff) pkg/sentry/fsimpl/cgroupfs/pids.go:207 +0x5f4 fp=0xc0039e4f98 sp=0xc0039e4eb0 pc=0xdbbc94 gvisor.dev/gvisor/pkg/sentry/fsimpl/cgroupfs.(*cgroupInode).Charge(0xc004adfc00, 0xc007c7a988?, 0xc007c7a800?, {0x11b9293, 0x4}, 0x0?, 0x0?) pkg/sentry/fsimpl/cgroupfs/base.go:321 +0x10d fp=0xc0039e5020 sp=0xc0039e4f98 pc=0xdb0cad gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).chargeLocked(0x449812?, 0x1e87ba0?, {0x11b9293, 0x4}, 0x1680?, 0xc000b117a0?) pkg/sentry/kernel/task_cgroup.go:234 +0xd7 fp=0xc0039e50e0 sp=0xc0039e5020 pc=0xa04057 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).ChargeFor(0xc00577a000, 0x100000001e87ba0?, {0x11b9293, 0x4}, 0xc0039e51b0?, 0x47260e?) pkg/sentry/kernel/task_cgroup.go:245 +0xdf fp=0xc0039e5168 sp=0xc0039e50e0 pc=0xa041bf gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskSet).newTask.func1() pkg/sentry/kernel/task_start.go:194 +0x45 fp=0xc0039e51b8 sp=0xc0039e5168 pc=0xa22d25 gvisor.dev/gvisor/pkg/cleanup.clean({0xc00642b2c8, 0xa2a1af?, 0xc0001b49a0?}) pkg/cleanup/cleanup.go:59 +0x42 fp=0xc0039e51d0 sp=0xc0039e51b8 pc=0x6e1442 gvisor.dev/gvisor/pkg/cleanup.(*Cleanup).Clean(0xc0039e54a0) pkg/cleanup/cleanup.go:44 +0x36 fp=0xc0039e51f8 sp=0xc0039e51d0 pc=0x6e1276 gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskSet).newTask.func2() pkg/sentry/kernel/task_start.go:180 +0x26 fp=0xc0039e5210 sp=0xc0039e51f8 pc=0xa22dc6 runtime.deferreturn() GOROOT/src/runtime/panic.go:436 +0x33 fp=0xc0039e5250 sp=0xc0039e5210 pc=0x434953 gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskSet).newTask(0xc0001b49a0, {0x1405af0?, 0xc00577a000?}, 0xc0039e57e8) pkg/sentry/kernel/task_start.go:211 +0x93b fp=0xc0039e54c8 sp=0xc0039e5250 pc=0xa2253b gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskSet).NewTask(0xc00577a000?, {0x1405af0, 0xc00577a000}, 0xc0039e57e8) pkg/sentry/kernel/task_start.go:127 +0xb5 fp=0xc0039e5540 sp=0xc0039e54c8 pc=0xa21a15 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Clone(0xc00577a000, 0xc0039e58c0) pkg/sentry/kernel/task_clone.go:224 +0x11da fp=0xc0039e58b0 sp=0xc0039e5540 pc=0xa0551a gvisor.dev/gvisor/pkg/sentry/syscalls/linux.clone(0x0?, 0x0?, 0xc003560000?, 0xc006810c00?, 0x0?, 0x0?) pkg/sentry/syscalls/linux/sys_thread.go:208 +0x8d fp=0xc0039e5928 sp=0xc0039e58b0 pc=0xacc1cd gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Clone(0x20000?, {{0x3d0f00}, {0x7f42cee4f2f0}, {0x7f42cee4f9d0}, {0x7f42cee4f9d0}, {0x7f42cee4f700}, {0x7f42cee4f700}}) pkg/sentry/syscalls/linux/sys_clone_amd64.go:36 +0x6e fp=0xc0039e5968 sp=0xc0039e5928 pc=0xa9298e gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc00577a000, 0x38, {{0x3d0f00}, {0x7f42cee4f2f0}, {0x7f42cee4f9d0}, {0x7f42cee4f9d0}, {0x7f42cee4f700}, {0x7f42cee4f700}}) pkg/sentry/kernel/task_syscall.go:142 +0x7d0 fp=0xc0039e5ca8 sp=0xc0039e5968 pc=0xa25130 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc00577a000, 0x0?, {{0x3d0f00}, {0x7f42cee4f2f0}, {0x7f42cee4f9d0}, {0x7f42cee4f9d0}, {0x7f42cee4f700}, {0x7f42cee4f700}}) pkg/sentry/kernel/task_syscall.go:322 +0x57 fp=0xc0039e5d18 sp=0xc0039e5ca8 pc=0xa26737 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc008856798?, 0x577a000?, {{0x3d0f00}, {0x7f42cee4f2f0}, {0x7f42cee4f9d0}, {0x7f42cee4f9d0}, {0x7f42cee4f700}, {0x7f42cee4f700}}) pkg/sentry/kernel/task_syscall.go:282 +0x85 fp=0xc0039e5d78 sp=0xc0039e5d18 pc=0xa262e5 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc00577a000) pkg/sentry/kernel/task_syscall.go:257 +0x3ac fp=0xc0039e5e40 sp=0xc0039e5d78 pc=0xa25fac gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc005594580?, 0xc00577a000) pkg/sentry/kernel/task_run.go:253 +0x113b fp=0xc0039e5f60 sp=0xc0039e5e40 pc=0xa17dbb gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc00577a000, 0x750e) pkg/sentry/kernel/task_run.go:94 +0x1ec fp=0xc0039e5fc0 sp=0xc0039e5f60 pc=0xa165ec gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1() pkg/sentry/kernel/task_start.go:370 +0x2a fp=0xc0039e5fe0 sp=0xc0039e5fc0 pc=0xa235ea runtime.goexit() src/runtime/asm_amd64.s:1571 +0x1 fp=0xc0039e5fe8 sp=0xc0039e5fe0 pc=0x469321 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:370 +0x105