panic: nested locking: kernfs.filesystemRWMutex: goroutine 344 [running]: gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*filesystemRWMutex).Lock(0xc000220050) 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(0xc000220000, {0x84cce0, 0xc000931500}) pkg/sentry/fsimpl/kernfs/filesystem.go:262 +0x6e gvisor.dev/gvisor/pkg/sentry/fsimpl/mqfs.(*filesystem).Release(0xc000220000, {0x84cce0, 0xc000931500}) 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(0xc000220000, 0xc000835568) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/vfs/filesystem_refs.go:132 +0x5f gvisor.dev/gvisor/pkg/sentry/vfs.(*Filesystem).DecRef(0xc000220000, {0x84cce0, 0xc000931500}) pkg/sentry/vfs/filesystem.go:77 +0x6f gvisor.dev/gvisor/pkg/sentry/vfs.(*Mount).destroy(0xc00059e980, {0x84cce0, 0xc000931500}) pkg/sentry/vfs/mount.go:690 +0x1c5 gvisor.dev/gvisor/pkg/sentry/vfs.(*Mount).DecRef(0xc00059e980, {0x84cce0, 0xc000931500}) pkg/sentry/vfs/mount.go:674 +0x7a gvisor.dev/gvisor/pkg/sentry/fsimpl/mqfs.(*RegistryImpl).Destroy(0xc000a420a8, {0x84cce0, 0xc000931500}) pkg/sentry/fsimpl/mqfs/registry.go:137 +0x7d gvisor.dev/gvisor/pkg/sentry/kernel/mq.(*Registry).Destroy(0xc000470c40, {0x84cce0, 0xc000931500}) pkg/sentry/kernel/mq/mq.go:246 +0xce gvisor.dev/gvisor/pkg/sentry/kernel.(*IPCNamespace).Destroy(0xc000a5c7e0, {0x84cce0, 0xc000931500}) 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(0xc000b343e0, 0xc0008357b8) 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(0xc000b34380, {0x84cce0, 0xc000931500}) pkg/sentry/fsimpl/nsfs/nsfs.go:96 +0x73 gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Dentry).destroy(0xc00046f7a0, {0x84cce0, 0xc000931500}) pkg/sentry/fsimpl/kernfs/kernfs.go:447 +0x96 gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Dentry).cacheLocked(0xc00046f7a0, {0x84cce0, 0xc000931500}) pkg/sentry/fsimpl/kernfs/kernfs.go:360 +0x5cb gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Dentry).DecRef(0xc00046f7a0, {0x84cce0, 0xc000931500}) 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({0xc000370300?, 0xc00046f7a0?}, {0x84cce0, 0xc000931500}) 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(0xc0001b2588, 0xc000835b10) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/vfs/file_description_refs.go:132 +0x5f gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef(0xc0001b2588, {0x84cce0, 0xc000931500}) pkg/sentry/vfs/file_description.go:161 +0x6f gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).drop(0xc00066c110?, {0x84cce0, 0xc000931500}, 0xc0001b2588) pkg/sentry/kernel/fd_table.go:137 +0x1d5 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).RemoveIf(0xc00066c100, {0x84cce0, 0xc000931500}, 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(0xc00066c100, 0xc000835d28) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/kernel/fd_table_refs.go:132 +0x5f gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).DecRef(0xc00066c100, {0x84cce0, 0xc000931500}) pkg/sentry/kernel/fd_table.go:151 +0x6f gvisor.dev/gvisor/pkg/sentry/kernel.(*runExitMain).execute(0xc000931500, 0xc000931500) pkg/sentry/kernel/task_exit.go:281 +0x797 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000931500, 0xf) 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