panic: runtime error: invalid memory address or nil pointer dereference
panic: nested locking: vfs.virtualFilesystemMutex:
goroutine 407 [running]:
gvisor.dev/gvisor/pkg/sentry/vfs.(*virtualFilesystemMutex).Lock(0xc0001de1d8)
bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/vfs/virtual_filesystem_mutex.go:33 +0x3c
gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).lockMounts(...)
pkg/sentry/vfs/vfs.go:1013
gvisor.dev/gvisor/pkg/sentry/vfs.(*Mount).destroy(0xc0004a64d0, {0x7eb838, 0xc0004d6000})
pkg/sentry/vfs/mount.go:820 +0x66
gvisor.dev/gvisor/pkg/sentry/vfs.(*Mount).DecRef(0xc0004a64d0, {0x7eb838, 0xc0004d6000})
pkg/sentry/vfs/mount.go:815 +0x79
gvisor.dev/gvisor/pkg/sentry/vfs.VirtualDentry.DecRef({0xc0004a64d0?, 0xc000b1a800?}, {0x7eb838, 0xc0004d6000})
pkg/sentry/vfs/vfs.go:1086 +0x85
panic({0x30b000?, 0x260b600?})
GOROOT/src/runtime/panic.go:920 +0x270
gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).PivotRoot(0xc0001de1d8, {0x7eb838?, 0xc0004d6000}, 0xc0007d7000?, 0xc00019f100?, 0x7?)
pkg/sentry/vfs/mount.go:1058 +0x86f
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.PivotRoot(0xc0004d6000, 0xc00067f598?, {{0x20000280}, {0x200002c0}, {0x55db45fc80c6}, {0x0}, {0x7f0e10830a87}, {0x0}})
pkg/sentry/syscalls/linux/sys_file.go:425 +0x365
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0004d6000, 0x9b, {{0x20000280}, {0x200002c0}, {0x55db45fc80c6}, {0x0}, {0x7f0e10830a87}, {0x0}})
pkg/sentry/kernel/task_syscall.go:142 +0x8b5
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0004d6000, 0x2525b60?, {{0x20000280}, {0x200002c0}, {0x55db45fc80c6}, {0x0}, {0x7f0e10830a87}, {0x0}})
pkg/sentry/kernel/task_syscall.go:322 +0x6c
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc00067fb58?, 0x208a459?, {{0x20000280}, {0x200002c0}, {0x55db45fc80c6}, {0x0}, {0x7f0e10830a87}, {0x0}})
pkg/sentry/kernel/task_syscall.go:282 +0x87
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0004d6000)
pkg/sentry/kernel/task_syscall.go:257 +0x4f0
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc0004d6000?, 0xc0004d6000)
pkg/sentry/kernel/task_run.go:269 +0x1e08
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0004d6000, 0x22)
pkg/sentry/kernel/task_run.go:98 +0x43b
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start in goroutine 378
pkg/sentry/kernel/task_start.go:391 +0x1ae