panic: WARNING: circular locking detected: stack.packetsPendingLinkResolutionMutex -> stack.routeRWMutex: goroutine 175275 [running]: gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).RangeRepeatable(0xc0003402f0, 0xc006cf28c8) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:441 +0x314 gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc000340360, 0xc0003402d0, {0x0, 0x0, 0x0}) pkg/sync/locking/lockdep.go:98 +0x3a9 gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc000340360, 0xffffffffffffffff) pkg/sync/locking/lockdep.go:126 +0x2df gvisor.dev/gvisor/pkg/tcpip/stack.(*routeRWMutex).RLock(0xc004f98190) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/tcpip/stack/route_mutex.go:59 +0x58 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).resolvedFields(0xc004f98140, 0x0) pkg/tcpip/stack/route.go:379 +0xa5 gvisor.dev/gvisor/pkg/tcpip/stack.(*packetsPendingLinkResolution).enqueue(0xc000a60798, 0x10?, {0xc0003f77c0?}) pkg/tcpip/stack/pending_packets.go:128 +0xc5 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).WritePacket(0xc000a60600, 0x5b4?, {0x14770a5?}) pkg/tcpip/stack/nic.go:368 +0x174 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).writePacket(0xc0007ad200, 0xc004f98140, {0x10?}, 0x3f6019?, 0x0) pkg/tcpip/network/ipv6/ipv6.go:863 +0x4e6 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).WritePacket(0xc0007ad200, 0xc004f98140, {0x86dd?, 0x0?, 0x0?}, {0x4a?}) pkg/tcpip/network/ipv6/ipv6.go:814 +0x3d9 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc004f98140, {0x3f77c0?, 0xc0?, 0x0?}, {0x10?}) pkg/tcpip/stack/route.go:498 +0x139 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.sendTCP(0xc004f98140, {{0x76ed, {0xc0003f77c0, 0x10}, 0x0, {0xc0004ce7c0, 0x10}}, 0x40, 0x0, 0x2, ...}, ...) pkg/tcpip/transport/tcp/connect.go:912 +0x3fc gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendTCP(0xc005251200, 0x109a4a5?, {{0x76ed, {0xc0003f77c0, 0x10}, 0x0, {0xc0004ce7c0, 0x10}}, 0x40, 0x0, ...}, ...) pkg/tcpip/transport/tcp/connect.go:810 +0x1ba gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendSynTCP(0xc005251200, 0x6abd80?, {{0x76ed, {0xc0003f77c0, 0x10}, 0x0, {0xc0004ce7c0, 0x10}}, 0x40, 0x0, ...}, ...) pkg/tcpip/transport/tcp/connect.go:800 +0x27b gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*handshake).start(0xc0043266c0) pkg/tcpip/transport/tcp/connect.go:575 +0x8ba gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).connect(0xc005251200, {0x204480?, {0xc0004ce7c0?, 0xc00035b950?}, 0x44f0?}, 0x1) pkg/tcpip/transport/tcp/endpoint.go:2462 +0xb0c gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).Connect(0xc005251200, {0xa?, {0xc0004ce7c0?, 0x20000040?}, 0x5c?}) pkg/tcpip/transport/tcp/endpoint.go:2189 +0xf6 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*Socket).Connect(0xc000a78fc0, 0x6bfa28?, {0xc0005005a0, 0x1c, 0x1c}, 0x1) pkg/sentry/socket/netstack/netstack.go:702 +0x484 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Connect(0xc006c6e000, {{0x3}, {0x20000040}, {0x1c}, {0x0}, {0x0}, {0x0}}) pkg/sentry/syscalls/linux/sys_socket.go:279 +0x312 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc006c6e000, 0x2a, {{0x3}, {0x20000040}, {0x1c}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:142 +0xab8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc006c6e000, 0x1?, {{0x3}, {0x20000040}, {0x1c}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:322 +0x8e gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0004da3c0?, 0x106a98c?, {{0x3}, {0x20000040}, {0x1c}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:282 +0xc5 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc006c6e000) pkg/sentry/kernel/task_syscall.go:257 +0x53b gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc006c6e000?, 0xc006c6e000) pkg/sentry/kernel/task_run.go:253 +0x1e94 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc006c6e000, 0x9f7) pkg/sentry/kernel/task_run.go:94 +0x2cc created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:377 +0x1da