panic: nested locking: kernfs.filesystemRWMutex: goroutine 3026762 [running]: gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*filesystemRWMutex).Lock(0xc0008802d0) 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(0xc000880280, {0x84cce0, 0xc009887500}) pkg/sentry/fsimpl/kernfs/filesystem.go:262 +0x6e gvisor.dev/gvisor/pkg/sentry/fsimpl/mqfs.(*filesystem).Release(0xc000880280, {0x84cce0, 0xc009887500}) 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(0xc000880280, 0xc002bb3568) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/vfs/filesystem_refs.go:132 +0x5f gvisor.dev/gvisor/pkg/sentry/vfs.(*Filesystem).DecRef(0xc000880280, {0x84cce0, 0xc009887500}) pkg/sentry/vfs/filesystem.go:77 +0x6f gvisor.dev/gvisor/pkg/sentry/vfs.(*Mount).destroy(0xc017812b80, {0x84cce0, 0xc009887500}) pkg/sentry/vfs/mount.go:690 +0x1c5 gvisor.dev/gvisor/pkg/sentry/vfs.(*Mount).DecRef(0xc017812b80, {0x84cce0, 0xc009887500}) pkg/sentry/vfs/mount.go:674 +0x7a gvisor.dev/gvisor/pkg/sentry/fsimpl/mqfs.(*RegistryImpl).Destroy(0xc00e770000, {0x84cce0, 0xc009887500}) pkg/sentry/fsimpl/mqfs/registry.go:137 +0x7d gvisor.dev/gvisor/pkg/sentry/kernel/mq.(*Registry).Destroy(0xc00e764ee0, {0x84cce0, 0xc009887500}) pkg/sentry/kernel/mq/mq.go:246 +0xce gvisor.dev/gvisor/pkg/sentry/kernel.(*IPCNamespace).Destroy(0xc00d3820f0, {0x84cce0, 0xc009887500}) 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(0xc00e44bc60, 0xc002bb37b8) 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(0xc00e44bc00, {0x84cce0, 0xc009887500}) pkg/sentry/fsimpl/nsfs/nsfs.go:96 +0x73 gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Dentry).destroy(0xc017847170, {0x84cce0, 0xc009887500}) pkg/sentry/fsimpl/kernfs/kernfs.go:447 +0x96 gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Dentry).cacheLocked(0xc017847170, {0x84cce0, 0xc009887500}) pkg/sentry/fsimpl/kernfs/kernfs.go:360 +0x5cb gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Dentry).DecRef(0xc017847170, {0x84cce0, 0xc009887500}) 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({0xc000288380?, 0xc017847170?}, {0x84cce0, 0xc009887500}) 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(0xc07f76e408, 0xc002bb3b10) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/vfs/file_description_refs.go:132 +0x5f gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef(0xc07f76e408, {0x84cce0, 0xc009887500}) pkg/sentry/vfs/file_description.go:161 +0x6f gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).drop(0xc007ed8e10?, {0x84cce0, 0xc009887500}, 0xc07f76e408) pkg/sentry/kernel/fd_table.go:137 +0x1d5 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).RemoveIf(0xc007ed8e00, {0x84cce0, 0xc009887500}, 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(0xc007ed8e00, 0xc002bb3d28) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/kernel/fd_table_refs.go:132 +0x5f gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).DecRef(0xc007ed8e00, {0x84cce0, 0xc009887500}) pkg/sentry/kernel/fd_table.go:151 +0x6f gvisor.dev/gvisor/pkg/sentry/kernel.(*runExitMain).execute(0xc009887500, 0xc009887500) pkg/sentry/kernel/task_exit.go:281 +0x797 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc009887500, 0x79ac) 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