panic: WARNING: circular locking detected: stack.packetEndpointListRWMutex -> fasync.fileMutex: goroutine 2802911 [running]: gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).RangeRepeatable(0xc000332890, 0xc02094d8f8) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:440 +0x1dc gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc000332f30, 0xc000332870, {0xc001d4c220, 0x3, 0x4}) pkg/sync/locking/lockdep.go:112 +0x48d gvisor.dev/gvisor/pkg/sync/locking.checkLock.func1(0xc0003329d0?, 0xc02094da20?) pkg/sync/locking/lockdep.go:115 +0x65 gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).RangeRepeatable(0xc0003329b0, 0xc02094db30) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:440 +0x1dc gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc000332f30, 0xc000332990, {0xc008423550, 0x2, 0x2}) pkg/sync/locking/lockdep.go:112 +0x48d gvisor.dev/gvisor/pkg/sync/locking.checkLock.func1(0xc000243ea0?, 0xc02094dc58?) pkg/sync/locking/lockdep.go:115 +0x65 gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).RangeRepeatable(0xc000243e80, 0xc02094dd68) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:440 +0x1dc gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc000332f30, 0xc000243e60, {0xc01df52ec0, 0x1, 0x1}) pkg/sync/locking/lockdep.go:112 +0x48d gvisor.dev/gvisor/pkg/sync/locking.checkLock.func1(0xc000243e10?, 0xc02094de90?) pkg/sync/locking/lockdep.go:115 +0x65 gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).RangeRepeatable(0xc000243df0, 0xc02094dfa0) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:440 +0x1dc gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc000332f30, 0xc000243dd0, {0x0, 0x0, 0x0}) pkg/sync/locking/lockdep.go:112 +0x48d gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc000332f30, 0xffffffffffffffff) pkg/sync/locking/lockdep.go:144 +0x2dc gvisor.dev/gvisor/pkg/sentry/kernel/fasync.(*fileMutex).Lock(0xc000c9a818) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/kernel/fasync/file_mutex.go:33 +0x45 gvisor.dev/gvisor/pkg/sentry/kernel/fasync.(*FileAsync).NotifyEvent(0xc000c9a7e0, 0x41) pkg/sentry/kernel/fasync/fasync.go:90 +0x65 gvisor.dev/gvisor/pkg/waiter.(*Queue).Notify(0xc018ec7fb0, 0x41) pkg/waiter/waiter.go:238 +0xae gvisor.dev/gvisor/pkg/tcpip/transport/packet.(*endpoint).HandlePacket(0xc012ba4380, 0x2, 0x800, 0xc00785a280) pkg/tcpip/transport/packet/endpoint.go:473 +0x6af gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverLinkPacket.func2({0x829bc0, 0xc012ba4380}) pkg/tcpip/stack/nic.go:772 +0x31e gvisor.dev/gvisor/pkg/tcpip/stack.(*packetEndpointList).forEach(0xc018ee2090, 0xc02094f188) pkg/tcpip/stack/nic.go:130 +0x122 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverLinkPacket(0xc001280000, 0x800, 0xc00785a640) pkg/tcpip/stack/nic.go:787 +0x236 gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).DeliverLinkPacket(0xc00073aa50, 0x1aa33a5?, 0x0?) pkg/tcpip/link/nested/nested.go:69 +0x99 gvisor.dev/gvisor/pkg/tcpip/link/packetsocket.(*endpoint).WritePackets(0xc00073aa50, {{0xc01df52ea8, 0x1, 0x1}}) pkg/tcpip/link/packetsocket/packetsocket.go:52 +0x9f gvisor.dev/gvisor/pkg/tcpip/stack.(*delegatingQueueingDiscipline).WritePacket(0xc000b040b0, 0x132c105?) pkg/tcpip/stack/nic.go:146 +0x98 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writeRawPacket(0xc001280000, 0xc00785a640) pkg/tcpip/stack/nic.go:392 +0x85 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacket(0xc001280000, 0x0?) pkg/tcpip/stack/nic.go:386 +0x5a gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).WritePacket(0xc001280000, 0xc00000ffde?, 0xc00785a640) pkg/tcpip/stack/nic.go:347 +0x206 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacketPostRouting(0xc000990900, 0xc0108a8480, 0xc00785a640, 0x0) pkg/tcpip/network/ipv4/ipv4.go:588 +0x4db gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacket(0xc000990900, 0x0?, 0x4?) pkg/tcpip/network/ipv4/ipv4.go:538 +0x2d4 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).WritePacket(0x310580?, 0xc0108a8480, {0x800?, 0x0?, 0x0?}, 0x0?) pkg/tcpip/network/ipv4/ipv4.go:506 +0x1a5 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc0108a8480, {0xaa1414ac?, 0x0?, 0x0?}, 0x0?) pkg/tcpip/stack/route.go:495 +0xf9 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.sendTCP(0xc0108a8480, {{0x64f1, {{0xac, 0x14, 0x14, 0xaa, 0x0, 0x0, 0x0, 0x0, ...}, ...}, ...}, ...}, ...) pkg/tcpip/transport/tcp/connect.go:918 +0x3fc gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendTCP(0xc01c934000, 0x132c105?, {{0x64f1, {{0xac, 0x14, 0x14, 0xaa, 0x0, 0x0, 0x0, ...}, ...}, ...}, ...}, ...) pkg/tcpip/transport/tcp/connect.go:816 +0x19a gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendSynTCP(0xc01c934000, 0xc0108a8480, {{0x64f1, {{0xac, 0x14, 0x14, 0xaa, 0x0, 0x0, 0x0, ...}, ...}, ...}, ...}, ...) pkg/tcpip/transport/tcp/connect.go:806 +0x305 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*handshake).start(0xc017204870) pkg/tcpip/transport/tcp/connect.go:581 +0x7fc gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).connect(0xc01c934000, {0x0, {{0xac, 0x14, 0x14, 0xaa, 0x0, 0x0, 0x0, 0x0, ...}, ...}, ...}, ...) pkg/tcpip/transport/tcp/endpoint.go:2462 +0xb9b gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).Connect(0xc01c934000, {0x0, {{0xac, 0x14, 0x14, 0xaa, 0x0, 0x0, 0x0, 0x0, ...}, ...}, ...}) pkg/tcpip/transport/tcp/endpoint.go:2186 +0xe5 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*sock).Connect(0xc0094d83c0, 0x854288?, {0xc020a92c60, 0x10, 0x10}, 0x1) pkg/sentry/socket/netstack/netstack.go:707 +0x5e6 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Connect(0xc0118c6000, 0xc005c899e8?, {{0x3}, {0x200001c0}, {0x10}, {0x0}, {0x0}, {0x0}}) pkg/sentry/syscalls/linux/sys_socket.go:279 +0x1f6 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0118c6000, 0x2a, {{0x3}, {0x200001c0}, {0x10}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:142 +0x9c2 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0118c6000, 0x0?, {{0x3}, {0x200001c0}, {0x10}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:322 +0x7d gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc01fdba9c0?, 0xc0112cc870?, {{0x3}, {0x200001c0}, {0x10}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:282 +0x8f gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0118c6000) pkg/sentry/kernel/task_syscall.go:257 +0x4c5 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc0118c6000?, 0xc0118c6000) pkg/sentry/kernel/task_run.go:269 +0x1d4b gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0118c6000, 0xb611) pkg/sentry/kernel/task_run.go:98 +0x41b created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:383 +0x1ad