panic: WARNING: circular locking detected: stack.packetsPendingLinkResolutionMutex -> stack.routeRWMutex: goroutine 158420 [running]: gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).RangeRepeatable(0xc0002242f0, 0xc002792600) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:441 +0x1dc gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc000224360, 0xc0002242d0, {0x0, 0x0, 0x0}) pkg/sync/locking/lockdep.go:98 +0x373 gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc000224360, 0xffffffffffffffff) pkg/sync/locking/lockdep.go:126 +0x28c gvisor.dev/gvisor/pkg/tcpip/stack.(*routeRWMutex).RLock(0xc0004604b0) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/tcpip/stack/route_mutex.go:59 +0x45 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).resolvedFields(0xc000460460, 0x0) pkg/tcpip/stack/route.go:379 +0x91 gvisor.dev/gvisor/pkg/tcpip/stack.(*packetsPendingLinkResolution).enqueue(0xc00132c198, 0x10?, {0xc003b74d30?}) pkg/tcpip/stack/pending_packets.go:128 +0xac gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).WritePacket(0xc00132c000, 0x5b4?, {0xc009e02ed0?}) pkg/tcpip/stack/nic.go:368 +0x145 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).writePacket(0xc0010d0000, 0xc000460460, {0x10?}, 0x364029?, 0x0) pkg/tcpip/network/ipv6/ipv6.go:863 +0x409 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).WritePacket(0xc0010d0000, 0xc000460460, {0x86dd?, 0x0?, 0x0?}, {0x4e2200224e10?}) pkg/tcpip/network/ipv6/ipv6.go:814 +0x2d8 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc000460460, {0x3b74d00?, 0xc0?, 0x0?}, {0x10?}) pkg/tcpip/stack/route.go:498 +0xf9 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.sendTCP(0xc000460460, {{0x4e22, {0xc003b74d00, 0x10}, 0x0, {0xc003b74cf0, 0x10}}, 0x40, 0x0, 0x14, ...}, ...) pkg/tcpip/transport/tcp/connect.go:912 +0x3fc gvisor.dev/gvisor/pkg/tcpip/transport/tcp.replyWithReset(0xc000254e22?, 0xc009ce0ff0, 0x0, 0x0?, 0x0?) pkg/tcpip/transport/tcp/protocol.go:231 +0x658 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*protocol).HandleUnknownDestinationPacket(0xc0002265a0, {0x4e22, {0xc003b74d00, 0x10}, 0x0, {0xc003b74cf0, 0x10}}, {0xc003b74cf0?}) pkg/tcpip/transport/tcp/protocol.go:169 +0x1fb gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverTransportPacket(0xc00132c000, 0x6, {0xc0011dda08?}) pkg/tcpip/stack/nic.go:847 +0x58e gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).processIPv6RawPayloadHeader(0xc0010d0000, 0xc0011dddb8, 0x10?, {0xc000e05260?}, 0xc000e05260?, 0x0, 0xc0?) pkg/tcpip/network/ipv6/ipv6.go:1481 +0x2ac gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).processExtensionHeader(0xc0010d0000, 0xc009e02e10, 0xc0011de178, {0xc000b3f50e, 0x28, 0xf2}, 0xc0011de0a0, 0xc0011de046, 0x0) pkg/tcpip/network/ipv6/ipv6.go:1395 +0x4cc gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).processExtensionHeaders(0xc0030abf88?, {0xc000b3f50e, 0x28, 0xf2}, {0xc0002503c0}, 0x40?) pkg/tcpip/network/ipv6/ipv6.go:1440 +0x3b2 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).deliverPacketLocally(0xc0010d0000, {0xc000b3f50e, 0x28, 0xf2}, {0x13?}, {0xc000364029, 0x7}) pkg/tcpip/network/ipv6/ipv6.go:1329 +0x156 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).handleValidatedPacket(0xc0010d0000, {0xc000b3f50e, 0x28, 0xf2}, {0xc000364029?}, {0xc000364029, 0x7}) pkg/tcpip/network/ipv6/ipv6.go:1308 +0x2fb gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).HandlePacket(0xc0010d0000, {0xc004106400?}) pkg/tcpip/network/ipv6/ipv6.go:1092 +0x68c gvisor.dev/gvisor/pkg/tcpip/stack.(*groDispatcher).dispatch(0xc00132c218, {0xc000a082a0?}, 0x86dd, {0x79bd28, 0xc0010d0000}) pkg/tcpip/stack/gro.go:297 +0x899 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0xc00132c000, 0x86dd, {0x1?}) pkg/tcpip/stack/nic.go:741 +0x1cc gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).DeliverNetworkPacket(0xc0005c0e60, 0x1a90c0b?, {0xe?}) pkg/tcpip/link/nested/nested.go:59 +0x99 gvisor.dev/gvisor/pkg/tcpip/link/packetsocket.(*endpoint).DeliverNetworkPacket(0xc0005c0e60, 0x1?, {0xc000b3f400?}) pkg/tcpip/link/packetsocket/packetsocket.go:46 +0x59 gvisor.dev/gvisor/pkg/tcpip/link/channel.(*Endpoint).InjectInbound(...) pkg/tcpip/link/channel/channel.go:194 gvisor.dev/gvisor/pkg/tcpip/link/tun.(*Device).Write(0xc000d6a128, 0xc009e02840) pkg/tcpip/link/tun/device.go:249 +0xde6 gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).Write(0xc000d6a0c0, {0x79d238?, 0xc00876ca80}, {{0x797d98, 0xc002180000}, {0x0, 0x1, 0x20000040, 0x9e}, {0x0, ...}}, ...) pkg/sentry/devices/tundev/tundev.go:164 +0x3b6 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).Write(0xc000d6a0c0, {0x79d238, 0xc00876ca80}, {{0x797d98, 0xc002180000}, {0x0, 0x1, 0x20000040, 0x9e}, {0x0, ...}}, ...) pkg/sentry/vfs/file_description.go:674 +0x125 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.write(0x2da120?, 0xc000d6a0c0, {{0x797d98, 0xc002180000}, {0x0, 0x1, 0x20000040, 0x9e}, {0x0, 0x1}}, ...) pkg/sentry/syscalls/linux/sys_read_write.go:347 +0x9d gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Write(0xc00876ca80, {{0xc8}, {0x20000040}, {0x9e}, {0x9e}, {0x0}, {0x0}}) pkg/sentry/syscalls/linux/sys_read_write.go:316 +0x2a8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc00876ca80, 0x1, {{0xc8}, {0x20000040}, {0x9e}, {0x9e}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:142 +0x9b9 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc00876ca80, 0x0?, {{0xc8}, {0x20000040}, {0x9e}, {0x9e}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:322 +0x7d gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc00794aea0?, 0xc009e16f00?, {{0xc8}, {0x20000040}, {0x9e}, {0x9e}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:282 +0x8f gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc00876ca80) pkg/sentry/kernel/task_syscall.go:257 +0x4c5 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc00876ca80?, 0xc00876ca80) pkg/sentry/kernel/task_run.go:253 +0x1965 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc00876ca80, 0x202d) 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