panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex: goroutine 1134 [running]: gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).RangeRepeatable(0xc000289d60, 0xc001a1c9f8) bazel-out/aarch64-fastbuild/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:440 +0x198 gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc000289b00, 0xc000289d40, {0x0, 0x0, 0x0}) pkg/sync/locking/lockdep.go:112 +0x350 gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc000289b00, 0xffffffffffffffff) pkg/sync/locking/lockdep.go:144 +0x274 gvisor.dev/gvisor/pkg/sentry/mm.(*mappingRWMutex).RLock(0xc0028eb05c) bazel-out/aarch64-fastbuild/bin/pkg/sentry/mm/mapping_mutex.go:59 +0x40 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).withInternalMappings(0xc0028eb008, {0x1b904b0, 0xc002a64c88}, {0x483f88?, 0xc001a1cdd8?}, {0xb0?, 0x30?, 0x49?}, 0x0, 0xc001a1cfb0) pkg/sentry/mm/io.go:544 +0xa4 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).withVecInternalMappings(0xc0028eb008, {0x1b904b0, 0xc002a64c88}, {0x0?, 0xffffb7b739c8?, 0x18?, 0xc001a1cf28?}, {0xe0?, 0x37?, 0x49?}, ...) pkg/sentry/mm/io.go:606 +0x4d8 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).CopyInTo(0xc0028eb008, {0x1b904b0, 0xc002a64c88}, {0x0?, 0x100000?, 0xc002d3f3a8?, 0xc002d3f238?}, {0x1b6cfe0, 0xc0021fe6d8}, {0x1?, ...}) pkg/sentry/mm/io.go:324 +0x174 gvisor.dev/gvisor/pkg/usermem.IOSequence.CopyInTo(...) pkg/usermem/usermem.go:516 gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*regularFileFD).pwrite(0xc001cfbd00, {0x1b904b0, 0xc002a64c88}, {{0x1b87318, 0xc0028eb008}, {0x0, 0x1, 0xe65bf4a00000, 0x100000}, {0x0, ...}}, ...) pkg/sentry/fsimpl/tmpfs/regular_file.go:553 +0x5fc gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*regularFileFD).Write(0xc001cfbd00, {0x1b904b0, 0xc002a64c88}, {{0x1b87318, 0xc0028eb008}, {0x0, 0x1, 0xe65bf4a00000, 0x100000}, {0x0, ...}}, ...) pkg/sentry/fsimpl/tmpfs/regular_file.go:570 +0xd4 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).Write(0xc001cfbd00, {0x1b904b0, 0xc002a64c88}, {{0x1b87318, 0xc0028eb008}, {0x0, 0x1, 0xe65bf4a00000, 0x100000}, {0x0, ...}}, ...) pkg/sentry/vfs/file_description.go:679 +0xdc gvisor.dev/gvisor/pkg/sentry/syscalls/linux.write(0xc002a64c88, 0xc001cfbd00, {{0x1b87318, 0xc0028eb008}, {0x0, 0x1, 0xe65bf4a00000, 0x100000}, {0x0, 0x1}}, ...) pkg/sentry/syscalls/linux/sys_read_write.go:347 +0xac gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Write(0xc002a64c88, 0x0?, {{0x3}, {0xe65bf4a00000}, {0x100000}, {0x0}, {0x0}, {0x5b6}}) pkg/sentry/syscalls/linux/sys_read_write.go:316 +0x1c4 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc002a64c88, 0x40, {{0x3}, {0xe65bf4a00000}, {0x100000}, {0x0}, {0x0}, {0x5b6}}) pkg/sentry/kernel/task_syscall.go:143 +0x694 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc002a64c88, 0x40, {{0x3}, {0xe65bf4a00000}, {0x100000}, {0x0}, {0x0}, {0x5b6}}) pkg/sentry/kernel/task_syscall.go:323 +0x50 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc002a64c88, 0x40, {{0x3}, {0xe65bf4a00000}, {0x100000}, {0x0}, {0x0}, {0x5b6}}) pkg/sentry/kernel/task_syscall.go:283 +0x78 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc002a64c88) pkg/sentry/kernel/task_syscall.go:258 +0x3c0 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc002a64c88?, 0xc002a64c88) pkg/sentry/kernel/task_run.go:269 +0x15d4 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc002a64c88, 0x104) pkg/sentry/kernel/task_run.go:97 +0x398 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start in goroutine 1132 pkg/sentry/kernel/task_start.go:400 +0x13c known lock chain: mm.mappingRWMutex -> tmpfs.filesystemRWMutex -> tmpfs.inodeMutex ====== mm.mappingRWMutex -> tmpfs.filesystemRWMutex ===== goroutine 23 [running]: gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*filesystemRWMutex).RLock(0xc000730888) bazel-out/aarch64-fastbuild/bin/pkg/sentry/fsimpl/tmpfs/filesystem_mutex.go:59 +0x40 gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*filesystem).StatAt(0xc000730820, {0x1b90660, 0xc0003d8000}, 0xc001b64488, {0x1?, 0x0?}) pkg/sentry/fsimpl/tmpfs/filesystem.go:760 +0x68 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).Stat(0xc001924310, {0x1b90660, 0xc0003d8000}, {0xb34420?, 0x0?}) pkg/sentry/vfs/file_description.go:540 +0x1f8 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DeviceID(0xc001924310) pkg/sentry/vfs/file_description.go:823 +0x6c gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).appendVMAMapsEntryLocked(0xc002b05288?, {0x1b90660, 0xc0003d8000}, {0xc00093d608?, 0x4580a0?}, 0xc002b052e8) pkg/sentry/mm/procfs.go:118 +0xe0 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).vmaMapsEntryLocked(0xc002d8f008, {0x1b90660, 0xc0003d8000}, {0xc00093d608?, 0xc002b053e8?}) pkg/sentry/mm/procfs.go:104 +0xcc gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).DebugString(0xc002d8f008, {0x1b90660, 0xc0003d8000}) pkg/sentry/mm/debug.go:49 +0x154 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).String(0xc002d8f008) pkg/sentry/mm/debug.go:38 +0x5c fmt.(*pp).handleMethods(0xc0014ff1e0, 0x73) bazel-out/aarch64-fastbuild/bin/external/io_bazel_rules_go/stdlib_/src/fmt/print.go:673 +0x550 fmt.(*pp).printArg(0xc0014ff1e0, {0x19424e0, 0xc002d8f008}, 0x73) bazel-out/aarch64-fastbuild/bin/external/io_bazel_rules_go/stdlib_/src/fmt/print.go:756 +0x878 fmt.(*pp).doPrintf(0xc0014ff1e0, {0xc001ecac60, 0x24}, {0xc001263aa0, 0x1, 0x1}) bazel-out/aarch64-fastbuild/bin/external/io_bazel_rules_go/stdlib_/src/fmt/print.go:1074 +0x448 fmt.Sprintf({0xc001ecac60, 0x24}, {0xc001263aa0, 0x1, 0x1}) bazel-out/aarch64-fastbuild/bin/external/io_bazel_rules_go/stdlib_/src/fmt/print.go:239 +0x54 gvisor.dev/gvisor/pkg/log.GoogleEmitter.Emit({0xc00036be60?}, 0x3, 0x2, {0x6418a4?, 0x27734e8?, 0x2776e80?}, {0xc001ecac60, 0x24}, {0xc001263aa0, 0x1, ...}) pkg/log/glog.go:82 +0x1c0 gvisor.dev/gvisor/pkg/log.(*BasicLogger).DebugfAtDepth(0xc00036be60, 0x2, {0xc001ecac60, 0x24}, {0xc001263aa0, 0x1, 0x1}) pkg/log/log.go:220 +0xb8 gvisor.dev/gvisor/pkg/log.DebugfAtDepth(0x1, {0xc001ecac60, 0x24}, {0xc001263aa0, 0x1, 0x1}) pkg/log/log.go:295 +0x74 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Debugf(0xc002da8c88, {0x1955b77, 0xc}, {0xc001263aa0, 0x1, 0x1}) pkg/sentry/kernel/task_log.go:54 +0xa0 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).DebugDumpState(0xc002da8c88) pkg/sentry/kernel/task_log.go:71 +0xc8 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc002da8c88?, 0xc002da8c88) pkg/sentry/kernel/task_run.go:313 +0x1480 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc002da8c88, 0x2e) pkg/sentry/kernel/task_run.go:97 +0x398 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start in goroutine 276 pkg/sentry/kernel/task_start.go:400 +0x13c ====== tmpfs.filesystemRWMutex -> tmpfs.inodeMutex ===== goroutine 1 [running]: gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*inodeMutex).Lock(0xc000737c88) bazel-out/aarch64-fastbuild/bin/pkg/sentry/fsimpl/tmpfs/inode_mutex.go:33 +0x40 gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*inode).touchCMtime(0xc000737c58) pkg/sentry/fsimpl/tmpfs/tmpfs.go:824 +0x74 gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*filesystem).doCreateAt(0xc000730820, {0x1b90780, 0xc000326220}, 0xc000497688, 0x0, 0xc00026bbc8) pkg/sentry/fsimpl/tmpfs/filesystem.go:219 +0x380 gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*filesystem).SymlinkAt(0xc000730820, {0x1b90780, 0xc000326220}, 0xc000497688, {0x1956ca8, 0xd}) pkg/sentry/fsimpl/tmpfs/filesystem.go:783 +0xa8 gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).SymlinkAt(0xc00018f200, {0x1b90780, 0xc000326220}, 0xc00013d560, 0xc00026bdb0, {0x1956ca8, 0xd}) pkg/sentry/vfs/vfs.go:695 +0x1e0 gvisor.dev/gvisor/pkg/sentry/fsimpl/dev.userspaceInit({0x1b90780, 0xc000326220}, 0xc00018f200, 0xc00013d560, {0xc0007380b0?, 0xc000737c08?}, 0x0) pkg/sentry/fsimpl/dev/dev.go:164 +0x2c4 gvisor.dev/gvisor/pkg/sentry/fsimpl/dev.FilesystemType.GetFilesystem({}, {0x1b90780, 0xc000326220}, 0xc00018f200, 0xc00013d560, {0x0, 0x0}, {0x1, {0x0, 0x0}, ...}) pkg/sentry/fsimpl/dev/dev.go:60 +0x204 gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).NewFilesystem(0xc00018f200, {0x1b90780, 0xc000326220}, 0xc00013d560, {0x0, 0x0}, {0x194d57b, 0x3}, 0xc00071e580) pkg/sentry/vfs/mount.go:252 +0x10c gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).MountDisconnected(0xc00018f200, {0x1b90780, 0xc000326220}, 0xc00013d560, {0x0, 0x0}, {0x194d57b, 0x3}, 0xc00071e580) pkg/sentry/vfs/mount.go:271 +0x6c gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).MountAt(0xc00018f200, {0x1b90780, 0xc000326220}, 0xc00013d560, {0x0, 0x0}, 0xc00026c4e8, {0x194d57b, 0x3}, 0xc00071e580) pkg/sentry/vfs/mount.go:632 +0x7c gvisor.dev/gvisor/runsc/boot.(*containerMounter).mountSubmount(0xc000460340, {0x1b90780, 0xc000326220}, 0xc00032f3b0, 0xc00044c008, 0xc0003d9320, 0xc00013d560, 0xc000391068) runsc/boot/vfs.go:850 +0x718 gvisor.dev/gvisor/runsc/boot.(*containerMounter).mountSubmounts(0xc000460340, {0x1b90780, 0xc000326220}, 0xc00032f3b0, 0xc00044c008, 0xc0003d9320, 0xc00013d560) runsc/boot/vfs.go:739 +0x734 gvisor.dev/gvisor/runsc/boot.(*containerMounter).mountAll(0xc000460340, {0x1b90780, 0xc000326220}, 0xc00013d560, 0xc00032f3b0, 0xc00044c008, 0xc000460410) runsc/boot/vfs.go:468 +0x344 gvisor.dev/gvisor/runsc/boot.setupContainerVFS({0x1b90780, 0xc000326000}, 0xc000182c98, 0xc000460340, 0xc000182cc8) runsc/boot/vfs.go:177 +0x378 gvisor.dev/gvisor/runsc/boot.(*Loader).createContainerProcess(0xc000182c88, 0xc000182c98) runsc/boot/loader.go:1159 +0x6fc gvisor.dev/gvisor/runsc/boot.(*Loader).run(0xc000182c88) runsc/boot/loader.go:917 +0x228 gvisor.dev/gvisor/runsc/boot.(*Loader).Run(0xc000182c88) runsc/boot/loader.go:865 +0x2c gvisor.dev/gvisor/runsc/cmd.(*Boot).Execute(0xc000003dc0, {0xc00013e118?, 0x11?}, 0xc000333e30, {0xc000394be0, 0x2, 0x20?}) runsc/cmd/boot.go:564 +0x25d8 github.com/google/subcommands.(*Commander).Execute(0xc00016e000, {0x1b7fd90, 0x371d060}, {0xc000394be0, 0x2, 0x2}) external/com_github_google_subcommands/subcommands.go:200 +0x530 github.com/google/subcommands.Execute(...) external/com_github_google_subcommands/subcommands.go:481 gvisor.dev/gvisor/runsc/cli.Main() runsc/cli/main.go:216 +0x1ab8 main.main() runsc/main.go:31 +0x24