panic: WARNING: circular locking detected: mm.mappingRWMutex -> tmpfs.filesystemRWMutex: goroutine 158151 [running]: gvisor.dev/gvisor/pkg/log.Stacks(0x0) pkg/log/log.go:316 +0x8d gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc000239d00, 0xc000239d80, {0xc005e921f8, 0x1, 0x1}) pkg/sync/locking/lockdep.go:56 +0x1f4 gvisor.dev/gvisor/pkg/sync/locking.checkLock.func1(0xc0002397a0, 0xc00299a628) pkg/sync/locking/lockdep.go:76 +0x65 gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).RangeRepeatable(0xc000239780, 0xc00299a740) bazel-out/k8-fastbuild-ST-a4501ad48192/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:441 +0x226 gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc000239d00, 0xc000239780, {0x0, 0x0, 0x0}) pkg/sync/locking/lockdep.go:73 +0x46c gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc000239d00, 0x0) pkg/sync/locking/lockdep.go:107 +0x3ba gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*filesystemRWMutex).RLock(0xc00051a130) bazel-out/k8-fastbuild-ST-a4501ad48192/bin/pkg/sentry/fsimpl/tmpfs/filesystem_mutex.go:46 +0x3f gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*filesystem).PrependPath(0xc00051a0c0, {0x6400000000, 0xc000000073}, {0xc00042c540, 0xc000390d00}, {0xc000192360, 0xc000a54780}, 0xc0006b046b) pkg/sentry/fsimpl/tmpfs/filesystem.go:896 +0xaa gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).PathnameWithDeleted(0x18461e0, {0x1b85c70, 0xc005746000}, {0xc00042c540, 0xc000390d00}, {0xc000192360, 0xc000a54780}) pkg/sentry/vfs/pathname.go:57 +0x2e5 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).MappedName(0xc000a52600, {0x1b85c70, 0xc005746000}) pkg/sentry/vfs/file_description.go:791 +0x125 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).appendVMAMapsEntryLocked(0xc00407e800, {0x1b85c70, 0xc005746000}, {0xc00407e800, 0xd0741e}, 0x470e65) pkg/sentry/mm/procfs.go:163 +0x488 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).ReadMapsDataInto(0xc0056da000, {0x1b85c70, 0xc005746000}, 0x470e37) pkg/sentry/mm/procfs.go:68 +0x125 gvisor.dev/gvisor/pkg/sentry/fsimpl/proc.(*mapsData).Generate(0xc003548a80, {0x1b85c70, 0xc005746000}, 0x303b99a) pkg/sentry/fsimpl/proc/task_files.go:545 +0x6f gvisor.dev/gvisor/pkg/sentry/vfs.(*DynamicBytesFileDescriptionImpl).preadLocked(0xc000ad57a0, {0x1b85c70, 0xc005746000}, {{0x1b78d48, 0xc0056da000}, {0x0, 0x1, 0x20000040, 0x20000115}, {0x0, ...}}, ...) pkg/sentry/vfs/file_description_impl_util.go:301 +0x155 gvisor.dev/gvisor/pkg/sentry/vfs.(*DynamicBytesFileDescriptionImpl).Read(0xc000ad57a0, {0x1b85c70, 0xc005746000}, {{0x1b78d48, 0xc0056da000}, {0x0, 0x1, 0x20000040, 0x20000115}, {0x0, ...}}, ...) pkg/sentry/vfs/file_description_impl_util.go:328 +0x125 gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*DynamicBytesFD).Read(0xc000ad57a0, {0x1b85c70, 0xc005746000}, {{0x1b78d48, 0xc0056da000}, {0x0, 0x1, 0x20000040, 0x20000115}, {0x0, ...}}, ...) pkg/sentry/fsimpl/kernfs/dynamic_bytes_file.go:115 +0x9b gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).Read(0xc000ad5800, {0x1b85c70, 0xc005746000}, {{0x1b78d48, 0xc0056da000}, {0x0, 0x1, 0x20000040, 0x20000115}, {0x0, ...}}, ...) pkg/sentry/vfs/file_description.go:634 +0x15e gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.read(0x470e65, 0xc000ad5800, {{0x1b78d48, 0xc0056da000}, {0x0, 0x1, 0x20000040, 0x20000115}, {0x0, 0x1}}, ...) pkg/sentry/syscalls/linux/vfs2/read_write.go:94 +0x9d gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Read(0xc005746000, {{0x3}, {0x20000040}, {0x20000115}, {0x0}, {0x0}, {0x0}}) pkg/sentry/syscalls/linux/vfs2/read_write.go:63 +0x2c5 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc005746000, 0x0, {{0x3}, {0x20000040}, {0x20000115}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:142 +0x9d8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc005746000, 0x46f779, {{0x3}, {0x20000040}, {0x20000115}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:322 +0x6a gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc003e833b0, 0x46fc2c, {{0x3}, {0x20000040}, {0x20000115}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:282 +0x8f gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc005746000) pkg/sentry/kernel/task_syscall.go:257 +0x3e7 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc005746000, 0xc005746000) pkg/sentry/kernel/task_run.go:253 +0x16b8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc005746000, 0x1449) pkg/sentry/kernel/task_run.go:94 +0x35b created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:370 +0x1a9