panic: nested locking: kernfs.filesystemRWMutex: goroutine 611 [running]: gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*filesystemRWMutex).Lock(0xc0001d2050) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/fsimpl/kernfs/filesystem_mutex.go:31 +0x45 gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).Release(0xc0001d2000, {0x84cce0, 0xc000b65500}) pkg/sentry/fsimpl/kernfs/filesystem.go:262 +0x6e gvisor.dev/gvisor/pkg/sentry/fsimpl/mqfs.(*filesystem).Release(0xc0001d2000, {0x84cce0, 0xc000b65500}) pkg/sentry/fsimpl/mqfs/mqfs.go:83 +0x8e gvisor.dev/gvisor/pkg/sentry/vfs.(*Filesystem).DecRef.func1() pkg/sentry/vfs/filesystem.go:81 +0x108 gvisor.dev/gvisor/pkg/sentry/vfs.(*FilesystemRefs).DecRef(0xc0001d2000, 0xc000249568) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/vfs/filesystem_refs.go:132 +0x5f gvisor.dev/gvisor/pkg/sentry/vfs.(*Filesystem).DecRef(0xc0001d2000, {0x84cce0, 0xc000b65500}) pkg/sentry/vfs/filesystem.go:77 +0x6f gvisor.dev/gvisor/pkg/sentry/vfs.(*Mount).destroy(0xc0004d0c80, {0x84cce0, 0xc000b65500}) pkg/sentry/vfs/mount.go:690 +0x1c5 gvisor.dev/gvisor/pkg/sentry/vfs.(*Mount).DecRef(0xc0004d0c80, {0x84cce0, 0xc000b65500}) pkg/sentry/vfs/mount.go:674 +0x7a gvisor.dev/gvisor/pkg/sentry/fsimpl/mqfs.(*RegistryImpl).Destroy(0xc0003f20c0, {0x84cce0, 0xc000b65500}) pkg/sentry/fsimpl/mqfs/registry.go:137 +0x7d gvisor.dev/gvisor/pkg/sentry/kernel/mq.(*Registry).Destroy(0xc000894080, {0x84cce0, 0xc000b65500}) pkg/sentry/kernel/mq/mq.go:246 +0xce gvisor.dev/gvisor/pkg/sentry/kernel.(*IPCNamespace).Destroy(0xc000c5ad20, {0x84cce0, 0xc000b65500}) pkg/sentry/kernel/ipc_namespace.go:73 +0xa5 gvisor.dev/gvisor/pkg/sentry/fsimpl/nsfs.(*Inode).DecRef.func1() pkg/sentry/fsimpl/nsfs/nsfs.go:96 +0x75 gvisor.dev/gvisor/pkg/sentry/fsimpl/nsfs.(*inodeRefs).DecRef(0xc0008983e0, 0xc0002497b8) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/fsimpl/nsfs/inode_refs.go:132 +0x5f gvisor.dev/gvisor/pkg/sentry/fsimpl/nsfs.(*Inode).DecRef(0xc000898380, {0x84cce0, 0xc000b65500}) pkg/sentry/fsimpl/nsfs/nsfs.go:96 +0x73 gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Dentry).destroy(0xc00065bb90, {0x84cce0, 0xc000b65500}) pkg/sentry/fsimpl/kernfs/kernfs.go:447 +0x96 gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Dentry).cacheLocked(0xc00065bb90, {0x84cce0, 0xc000b65500}) pkg/sentry/fsimpl/kernfs/kernfs.go:360 +0x5cb gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Dentry).DecRef(0xc00065bb90, {0x84cce0, 0xc000b65500}) pkg/sentry/fsimpl/kernfs/kernfs.go:296 +0x146 gvisor.dev/gvisor/pkg/sentry/vfs.(*Dentry).DecRef(...) pkg/sentry/vfs/dentry.go:156 gvisor.dev/gvisor/pkg/sentry/vfs.VirtualDentry.DecRef({0xc00032a480?, 0xc00065bb90?}, {0x84cce0, 0xc000b65500}) pkg/sentry/vfs/vfs.go:1014 +0x78 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef.func1() pkg/sentry/vfs/file_description.go:201 +0x43b gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescriptionRefs).DecRef(0xc0006a2a08, 0xc000249b10) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/vfs/file_description_refs.go:132 +0x5f gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef(0xc0006a2a08, {0x84cce0, 0xc000b65500}) pkg/sentry/vfs/file_description.go:161 +0x6f gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).drop(0xc00064b950?, {0x84cce0, 0xc000b65500}, 0xc0006a2a08) pkg/sentry/kernel/fd_table.go:137 +0x1d5 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).RemoveIf(0xc00064b940, {0x84cce0, 0xc000b65500}, 0x5713b0) pkg/sentry/kernel/fd_table.go:502 +0x139 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).DecRef.func1() pkg/sentry/kernel/fd_table.go:152 +0x54 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTableRefs).DecRef(0xc00064b940, 0xc000249d28) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/kernel/fd_table_refs.go:132 +0x5f gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).DecRef(0xc00064b940, {0x84cce0, 0xc000b65500}) pkg/sentry/kernel/fd_table.go:151 +0x6f gvisor.dev/gvisor/pkg/sentry/kernel.(*runExitMain).execute(0xc000b65500, 0xc000b65500) pkg/sentry/kernel/task_exit.go:281 +0x797 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000b65500, 0x24) pkg/sentry/kernel/task_run.go:98 +0x41b created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:389 +0x1ad