panic: WARNING: circular locking detected: tmpfs.filesystemRWMutex -> kernel.taskSetRWMutex: goroutine 15274 [running]: gvisor.dev/gvisor/pkg/log.Stacks(0x60) pkg/log/log.go:316 +0x8d gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc0002d0d80, 0xc00023f600, {0xc00340a470, 0x1, 0x1}) pkg/sync/locking/lockdep.go:56 +0x1f4 gvisor.dev/gvisor/pkg/sync/locking.checkLock.func1(0xc00023fd18, 0xc0034a26f8) pkg/sync/locking/lockdep.go:76 +0x65 gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsapmShard).doRange(0xc00023fd00, 0xc0034a2850) bazel-out/k8-fastbuild-ST-a4501ad48192/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:403 +0x256 gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).Range(0xc00023fd00, 0xc0002d0d80) bazel-out/k8-fastbuild-ST-a4501ad48192/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:382 +0x58 gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc0002d0d80, 0xc00023fd00, {0x0, 0x0, 0x0}) pkg/sync/locking/lockdep.go:73 +0x46c gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc0002d0d80, 0x0) pkg/sync/locking/lockdep.go:107 +0x3ba gvisor.dev/gvisor/pkg/sentry/kernel.(*taskSetRWMutex).RLock(0xc000530180) bazel-out/k8-fastbuild-ST-a4501ad48192/bin/pkg/sentry/kernel/taskset_mutex.go:46 +0x3f gvisor.dev/gvisor/pkg/sentry/kernel.(*ThreadGroup).Leader(0xc002ff7000) pkg/sentry/kernel/threads.go:403 +0x79 gvisor.dev/gvisor/pkg/sentry/kernel/fasync.(*FileAsync).NotifyEvent(0xc000732000, 0x41) pkg/sentry/kernel/fasync/fasync.go:111 +0x190 gvisor.dev/gvisor/pkg/waiter.(*Queue).Notify(0xc000bc2690, 0x41) pkg/waiter/waiter.go:237 +0xae gvisor.dev/gvisor/pkg/sentry/vfs.(*Inotify).queueEvent(0xc000bc2620, 0xc00175ca00) pkg/sentry/vfs/inotify.go:296 +0x258 gvisor.dev/gvisor/pkg/sentry/vfs.(*Watch).Notify(0xc000a427a0, {0x0, 0x0}, 0x400, 0x0) pkg/sentry/vfs/inotify.go:609 +0x28d gvisor.dev/gvisor/pkg/sentry/vfs.(*Watches).Notify(0xc00373c798, {0x1be6850, 0xc0036cca80}, {0x0, 0x0}, 0x34a2eb8, 0xc0, 0x1, 0x1) pkg/sentry/vfs/inotify.go:481 +0x192 gvisor.dev/gvisor/pkg/sentry/vfs.(*Watches).HandleDeletion(0xc00373c798, {0x1be6850, 0xc0036cca80}) 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(0xc00373c458, 0xc0034a3050) 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(0xc00373c450, {0x1be6850, 0xc0036cca80}) pkg/sentry/fsimpl/tmpfs/tmpfs.go:528 +0x73 gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*inode).decLinksLocked(0xc00373c450, {0x1be6850, 0xc0036cca80}) pkg/sentry/fsimpl/tmpfs/tmpfs.go:515 +0x71 gvisor.dev/gvisor/pkg/sentry/fsimpl/tmpfs.(*filesystem).RmdirAt(0xc0001c6480, {0x1be6850, 0xc0036cca80}, 0xc0004ce000) pkg/sentry/fsimpl/tmpfs/filesystem.go:699 +0x6a8 gvisor.dev/gvisor/pkg/sentry/vfs.(*VirtualFilesystem).RmdirAt(0xc0036cd320, {0x1be6850, 0xc0036cca80}, 0xc002ad8c00, 0xc0034a3458) pkg/sentry/vfs/vfs.go:562 +0x1f4 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.rmdirat(0xc0036cca80, 0xd3e01f, 0x46fa2c) pkg/sentry/syscalls/linux/vfs2/filesystem.go:263 +0x1e9 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Rmdir(0xc0036cca80, {{0x20000080}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/syscalls/linux/vfs2/filesystem.go:250 +0x39 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0036cca80, 0x54, {{0x20000080}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:142 +0x9d8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0036cca80, 0x46f779, {{0x20000080}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:322 +0x6a gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc001738ff0, 0x46fc2c, {{0x20000080}, {0x0}, {0x0}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:282 +0x8f gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0036cca80) pkg/sentry/kernel/task_syscall.go:257 +0x3e7 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc0036cca80, 0xc0036cca80) pkg/sentry/kernel/task_run.go:247 +0x16b8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0036cca80) 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