panic: WARNING: circular locking detected: stack.packetsPendingLinkResolutionMutex -> stack.routeRWMutex: goroutine 68717 [running]: gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).RangeRepeatable(0xc00038c2f0, 0xc00662bc18) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:441 +0x314 gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc00038c360, 0xc00038c2d0, {0x0, 0x0, 0x0}) pkg/sync/locking/lockdep.go:98 +0x3a9 gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc00038c360, 0xffffffffffffffff) pkg/sync/locking/lockdep.go:126 +0x2df gvisor.dev/gvisor/pkg/tcpip/stack.(*routeRWMutex).RLock(0xc00607a050) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/tcpip/stack/route_mutex.go:59 +0x58 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).resolvedFields(0xc00607a000, 0x0) pkg/tcpip/stack/route.go:379 +0xa5 gvisor.dev/gvisor/pkg/tcpip/stack.(*packetsPendingLinkResolution).enqueue(0xc000c3a798, 0x10?, {0xc00602e280?}) pkg/tcpip/stack/pending_packets.go:128 +0xc5 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).WritePacket(0xc000c3a600, 0x5b4?, {0x14770a5?}) pkg/tcpip/stack/nic.go:368 +0x174 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).writePacket(0xc0009df600, 0xc00607a000, {0x10?}, 0x9e6c09?, 0x0) pkg/tcpip/network/ipv6/ipv6.go:863 +0x4e6 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).WritePacket(0xc0009df600, 0xc00607a000, {0x86dd?, 0x0?, 0x0?}, {0x4a?}) pkg/tcpip/network/ipv6/ipv6.go:814 +0x3d9 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc00607a000, {0x602e250?, 0xc0?, 0x0?}, {0x10?}) pkg/tcpip/stack/route.go:498 +0x139 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.sendTCP(0xc00607a000, {{0x4e22, {0xc00602e250, 0x10}, 0x0, {0xc00602e240, 0x10}}, 0x40, 0x0, 0x14, ...}, ...) pkg/tcpip/transport/tcp/connect.go:912 +0x3fc gvisor.dev/gvisor/pkg/tcpip/transport/tcp.replyWithReset(0xc000274e22?, 0xc004e20000, 0x0, 0x0?, 0x0?) pkg/tcpip/transport/tcp/protocol.go:231 +0x578 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*protocol).HandleUnknownDestinationPacket(0xc000274900, {0x4e22, {0xc00602e250, 0x10}, 0x0, {0xc00602e240, 0x10}}, {0xc00602e240?}) pkg/tcpip/transport/tcp/protocol.go:169 +0x286 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverTransportPacket(0xc000c3a600, 0x6, {0x106bca5?}) pkg/tcpip/stack/nic.go:847 +0x55d gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).processIPv6RawPayloadHeader(0xc0009df600, 0xc005dafe50, 0x10?, {0xc000235b60?}, 0xc000235b60?, 0x0, 0xc0?) pkg/tcpip/network/ipv6/ipv6.go:1481 +0x285 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).processExtensionHeader(0xc0009df600, 0xc005cdeab0, 0xc005db0230, {0xc00350950e, 0x28, 0xf2}, 0xc005db0140, 0xc005db00de, 0x0) pkg/tcpip/network/ipv6/ipv6.go:1395 +0x596 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).processExtensionHeaders(0x106c1dc?, {0xc00350950e, 0x28, 0xf2}, {0xc00605c000}, 0x35?) pkg/tcpip/network/ipv6/ipv6.go:1440 +0x43e gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).deliverPacketLocally(0xc0009df600, {0xc00350950e, 0x28, 0xf2}, {0xc00038c480?}, {0xc0009e6c09, 0x7}) pkg/tcpip/network/ipv6/ipv6.go:1329 +0x187 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).handleValidatedPacket(0xc0009df600, {0xc00350950e, 0x28, 0xf2}, {0xc0009e6c09?}, {0xc0009e6c09, 0x7}) pkg/tcpip/network/ipv6/ipv6.go:1308 +0x518 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).HandlePacket(0xc0009df600, {0x106bca5?}) pkg/tcpip/network/ipv6/ipv6.go:1092 +0x76b gvisor.dev/gvisor/pkg/tcpip/stack.(*groDispatcher).dispatch(0xc000c3a818, {0xc00093e720?}, 0x86dd, {0x6b2288, 0xc0009df600}) pkg/tcpip/stack/gro.go:297 +0x13dd gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0xc000c3a600, 0x86dd, {0x1?}) pkg/tcpip/stack/nic.go:741 +0x192 gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).DeliverNetworkPacket(0xc000bd8690, 0x106a98c?, {0x106c19b?}) pkg/tcpip/link/nested/nested.go:59 +0xc6 gvisor.dev/gvisor/pkg/tcpip/link/packetsocket.(*endpoint).DeliverNetworkPacket(0xc000bd8690, 0x1?, {0xe?}) pkg/tcpip/link/packetsocket/packetsocket.go:46 +0x6a gvisor.dev/gvisor/pkg/tcpip/link/channel.(*Endpoint).InjectInbound(0xc0008a9c80, 0x0?, {0xc003509400?}) pkg/tcpip/link/channel/channel.go:194 +0x67 gvisor.dev/gvisor/pkg/tcpip/link/tun.(*Device).Write(0xc000744728, 0xc005cde660?) pkg/tcpip/link/tun/device.go:249 +0x7e6 gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).Write(0xc0007446c0, {0x6b3718?, 0xc0064d6000}, {{0x6ae2f8, 0xc00644c000}, {0x0, 0x1, 0x20000040, 0x9e}, {0x0, ...}}, ...) pkg/sentry/devices/tundev/tundev.go:164 +0x55f gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).Write(0xc0007446c0, {0x6b3718, 0xc0064d6000}, {{0x6ae2f8, 0xc00644c000}, {0x0, 0x1, 0x20000040, 0x9e}, {0x0, ...}}, ...) pkg/sentry/vfs/file_description.go:674 +0x152 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.write(0x0?, 0x0?, {{0x6ae2f8, 0xc00644c000}, {0x0, 0x1, 0x20000040, 0x9e}, {0x0, 0x1}}, ...) pkg/sentry/syscalls/linux/sys_read_write.go:347 +0xae gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Write(0xc0064d6000, {{0xc8}, {0x20000040}, {0x9e}, {0x9e}, {0x0}, {0x0}}) pkg/sentry/syscalls/linux/sys_read_write.go:316 +0x34f gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0064d6000, 0x1, {{0xc8}, {0x20000040}, {0x9e}, {0x9e}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:142 +0xab8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0064d6000, 0x1?, {{0xc8}, {0x20000040}, {0x9e}, {0x9e}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:322 +0x8e gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc005ceba40?, 0x106a98c?, {{0xc8}, {0x20000040}, {0x9e}, {0x9e}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:282 +0xc5 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0064d6000) pkg/sentry/kernel/task_syscall.go:257 +0x53b gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc0064d6000?, 0xc0064d6000) pkg/sentry/kernel/task_run.go:253 +0x1e94 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0064d6000, 0x718) 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