panic: WARNING: circular locking detected: tmpfs.inodeMutex -> mm.mappingRWMutex: goroutine 309 [running]: gvisor.dev/gvisor/pkg/log.Stacks(0x60) pkg/log/log.go:316 +0x8d gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc000237780, 0xc000237d00, {0xc00095e010, 0x1, 0x1}) pkg/sync/locking/lockdep.go:56 +0x1f4 gvisor.dev/gvisor/pkg/sync/locking.checkLock.func1(0xc000237d98, 0xc0004066e8) pkg/sync/locking/lockdep.go:76 +0x65 gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsapmShard).doRange(0xc000237d80, 0xc000406840) bazel-out/k8-fastbuild-ST-a4501ad48192/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:403 +0x256 gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).Range(0xc000237d80, 0xc000237780) bazel-out/k8-fastbuild-ST-a4501ad48192/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:382 +0x58 gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc000237780, 0xc000237d80, {0x0, 0x0, 0x0}) pkg/sync/locking/lockdep.go:73 +0x46c gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc000237780, 0x0) pkg/sync/locking/lockdep.go:107 +0x3ba gvisor.dev/gvisor/pkg/sentry/mm.(*mappingRWMutex).RLock(0xc000933064) bazel-out/k8-fastbuild-ST-a4501ad48192/bin/pkg/sentry/mm/mapping_mutex.go:46 +0x3f gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).withInternalMappings(0xc000933000, {0x1be6590, 0xc000721500}, {0xc000569000, 0xc}, {0x79, 0xf7, 0x46}, 0x0, 0xc000406df8) pkg/sentry/mm/io.go:530 +0xf8 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).withVecInternalMappings(0xc000933000, {0x1be6590, 0xc000721500}, {0x0, 0x8, 0x10, 0x7f2e78fc05b8}, {0x1, 0x0, 0x0}, ...) pkg/sentry/mm/io.go:591 +0x6b5 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).CopyInTo(0xc000933000, {0x1be6590, 0xc000721500}, {0x0, 0xc00003e380, 0x0, 0x46fc4c}, {0x1b8d7e0, 0xc0002122e0}, {0x0, ...}) pkg/sentry/mm/io.go:310 +0x229 gvisor.dev/gvisor/pkg/usermem.IOSequence.CopyInTo(...) pkg/usermem/usermem.go:515 gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*regularFileFD).pwrite(0xc0002dc680, {0x1be6590, 0xc000721500}, {{0x1bd91e8, 0xc000933000}, {0x0, 0x1, 0x20000080, 0x7ffff000}, {0x0, ...}}, ...) pkg/sentry/fsimpl/tmpfs/regular_file.go:471 +0x57b gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*regularFileFD).Write(0xc0002dc680, {0x1be6590, 0xc000721500}, {{0x1bd91e8, 0xc000933000}, {0x0, 0x1, 0x20000080, 0x7ffff000}, {0x0, ...}}, ...) pkg/sentry/fsimpl/tmpfs/regular_file.go:495 +0x11d gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).Write(0xc0002dc680, {0x1be6590, 0xc000721500}, {{0x1bd91e8, 0xc000933000}, {0x0, 0x1, 0x20000080, 0x7ffff000}, {0x0, ...}}, ...) pkg/sentry/vfs/file_description.go:665 +0x125 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.write(0x5ed3ee, 0xc0002dc680, {{0x1bd91e8, 0xc000933000}, {0x0, 0x1, 0x20000080, 0x7ffff000}, {0x0, 0x1}}, ...) pkg/sentry/syscalls/linux/vfs2/read_write.go:348 +0x9d gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Write(0xc000721500, {{0x5}, {0x20000080}, {0x11ffffce1}, {0x7f9aef421c80}, {0x7f9aef421c80}, {0x55a0c62bf180}}) pkg/sentry/syscalls/linux/vfs2/read_write.go:317 +0x2c5 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000721500, 0x1, {{0x5}, {0x20000080}, {0x11ffffce1}, {0x7f9aef421c80}, {0x7f9aef421c80}, {0x55a0c62bf180}}) pkg/sentry/kernel/task_syscall.go:142 +0x9d8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000721500, 0x46f779, {{0x5}, {0x20000080}, {0x11ffffce1}, {0x7f9aef421c80}, {0x7f9aef421c80}, {0x55a0c62bf180}}) pkg/sentry/kernel/task_syscall.go:322 +0x6a gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc00071e1e0, 0x46fc2c, {{0x5}, {0x20000080}, {0x11ffffce1}, {0x7f9aef421c80}, {0x7f9aef421c80}, {0x55a0c62bf180}}) pkg/sentry/kernel/task_syscall.go:282 +0x8f gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000721500) pkg/sentry/kernel/task_syscall.go:257 +0x3e7 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc000721500, 0xc000721500) pkg/sentry/kernel/task_run.go:247 +0x16b8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000721500) pkg/sentry/kernel/task_run.go:90 +0x35b created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:364 +0x191