panic: WARNING: circular locking detected: mm.activeRWMutex -> kernfs.filesystemRWMutex: goroutine 13472 [running]: gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).RangeRepeatable(0xc0001f4a40, 0xc001833710) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:440 +0x1dc gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc0001f4750, 0xc0001f4a20, {0x0, 0x0, 0x0}) pkg/sync/locking/lockdep.go:112 +0x48d gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc0001f4750, 0xffffffffffffffff) pkg/sync/locking/lockdep.go:144 +0x2dc gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*filesystemRWMutex).RLock(0xc000470190) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/fsimpl/kernfs/filesystem_mutex.go:59 +0x45 gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Dentry).InotifyWithParent(0xc002526750, {0x82c058, 0xc001f05500}, 0x8, 0xc0?, 0xb0?) pkg/sentry/fsimpl/kernfs/kernfs.go:517 +0xa8 gvisor.dev/gvisor/pkg/sentry/vfs.(*Dentry).InotifyWithParent(...) pkg/sentry/vfs/dentry.go:187 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef.func1() pkg/sentry/vfs/file_description.go:167 +0xdf gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescriptionRefs).DecRef(0xc002346780, 0xc001833b38) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/vfs/file_description_refs.go:131 +0x5f gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef(0xc002346780, {0x82c058, 0xc001f05500}) pkg/sentry/vfs/file_description.go:161 +0x6f gvisor.dev/gvisor/pkg/sentry/socket/control.(*RightsFiles).Release(0xc002126b28, {0x82c058, 0xc001f05500}) pkg/sentry/socket/control/control.go:707 +0x85 gvisor.dev/gvisor/pkg/sentry/socket/unix/transport.(*streamQueueReceiver).Recv(0xc000ab83c0, {0x82c058, 0xc001f05500}, {0xc0022dd9b0, 0x1, 0x1}, 0x0, 0x0, 0x0) pkg/sentry/socket/unix/transport/unix.go:552 +0x902 gvisor.dev/gvisor/pkg/sentry/socket/unix/transport.(*baseEndpoint).RecvMsg(0xc002363a20, {0x82c058, 0xc001f05500}, {0xc0022dd9b0, 0x1, 0x1}, 0x4?, 0x4?, 0x48?, 0x0) pkg/sentry/socket/unix/transport/unix.go:871 +0x10b gvisor.dev/gvisor/pkg/sentry/socket/unix.(*EndpointReader).ReadToBlocks.func1({0xc0022dd9b0, 0x1, 0x1}) pkg/sentry/socket/unix/io.go:115 +0x14d gvisor.dev/gvisor/pkg/safemem.FromVecReaderFunc.ReadToBlocks({0x3c0?}, {0x7f17376003c0?, 0x0?, 0x1000?, 0xffffffffffffffff?}) pkg/safemem/io.go:282 +0x38c gvisor.dev/gvisor/pkg/sentry/socket/unix.(*EndpointReader).ReadToBlocks(0xc00158c300, {0x7f17376003c0?, 0x0?, 0x200013c0?, 0x200003c0?}) pkg/sentry/socket/unix/io.go:124 +0x7f gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).withInternalMappings(0xc002372000, {0x82c058, 0xc001f05500}, {0x14ab432?, 0x12d2819?}, {0xd7?, 0x43?, 0x2d?}, 0x1?, 0xc001834648) pkg/sentry/mm/io.go:522 +0x196 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).withVecInternalMappings(0xc002372000, {0x82c058, 0xc001f05500}, {0x0?, 0xc001834680?, 0xc001f05500?, 0x2764c40?}, {0x0, 0x1, 0x0}, ...) pkg/sentry/mm/io.go:591 +0x6c5 gvisor.dev/gvisor/pkg/sentry/mm.(*MemoryManager).CopyOutFrom(0xc002372000, {0x82c058, 0xc001f05500}, {0x0?, 0x0?, 0xc001d01f80?, 0x0?}, {0x80fe40?, 0xc00158c300?}, {0x0, ...}) pkg/sentry/mm/io.go:273 +0x2a9 gvisor.dev/gvisor/pkg/usermem.IOSequence.CopyOutFrom(...) pkg/usermem/usermem.go:508 gvisor.dev/gvisor/pkg/sentry/socket/unix.(*Socket).RecvMsg.func1() pkg/sentry/socket/unix/unix.go:715 +0xf9 gvisor.dev/gvisor/pkg/sentry/socket/unix.(*Socket).RecvMsg(0xc002346840, 0xc001f05500, {{0x826250, 0xc002372000}, {0x0, 0x1, 0x200003c0, 0x1000}, {0x0, 0x1}}, ...) pkg/sentry/socket/unix/unix.go:772 +0x886 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.recvSingleMsg(0xc001f05500, {0x83cd48, 0xc002346840}, 0x20001580, 0x0, 0x0?, {0xc001f05500?}) pkg/sentry/syscalls/linux/sys_socket.go:812 +0x268 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.RecvMMsg(0xc001f05500, 0x12d2819?, {{0x4}, {0x20001580}, {0x1}, {0x0}, {0x0}, {0x0}}) pkg/sentry/syscalls/linux/sys_socket.go:730 +0x905 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc001f05500, 0x12b, {{0x4}, {0x20001580}, {0x1}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:142 +0x9c2 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc001f05500, 0x0?, {{0x4}, {0x20001580}, {0x1}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:322 +0x7d gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0022e3e10?, 0xc0021acff0?, {{0x4}, {0x20001580}, {0x1}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:282 +0x8f gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc001f05500) pkg/sentry/kernel/task_syscall.go:257 +0x4c5 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc001f05500?, 0xc001f05500) pkg/sentry/kernel/task_run.go:269 +0x1d4b gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc001f05500, 0x300) pkg/sentry/kernel/task_run.go:98 +0x41b created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:377 +0x1ad