panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0x89dd6c] goroutine 279762 [running]: panic(0x12296c0, 0x1f83c00) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc0022e2a78 sp=0xc0022e29b0 pc=0x437c65 runtime.panicmem() GOROOT/src/runtime/panic.go:212 +0x5b fp=0xc0022e2a98 sp=0xc0022e2a78 pc=0x435cbb runtime.sigpanic() GOROOT/src/runtime/signal_unix.go:734 +0x173 fp=0xc0022e2ad0 sp=0xc0022e2a98 pc=0x44fa93 gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Dentry).releaseKeptDentriesLocked(0xc009f686c0, 0x15aa480, 0xc008f6e000) pkg/sentry/fsimpl/kernfs/filesystem.go:356 +0x4c fp=0xc0022e2bb0 sp=0xc0022e2ad0 pc=0x89dd6c gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).Release(0xc0023be000, 0x15aa480, 0xc008f6e000) pkg/sentry/fsimpl/kernfs/filesystem.go:339 +0xa7 fp=0xc0022e2be8 sp=0xc0022e2bb0 pc=0x89dc67 gvisor.dev/gvisor/pkg/sentry/fsimpl/mqfs.(*filesystem).Release(0xc0023be000, 0x15aa480, 0xc008f6e000) pkg/sentry/fsimpl/mqfs/mqfs.go:128 +0x7b fp=0xc0022e2c10 sp=0xc0022e2be8 pc=0x8c6afb gvisor.dev/gvisor/pkg/sentry/vfs.(*Filesystem).DecRef.func1() pkg/sentry/vfs/filesystem.go:88 +0xe4 fp=0xc0022e2c50 sp=0xc0022e2c10 pc=0x7a1fe4 gvisor.dev/gvisor/pkg/sentry/vfs.(*FilesystemRefs).DecRef(0xc0023be000, 0xc0022e2cd8) bazel-out/k8-fastbuild-ST-4c64f0b3d5c7/bin/pkg/sentry/vfs/filesystem_refs.go:152 +0x82 fp=0xc0022e2cc8 sp=0xc0022e2c50 pc=0x77e8e2 gvisor.dev/gvisor/pkg/sentry/vfs.(*Filesystem).DecRef(0xc0023be000, 0x15aa480, 0xc008f6e000) pkg/sentry/vfs/filesystem.go:83 +0x73 fp=0xc0022e2d08 sp=0xc0022e2cc8 pc=0x77de13 gvisor.dev/gvisor/pkg/sentry/vfs.(*Mount).destroy(0xc0066eb2c0, 0x15aa480, 0xc008f6e000) pkg/sentry/vfs/mount.go:637 +0x93 fp=0xc0022e2d58 sp=0xc0022e2d08 pc=0x785893 gvisor.dev/gvisor/pkg/sentry/vfs.(*Mount).DecRef(0xc0066eb2c0, 0x15aa480, 0xc008f6e000) pkg/sentry/vfs/mount.go:616 +0xaa fp=0xc0022e2d80 sp=0xc0022e2d58 pc=0x7857ea gvisor.dev/gvisor/pkg/sentry/fsimpl/mqfs.(*RegistryImpl).Destroy(0xc004baa828, 0x15aa480, 0xc008f6e000) pkg/sentry/fsimpl/mqfs/registry.go:155 +0x72 fp=0xc0022e2da8 sp=0xc0022e2d80 pc=0x8c8552 gvisor.dev/gvisor/pkg/sentry/kernel/mq.(*Registry).Destroy(0xc006bd8ac0, 0x15aa480, 0xc008f6e000) pkg/sentry/kernel/mq/mq.go:283 +0x97 fp=0xc0022e2df0 sp=0xc0022e2da8 pc=0x8c2d37 gvisor.dev/gvisor/pkg/sentry/kernel.(*IPCNamespace).DecRef.func1() pkg/sentry/kernel/ipc_namespace.go:120 +0x9e fp=0xc0022e2e30 sp=0xc0022e2df0 pc=0xa862de gvisor.dev/gvisor/pkg/sentry/kernel.(*IPCNamespaceRefs).DecRef(0xc000849230, 0xc0022e2eb8) bazel-out/k8-fastbuild-ST-4c64f0b3d5c7/bin/pkg/sentry/kernel/ipc_namespace_refs.go:152 +0x82 fp=0xc0022e2ea8 sp=0xc0022e2e30 pc=0xa21d02 gvisor.dev/gvisor/pkg/sentry/kernel.(*IPCNamespace).DecRef(0xc000849230, 0x15aa480, 0xc008f6e000) pkg/sentry/kernel/ipc_namespace.go:115 +0x73 fp=0xc0022e2ee8 sp=0xc0022e2ea8 pc=0xa21553 gvisor.dev/gvisor/pkg/sentry/kernel.(*runExitMain).execute(0x0, 0xc008f6e000, 0x157e500, 0x0) pkg/sentry/kernel/task_exit.go:292 +0x277 fp=0xc0022e2f60 sp=0xc0022e2ee8 pc=0xa4d857 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc008f6e000, 0x27b9) pkg/sentry/kernel/task_run.go:100 +0x1e2 fp=0xc0022e2fd0 sp=0xc0022e2f60 pc=0xa58622 runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc0022e2fd8 sp=0xc0022e2fd0 pc=0x472861 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:380 +0x116