panic: WARNING: circular locking detected: stack.packetsPendingLinkResolutionMutex -> stack.routeRWMutex: goroutine 13798 [running]: gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).RangeRepeatable(0xc0000322f0, 0xc0025a1318) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:441 +0x1dc gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc000032360, 0xc0000322d0, {0x0, 0x0, 0x0}) pkg/sync/locking/lockdep.go:98 +0x373 gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc000032360, 0xffffffffffffffff) pkg/sync/locking/lockdep.go:126 +0x28c gvisor.dev/gvisor/pkg/tcpip/stack.(*routeRWMutex).RLock(0xc0008ae410) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/tcpip/stack/route_mutex.go:59 +0x45 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).resolvedFields(0xc0008ae3c0, 0x0) pkg/tcpip/stack/route.go:379 +0x91 gvisor.dev/gvisor/pkg/tcpip/stack.(*packetsPendingLinkResolution).enqueue(0xc0014da198, 0x10?, {0xc0005b2120?}) pkg/tcpip/stack/pending_packets.go:128 +0xac gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).WritePacket(0xc0014da000, 0x5b4?, {0xc00116bbf0?}) pkg/tcpip/stack/nic.go:368 +0x145 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).writePacket(0xc0014e6000, 0xc0008ae3c0, {0x10?}, 0x38c5e9?, 0x0) pkg/tcpip/network/ipv6/ipv6.go:863 +0x409 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).WritePacket(0xc0014e6000, 0xc0008ae3c0, {0x86dd?, 0x0?, 0x0?}, {0x438800000000?}) pkg/tcpip/network/ipv6/ipv6.go:814 +0x2d8 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc0008ae3c0, {0x5b2120?, 0xc0?, 0x0?}, {0x10?}) pkg/tcpip/stack/route.go:498 +0xf9 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.sendTCP(0xc0008ae3c0, {{0x4388, {0xc0005b2120, 0x10}, 0x0, {0xc000535170, 0x10}}, 0x40, 0x0, 0x2, ...}, ...) pkg/tcpip/transport/tcp/connect.go:912 +0x3fc gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendTCP(0xc001c1c600, 0x1133a39?, {{0x4388, {0xc0005b2120, 0x10}, 0x0, {0xc000535170, 0x10}}, 0x40, 0x0, ...}, ...) pkg/tcpip/transport/tcp/connect.go:810 +0x19a gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendSynTCP(0xc001c1c600, 0xc0008ae3c0, {{0x4388, {0xc0005b2120, 0x10}, 0x0, {0xc000535170, 0x10}}, 0x40, 0x0, ...}, ...) pkg/tcpip/transport/tcp/connect.go:800 +0x2fb gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*handshake).start(0xc00101f560) pkg/tcpip/transport/tcp/connect.go:575 +0x7fa gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).connect(0xc001c1c600, {0x0?, {0xc000535170?, 0x7f20cc25e418?}, 0x3580?}, 0x1) pkg/tcpip/transport/tcp/endpoint.go:2462 +0x9d2 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).Connect(0xc001c1c600, {0x1?, {0xc000535170?, 0xc001e280a0?}, 0x1c?}) pkg/tcpip/transport/tcp/endpoint.go:2189 +0xe5 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*Socket).Connect(0xc001e96540, 0x7a9548?, {0xc001e280a0, 0x1c, 0x1c}, 0x1) pkg/sentry/socket/netstack/netstack.go:702 +0x3fe gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Connect(0xc00154f500, {{0x3}, {0x200003c0}, {0x1c}, {0x0}, {0x0}, {0x0}}) pkg/sentry/syscalls/linux/sys_socket.go:279 +0x1f6 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc00154f500, 0x2a, {{0x3}, {0x200003c0}, {0x1c}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:142 +0x9b9 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc00154f500, 0x0?, {{0x3}, {0x200003c0}, {0x1c}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:322 +0x7d gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc002017450?, 0xc001010a50?, {{0x3}, {0x200003c0}, {0x1c}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:282 +0x8f gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc00154f500) pkg/sentry/kernel/task_syscall.go:257 +0x4c5 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc00154f500?, 0xc00154f500) pkg/sentry/kernel/task_run.go:253 +0x1965 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc00154f500, 0x16f) pkg/sentry/kernel/task_run.go:94 +0x3a2 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:377 +0x1ad