panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> kernel.taskSetRWMutex: goroutine 228 [running]: gvisor.dev/gvisor/pkg/log.Stacks(0x60) pkg/log/log.go:316 +0x8d gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc0001fad80, 0xc000237600, {0xc000011668, 0x1, 0x1}) pkg/sync/locking/lockdep.go:56 +0x1f4 gvisor.dev/gvisor/pkg/sync/locking.checkLock.func1(0xc000237d18, 0xc0007466f8) pkg/sync/locking/lockdep.go:76 +0x65 gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsapmShard).doRange(0xc000237d00, 0xc000746850) bazel-out/k8-fastbuild-ST-a4501ad48192/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:403 +0x256 gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).Range(0xc000237d00, 0xc0001fad80) bazel-out/k8-fastbuild-ST-a4501ad48192/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:382 +0x58 gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc0001fad80, 0xc000237d00, {0x0, 0x0, 0x0}) pkg/sync/locking/lockdep.go:73 +0x46c gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc0001fad80, 0x0) pkg/sync/locking/lockdep.go:107 +0x3ba gvisor.dev/gvisor/pkg/sentry/kernel.(*taskSetRWMutex).RLock(0xc000522240) bazel-out/k8-fastbuild-ST-a4501ad48192/bin/pkg/sentry/kernel/taskset_mutex.go:46 +0x3f gvisor.dev/gvisor/pkg/sentry/kernel.(*ThreadGroup).Leader(0xc00075a000) pkg/sentry/kernel/threads.go:403 +0x79 gvisor.dev/gvisor/pkg/sentry/kernel/fasync.(*FileAsync).NotifyEvent(0xc0005363f0, 0x41) pkg/sentry/kernel/fasync/fasync.go:111 +0x190 gvisor.dev/gvisor/pkg/waiter.(*Queue).Notify(0xc000a42230, 0x41) pkg/waiter/waiter.go:237 +0xae gvisor.dev/gvisor/pkg/sentry/vfs.(*Inotify).queueEvent(0xc000a421c0, 0xc0002fb100) pkg/sentry/vfs/inotify.go:296 +0x258 gvisor.dev/gvisor/pkg/sentry/vfs.(*Watch).Notify(0xc00075c1c0, {0x0, 0x0}, 0x400, 0x0) pkg/sentry/vfs/inotify.go:609 +0x28d gvisor.dev/gvisor/pkg/sentry/vfs.(*Watches).Notify(0xc000567b98, {0x1be6850, 0xc000a37500}, {0x0, 0x0}, 0x746eb8, 0xc0, 0x1, 0x1) pkg/sentry/vfs/inotify.go:481 +0x192 gvisor.dev/gvisor/pkg/sentry/vfs.(*Watches).HandleDeletion(0xc000567b98, {0x1be6850, 0xc000a37500}) 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(0xc000567858, 0xc000747050) 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(0xc000567850, {0x1be6850, 0xc000a37500}) pkg/sentry/fsimpl/tmpfs/tmpfs.go:528 +0x73 gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*inode).decLinksLocked(0xc000567850, {0x1be6850, 0xc000a37500}) pkg/sentry/fsimpl/tmpfs/tmpfs.go:515 +0x71 gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*filesystem).RmdirAt(0xc000426480, {0x1be6850, 0xc000a37500}, 0xc0007e6900) pkg/sentry/fsimpl/tmpfs/filesystem.go:699 +0x6a8 gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).RmdirAt(0xc000a37da0, {0x1be6850, 0xc000a37500}, 0xc000481800, 0xc000747458) pkg/sentry/vfs/vfs.go:562 +0x1f4 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.rmdirat(0xc000a37500, 0xd3e01f, 0x46fa2c) pkg/sentry/syscalls/linux/vfs2/filesystem.go:263 +0x1e9 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Rmdir(0xc000a37500, {{0x20000080}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/syscalls/linux/vfs2/filesystem.go:250 +0x39 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000a37500, 0x54, {{0x20000080}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:142 +0x9d8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000a37500, 0x46f779, {{0x20000080}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:322 +0x6a gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000386b40, 0x46fc2c, {{0x20000080}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:282 +0x8f gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000a37500) pkg/sentry/kernel/task_syscall.go:257 +0x3e7 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc000a37500, 0xc000a37500) pkg/sentry/kernel/task_run.go:247 +0x16b8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000a37500) 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