panic: Decrementing non-positive ref count 0xc0008a9c58, owned by tmpfs.inode goroutine 245 [running]: panic({0x29a6a0?, 0xc0007ad300?}) GOROOT/src/runtime/panic.go:1017 +0x3ac fp=0xc0008c09b8 sp=0xc0008c0908 pc=0x125810c gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*inodeRefs).DecRef(0xc0008a9c58, 0xc0008c0a30) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/fsimpl/tmpfs/inode_refs.go:126 +0x13f fp=0xc0008c0a18 sp=0xc0008c09b8 pc=0x1aa545f gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*inode).decRef(0xc0008a9c50, {0x73b6d8, 0xc000840a80}) pkg/sentry/fsimpl/tmpfs/tmpfs.go:594 +0x91 fp=0xc0008c0a60 sp=0xc0008c0a18 pc=0x1ab1691 gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*dentry).DecRef(0xc0008a9c00, {0x73b6d8, 0xc000840a80}) pkg/sentry/fsimpl/tmpfs/tmpfs.go:452 +0x65 fp=0xc0008c0a88 sp=0xc0008c0a60 pc=0x1ab0ae5 gvisor.dev/gvisor/pkg/sentry/vfs.(*Dentry).DecRef(0xc0008a9c00, {0x73b6d8, 0xc000840a80}) pkg/sentry/vfs/dentry.go:156 +0x6b fp=0xc0008c0ab0 sp=0xc0008c0a88 pc=0x1827b8b gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).unlockMounts(0xc0008021d8, {0x73b6d8, 0xc000840a80}) pkg/sentry/vfs/vfs.go:1031 +0x24d fp=0xc0008c0b88 sp=0xc0008c0ab0 pc=0x186d42d gvisor.dev/gvisor/pkg/sentry/vfs.(*Mount).destroy.func1() pkg/sentry/vfs/mount.go:949 +0x50 fp=0xc0008c0bc8 sp=0xc0008c0b88 pc=0x184c630 runtime.deferreturn() GOROOT/src/runtime/panic.go:477 +0x31 fp=0xc0008c0c00 sp=0xc0008c0bc8 pc=0x1257251 gvisor.dev/gvisor/pkg/sentry/vfs.(*Mount).destroy(0xc000ab11e0, {0x73b6d8, 0xc000840a80}) pkg/sentry/vfs/mount.go:979 +0x88d fp=0xc0008c0de8 sp=0xc0008c0c00 pc=0x184c54d gvisor.dev/gvisor/pkg/sentry/vfs.(*Mount).DecRef(0xc000ab11e0, {0x73b6d8, 0xc000840a80}) pkg/sentry/vfs/mount.go:943 +0xca fp=0xc0008c0e18 sp=0xc0008c0de8 pc=0x184bc8a gvisor.dev/gvisor/pkg/sentry/vfs.VirtualDentry.DecRef({0xc000ab11e0?, 0xc0008a9c00?}, {0x73b6d8, 0xc000840a80}) pkg/sentry/vfs/vfs.go:1087 +0x6f fp=0xc0008c0e50 sp=0xc0008c0e18 pc=0x186d5ef gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualDentry).DecRef(0xc0007ad1a0, {0x73b6d8, 0xc000840a80}) :1 +0x65 fp=0xc0008c0e80 sp=0xc0008c0e50 pc=0x1886985 gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*filesystem).RmdirAt.func1() pkg/sentry/fsimpl/tmpfs/filesystem.go:684 +0xd0 fp=0xc0008c0ee8 sp=0xc0008c0e80 pc=0x1aa04b0 runtime.deferreturn() GOROOT/src/runtime/panic.go:477 +0x31 fp=0xc0008c0f20 sp=0xc0008c0ee8 pc=0x1257251 gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*filesystem).RmdirAt(0xc00084e460, {0x73b6d8, 0xc000840a80}, 0xc0009de900) pkg/sentry/fsimpl/tmpfs/filesystem.go:735 +0x909 fp=0xc0008c1200 sp=0xc0008c0f20 pc=0x1a9ff09 gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).RmdirAt(0xc000840a80?, {0x73b6d8, 0xc000840a80}, 0xc0008a9400?, 0xc0008c13d8) pkg/sentry/vfs/vfs.go:607 +0x2e5 fp=0xc0008c1290 sp=0xc0008c1200 pc=0x1868f45 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.rmdirat(0xc000840a80, 0x3842460?, 0x1292cac?) pkg/sentry/syscalls/linux/sys_file.go:971 +0x29c fp=0xc0008c1488 sp=0xc0008c1290 pc=0x1e8b29c gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Rmdir(0xc0008c1540?, 0x128b74e?, {{0x7f264fd34a00}, {0x0}, {0x107d0}, {0x1000}, {0x5652e1db285b}, {0x0}}) pkg/sentry/syscalls/linux/sys_file.go:958 +0x5d fp=0xc0008c14d0 sp=0xc0008c1488 pc=0x1e8afbd gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000840a80, 0x54, {{0x7f264fd34a00}, {0x0}, {0x107d0}, {0x1000}, {0x5652e1db285b}, {0x0}}) pkg/sentry/kernel/task_syscall.go:142 +0xaff fp=0xc0008c1908 sp=0xc0008c14d0 pc=0x1c6495f gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000840a80, 0x1?, {{0x7f264fd34a00}, {0x0}, {0x107d0}, {0x1000}, {0x5652e1db285b}, {0x0}}) pkg/sentry/kernel/task_syscall.go:322 +0x7d fp=0xc0008c19c0 sp=0xc0008c1908 pc=0x1c66a1d gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000840a80?, 0x54?, {{0x7f264fd34a00}, {0x0}, {0x107d0}, {0x1000}, {0x5652e1db285b}, {0x0}}) pkg/sentry/kernel/task_syscall.go:282 +0xbd fp=0xc0008c1a38 sp=0xc0008c19c0 pc=0x1c6631d gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000840a80) pkg/sentry/kernel/task_syscall.go:257 +0x55b fp=0xc0008c1b70 sp=0xc0008c1a38 pc=0x1c65e7b gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc000840a80?, 0xc000840a80) pkg/sentry/kernel/task_run.go:269 +0x2387 fp=0xc0008c1e60 sp=0xc0008c1b70 pc=0x1c4ed47 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000840a80, 0x7) pkg/sentry/kernel/task_run.go:98 +0x36a fp=0xc0008c1fb0 sp=0xc0008c1e60 pc=0x1c4c0aa gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1() pkg/sentry/kernel/task_start.go:392 +0x45 fp=0xc0008c1fe0 sp=0xc0008c1fb0 pc=0x1c621c5 runtime.goexit() src/runtime/asm_amd64.s:1650 +0x1 fp=0xc0008c1fe8 sp=0xc0008c1fe0 pc=0x1291121 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start in goroutine 26 pkg/sentry/kernel/task_start.go:392 +0x1ce