panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> kernel.taskSetRWMutex: goroutine 487 [running]: gvisor.dev/gvisor/pkg/log.Stacks(0x60) pkg/log/log.go:316 +0x8d gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc0001fcd80, 0xc000239600, {0xc00017c218, 0x1, 0x1}) pkg/sync/locking/lockdep.go:56 +0x1f4 gvisor.dev/gvisor/pkg/sync/locking.checkLock.func1(0xc000239d18, 0xc000a2e6f8) pkg/sync/locking/lockdep.go:76 +0x65 gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsapmShard).doRange(0xc000239d00, 0xc000a2e850) bazel-out/k8-fastbuild-ST-a4501ad48192/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:403 +0x256 gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).Range(0xc000239d00, 0xc0001fcd80) bazel-out/k8-fastbuild-ST-a4501ad48192/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:382 +0x58 gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc0001fcd80, 0xc000239d00, {0x0, 0x0, 0x0}) pkg/sync/locking/lockdep.go:73 +0x46c gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc0001fcd80, 0x0) pkg/sync/locking/lockdep.go:107 +0x3ba gvisor.dev/gvisor/pkg/sentry/kernel.(*taskSetRWMutex).RLock(0xc000520360) bazel-out/k8-fastbuild-ST-a4501ad48192/bin/pkg/sentry/kernel/taskset_mutex.go:46 +0x3f gvisor.dev/gvisor/pkg/sentry/kernel.(*ThreadGroup).Leader(0xc0005d5000) pkg/sentry/kernel/threads.go:403 +0x79 gvisor.dev/gvisor/pkg/sentry/kernel/fasync.(*FileAsync).NotifyEvent(0xc000a140e0, 0x41) pkg/sentry/kernel/fasync/fasync.go:111 +0x190 gvisor.dev/gvisor/pkg/waiter.(*Queue).Notify(0xc000b3c150, 0x41) pkg/waiter/waiter.go:237 +0xae gvisor.dev/gvisor/pkg/sentry/vfs.(*Inotify).queueEvent(0xc000b3c0e0, 0xc00040db80) pkg/sentry/vfs/inotify.go:296 +0x258 gvisor.dev/gvisor/pkg/sentry/vfs.(*Watch).Notify(0xc000330520, {0x0, 0x0}, 0x400, 0x0) pkg/sentry/vfs/inotify.go:609 +0x28d gvisor.dev/gvisor/pkg/sentry/vfs.(*Watches).Notify(0xc0004feb98, {0x1be6850, 0xc000aa6000}, {0x0, 0x0}, 0xa2eeb8, 0xc0, 0x1, 0x1) pkg/sentry/vfs/inotify.go:481 +0x192 gvisor.dev/gvisor/pkg/sentry/vfs.(*Watches).HandleDeletion(0xc0004feb98, {0x1be6850, 0xc000aa6000}) pkg/sentry/vfs/inotify.go:515 +0x85 gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*inode).decRef.func1() pkg/sentry/fsimpl/tmpfs/tmpfs.go:529 +0x6b gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*inodeRefs).DecRef(0xc0004fe858, 0xc000a2f050) bazel-out/k8-fastbuild-ST-a4501ad48192/bin/pkg/sentry/fsimpl/tmpfs/inode_refs.go:131 +0x5f gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*inode).decRef(0xc0004fe850, {0x1be6850, 0xc000aa6000}) pkg/sentry/fsimpl/tmpfs/tmpfs.go:528 +0x73 gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*inode).decLinksLocked(0xc0004fe850, {0x1be6850, 0xc000aa6000}) pkg/sentry/fsimpl/tmpfs/tmpfs.go:515 +0x71 gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*filesystem).RmdirAt(0xc000420300, {0x1be6850, 0xc000aa6000}, 0xc000244480) pkg/sentry/fsimpl/tmpfs/filesystem.go:699 +0x6a8 gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).RmdirAt(0xc000aa68a0, {0x1be6850, 0xc000aa6000}, 0xc00069d000, 0xc000a2f458) pkg/sentry/vfs/vfs.go:562 +0x1f4 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.rmdirat(0xc000aa6000, 0xd3e01f, 0x46fa2c) pkg/sentry/syscalls/linux/vfs2/filesystem.go:263 +0x1e9 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Rmdir(0xc000aa6000, {{0x20000080}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/syscalls/linux/vfs2/filesystem.go:250 +0x39 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000aa6000, 0x54, {{0x20000080}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:142 +0x9d8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000aa6000, 0x46f779, {{0x20000080}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:322 +0x6a gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0001e8690, 0x46fc2c, {{0x20000080}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:282 +0x8f gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000aa6000) pkg/sentry/kernel/task_syscall.go:257 +0x3e7 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc000aa6000, 0xc000aa6000) pkg/sentry/kernel/task_run.go:247 +0x16b8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000aa6000) 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