panic: cgroupfs: pids controller pending pool would be negative if charge was allowed: current pool: 0, proposed charge: -1 goroutine 637819 [running]: panic({0xfe12e0, 0xc0064644a0}) GOROOT/src/runtime/panic.go:941 +0x397 fp=0xc0013a8ea0 sp=0xc0013a8de0 pc=0x435837 gvisor.dev/gvisor/pkg/sentry/fsimpl/cgroupfs.(*pidsController).Charge(0xc008e7df80, 0xc007798a80, 0x11c1f8d?, 0x4?, 0xffffffffffffffff) pkg/sentry/fsimpl/cgroupfs/pids.go:207 +0x5f4 fp=0xc0013a8f88 sp=0xc0013a8ea0 pc=0xdbed74 gvisor.dev/gvisor/pkg/sentry/fsimpl/cgroupfs.(*cgroupInode).Charge(0xc002994400, 0xc008dec390?, 0xc008dec000?, {0x11c1f8d, 0x4}, 0x0?, 0x0?) pkg/sentry/fsimpl/cgroupfs/base.go:321 +0x10d fp=0xc0013a9010 sp=0xc0013a8f88 pc=0xdb3d8d gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).chargeLocked(0x449812?, 0x1e9a220?, {0x11c1f8d, 0x4}, 0x2bc0?, 0xc003c16fc0?) pkg/sentry/kernel/task_cgroup.go:234 +0xd7 fp=0xc0013a90d0 sp=0xc0013a9010 pc=0xa08937 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).ChargeFor(0xc008f24000, 0xc0013a9188?, {0x11c1f8d, 0x4}, 0xc0013a9100?, 0x0?) pkg/sentry/kernel/task_cgroup.go:245 +0xdf fp=0xc0013a9158 sp=0xc0013a90d0 pc=0xa08a9f gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskSet).newTask.func1() pkg/sentry/kernel/task_start.go:194 +0x45 fp=0xc0013a91a8 sp=0xc0013a9158 pc=0xa27665 gvisor.dev/gvisor/pkg/cleanup.clean({0xc00aa68a20, 0xa2ef0f?, 0xc00023a9a0?}) pkg/cleanup/cleanup.go:59 +0x42 fp=0xc0013a91c0 sp=0xc0013a91a8 pc=0x6e7ba2 gvisor.dev/gvisor/pkg/cleanup.(*Cleanup).Clean(0xc0013a9490) pkg/cleanup/cleanup.go:44 +0x36 fp=0xc0013a91e8 sp=0xc0013a91c0 pc=0x6e79d6 gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskSet).newTask.func2() pkg/sentry/kernel/task_start.go:180 +0x26 fp=0xc0013a9200 sp=0xc0013a91e8 pc=0xa27706 runtime.deferreturn() GOROOT/src/runtime/panic.go:436 +0x33 fp=0xc0013a9240 sp=0xc0013a9200 pc=0x434953 gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskSet).newTask(0xc00023a9a0, {0x140ba70?, 0xc008f24000?}, 0xc0013a97d8) pkg/sentry/kernel/task_start.go:211 +0x929 fp=0xc0013a94b8 sp=0xc0013a9240 pc=0xa26e89 gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskSet).NewTask(0xc008f24000?, {0x140ba70, 0xc008f24000}, 0xc0013a97d8) pkg/sentry/kernel/task_start.go:127 +0xb5 fp=0xc0013a9530 sp=0xc0013a94b8 pc=0xa26375 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Clone(0xc008f24000, 0xc0013a98b0) pkg/sentry/kernel/task_clone.go:224 +0x124f fp=0xc0013a98a0 sp=0xc0013a9530 pc=0xa09e6f gvisor.dev/gvisor/pkg/sentry/syscalls/linux.clone(0x101000101010101?, 0x10001?, 0x0?, 0x0?, 0x0?, 0x0?) pkg/sentry/syscalls/linux/sys_thread.go:208 +0x8d fp=0xc0013a9918 sp=0xc0013a98a0 pc=0xad222d gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Clone(0xc008f24000?, {{0x3d0f00}, {0x7fda575bd2f0}, {0x7fda575bd9d0}, {0x7fda575bd9d0}, {0x7fda575bd700}, {0x7fda575bd700}}) pkg/sentry/syscalls/linux/sys_clone_amd64.go:36 +0x6e fp=0xc0013a9958 sp=0xc0013a9918 pc=0xa98e6e gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc008f24000, 0x38, {{0x3d0f00}, {0x7fda575bd2f0}, {0x7fda575bd9d0}, {0x7fda575bd9d0}, {0x7fda575bd700}, {0x7fda575bd700}}) pkg/sentry/kernel/task_syscall.go:142 +0x80b fp=0xc0013a9c98 sp=0xc0013a9958 pc=0xa29a8b gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc008f24000, 0xc005dd6d00?, {{0x3d0f00}, {0x7fda575bd2f0}, {0x7fda575bd9d0}, {0x7fda575bd9d0}, {0x7fda575bd700}, {0x7fda575bd700}}) pkg/sentry/kernel/task_syscall.go:322 +0x54 fp=0xc0013a9cf8 sp=0xc0013a9c98 pc=0xa2b074 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc00037e400?, 0xc0013a9e40?, {{0x3d0f00}, {0x7fda575bd2f0}, {0x7fda575bd9d0}, {0x7fda575bd9d0}, {0x7fda575bd700}, {0x7fda575bd700}}) pkg/sentry/kernel/task_syscall.go:282 +0x85 fp=0xc0013a9d58 sp=0xc0013a9cf8 pc=0xa2ac65 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc004901600?) pkg/sentry/kernel/task_syscall.go:257 +0x3ac fp=0xc0013a9e50 sp=0xc0013a9d58 pc=0xa2a92c gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc0079fcd00?, 0xc008f24000) pkg/sentry/kernel/task_run.go:253 +0x1125 fp=0xc0013a9f60 sp=0xc0013a9e50 pc=0xa1c6e5 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc008f24000, 0x41a6) pkg/sentry/kernel/task_run.go:94 +0x1ec fp=0xc0013a9fc0 sp=0xc0013a9f60 pc=0xa1af2c gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1() pkg/sentry/kernel/task_start.go:370 +0x2a fp=0xc0013a9fe0 sp=0xc0013a9fc0 pc=0xa27f2a runtime.goexit() src/runtime/asm_amd64.s:1571 +0x1 fp=0xc0013a9fe8 sp=0xc0013a9fe0 pc=0x469321 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:370 +0x105