panic: interface conversion: stack.TransportEndpoint is nil, not *tcp.endpoint goroutine 1731337 [running]: panic(0x10a11c0, 0xc00e425c50) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc10f507b30 sp=0xc10f507a68 pc=0x437c65 runtime.panicdottypeE(...) GOROOT/src/runtime/iface.go:261 runtime.panicdottypeI(0x0, 0x1232fc0, 0x10d68a0) GOROOT/src/runtime/iface.go:271 +0xcc fp=0xc10f507b58 sp=0xc10f507b30 pc=0x40b2ec gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*dispatcher).queuePacket(0xc0009a00c0, 0x0, 0x0, 0x0, 0xc00b92daf4, 0x4, 0x0, 0x0, 0x4, 0x13b8e78, ...) pkg/tcpip/transport/tcp/dispatcher.go:178 +0x416 fp=0xc10f50a280 sp=0xc10f507b58 pc=0xab3216 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*protocol).QueuePacket(0x0, 0x0, 0xc00e977500, 0x2, 0xc00b92daf4, 0x4, 0x53fe, 0xc00b92daf0, 0x4, 0xc00debcf00) pkg/tcpip/transport/tcp/protocol.go:134 +0x9b fp=0xc10f50a2f0 sp=0xc10f50a280 pc=0xabf59b gvisor.dev/gvisor/pkg/tcpip/stack.(*endpointsByNIC).handlePacket(0xc00e425b00, 0x2, 0xc00b92daf4, 0x4, 0x53fe, 0xc00b92daf0, 0x4, 0xc00debcf00, 0xc00f48a3f8) pkg/tcpip/stack/transport_demuxer.go:175 +0x20b fp=0xc10f50a370 sp=0xc10f50a2f0 pc=0x93a34b gvisor.dev/gvisor/pkg/tcpip/stack.(*transportDemuxer).deliverPacket(0xc0009ae528, 0xc000000006, 0xc00debcf00, 0x2, 0xc00b92daf4, 0x4, 0x53fe, 0xc00b92daf0, 0x4, 0xc00b92daec) pkg/tcpip/stack/transport_demuxer.go:570 +0x570 fp=0xc10f50a408 sp=0xc10f50a370 pc=0x93d090 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverTransportPacket(0xc0009c2000, 0x6, 0xc00debcf00, 0x0) pkg/tcpip/stack/nic.go:826 +0x305 fp=0xc10f50a510 sp=0xc10f50a408 pc=0x927025 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleValidatedPacket(0xc000303c00, 0xc00399a258, 0x14, 0x3c, 0xc00debcf00, 0x1234db6, 0x2) pkg/tcpip/network/ipv4/ipv4.go:1040 +0x818 fp=0xc10f50acd8 sp=0xc10f50a510 pc=0xaf2a78 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).HandlePacket(0xc000303c00, 0xc00debcf00) pkg/tcpip/network/ipv4/ipv4.go:840 +0x166 fp=0xc10f50af70 sp=0xc10f50acd8 pc=0xaf1c26 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0xc0009c2000, 0x0, 0x0, 0x0, 0x0, 0x800, 0xc00debcf00) pkg/tcpip/stack/nic.go:749 +0x288 fp=0xc10f50b000 sp=0xc10f50af70 pc=0x926a48 gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).DeliverNetworkPacket(0xc00044e9a0, 0x0, 0x0, 0x0, 0x0, 0xc000000800, 0xc00debcf00) pkg/tcpip/link/nested/nested.go:59 +0xbe fp=0xc10f50b058 sp=0xc10f50b000 pc=0xb8c4be gvisor.dev/gvisor/pkg/tcpip/link/sniffer.(*endpoint).DeliverNetworkPacket(0xc00044e9a0, 0x0, 0x0, 0x0, 0x0, 0x800, 0xc00debcf00) pkg/tcpip/link/sniffer/sniffer.go:143 +0x94 fp=0xc10f50b0a0 sp=0xc10f50b058 pc=0xb8cfd4 gvisor.dev/gvisor/pkg/tcpip/link/loopback.(*endpoint).WritePacket(0xc0005200c0, 0xc00b92daa0, 0x4, 0xc00b92daa0, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/loopback/loopback.go:89 +0xca fp=0xc10f50b0f8 sp=0xc10f50b0a0 pc=0xe0600a gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).WritePacket(...) pkg/tcpip/link/nested/nested.go:117 gvisor.dev/gvisor/pkg/tcpip/link/sniffer.(*endpoint).WritePacket(0xc00044e9a0, 0xc00b92daa0, 0x4, 0xc00b92daa0, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/sniffer/sniffer.go:192 +0x10d fp=0xc10f50b1e0 sp=0xc10f50b0f8 pc=0xb8d46d gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacket(0xc0009c2000, 0xc00b92daa0, 0x4, 0xc00b92daa0, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/stack/nic.go:368 +0xfe fp=0xc10f50b278 sp=0xc10f50b1e0 pc=0x924a3e gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacketBuffer(0xc0009c2000, 0xc00b92daa0, 0x4, 0xc00b92daa0, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/stack/nic.go:314 +0xd0 fp=0xc10f50b328 sp=0xc10f50b278 pc=0x924370 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).enqueuePacketBuffer(0xc0009c2000, 0xc0081d7c20, 0x800, 0x13a0360, 0xc00debce00, 0xc00399a26c, 0x28, 0x28) pkg/tcpip/stack/nic.go:329 +0x25d fp=0xc10f50b478 sp=0xc10f50b328 pc=0x9247bd gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).WritePacket(0xc0009c2000, 0xc0081d7c20, 0xc000000800, 0xc00debce00, 0x3c, 0x0) pkg/tcpip/stack/nic.go:307 +0x53 fp=0xc10f50b4c8 sp=0xc10f50b478 pc=0x924273 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacket(0xc000303c00, 0xc0081d7c20, 0xc00debce00, 0xc0081d7c00, 0x0, 0x0) pkg/tcpip/network/ipv4/ipv4.go:495 +0x375 fp=0xc10f50b700 sp=0xc10f50b4c8 pc=0xaefaf5 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).WritePacket(0xc000303c00, 0xc0081d7c20, 0x2004000000006, 0xc00debce00, 0xff800228, 0xc00399a26c) pkg/tcpip/network/ipv4/ipv4.go:445 +0x179 fp=0xc10f50b770 sp=0xc10f50b700 pc=0xaef619 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc0081d7c20, 0x4000000006, 0xc00debce00, 0xc000136868, 0x2) pkg/tcpip/stack/route.go:462 +0xad fp=0xc10f50b7b0 sp=0xc10f50b770 pc=0x92e2ed gvisor.dev/gvisor/pkg/tcpip/transport/tcp.sendTCP(0xc0081d7c20, 0x53fe, 0xc00b92daa0, 0x4, 0x2, 0xc00b92daa0, 0x4, 0xe4d1a26e00020040, 0xff8000000000, 0xc00d47e690, ...) pkg/tcpip/transport/tcp/connect.go:841 +0x285 fp=0xc10f50d5d0 sp=0xc10f50b7b0 pc=0xaae5c5 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendTCP(0xc00e976e00, 0xc0081d7c20, 0x53fe, 0xc00b92daa0, 0x4, 0x2, 0xc00b92daa0, 0x4, 0xe4d1a26e00020000, 0xff8000000000, ...) pkg/tcpip/transport/tcp/connect.go:733 +0xea fp=0xc10f50d6a0 sp=0xc10f50d5d0 pc=0xaad94a gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendSynTCP(0xc00e976e00, 0xc0081d7c20, 0x53fe, 0xc00b92daa0, 0x4, 0x2, 0xc00b92daa0, 0x4, 0xe4d1a26e00020000, 0xff8000000000, ...) pkg/tcpip/transport/tcp/connect.go:724 +0xdc fp=0xc10f50d780 sp=0xc10f50d6a0 pc=0xaad79c gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*handshake).start(0xc00f28af80) pkg/tcpip/transport/tcp/connect.go:502 +0x2da fp=0xc10f50d8b8 sp=0xc10f50d780 pc=0xaac7fa gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).connect(0xc00e976e00, 0x0, 0xc00b92daa0, 0x4, 0xc00e970002, 0x100101, 0x0, 0x0) pkg/tcpip/transport/tcp/endpoint.go:2332 +0x856 fp=0xc10f50ef48 sp=0xc10f50d8b8 pc=0xab9416 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).Connect(0xc00e976e00, 0xc000000000, 0xc00b92daa0, 0x4, 0xc00b920002, 0x4, 0xc00f480002) pkg/tcpip/transport/tcp/endpoint.go:2068 +0x7c fp=0xc10f50f958 sp=0xc10f50ef48 pc=0xab8abc gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*socketOpsCommon).Connect(0xc00e95c960, 0xc00eb96a80, 0xc00b92da90, 0x10, 0x10, 0x1, 0x0) pkg/sentry/socket/netstack/netstack.go:603 +0x364 fp=0xc10f50fa58 sp=0xc10f50f958 pc=0xb1cde4 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Connect(0xc00eb96a80, 0x3, 0x200001c0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/socket.go:276 +0x1c8 fp=0xc10f50fb08 sp=0xc10f50fa58 pc=0xdde548 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc00eb96a80, 0x2a, 0x3, 0x200001c0, 0x10, 0x0, 0x0, 0x0, 0xe1e66c, 0x1233900, ...) pkg/sentry/kernel/task_syscall.go:102 +0x13c fp=0xc10f50fc68 sp=0xc10f50fb08 pc=0x9b49fc gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc00eb96a80, 0x2a, 0x3, 0x200001c0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:237 +0x66 fp=0xc10f50fcf0 sp=0xc10f50fc68 pc=0x9b5bc6 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc00eb96a80, 0x2a, 0x3, 0x200001c0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:197 +0x98 fp=0xc10f50fd50 sp=0xc10f50fcf0 pc=0x9b5778 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc00eb96a80, 0x2, 0xc00eb96a80) pkg/sentry/kernel/task_syscall.go:172 +0x15c fp=0xc10f50fe20 sp=0xc10f50fd50 pc=0x9b511c gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc00eb96a80, 0x139f1e0, 0x0) pkg/sentry/kernel/task_run.go:282 +0xca5 fp=0xc10f50ff60 sp=0xc10f50fe20 pc=0x9a9485 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc00eb96a80, 0x7244) pkg/sentry/kernel/task_run.go:97 +0x1af fp=0xc10f50ffd0 sp=0xc10f50ff60 pc=0x9a80ef runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc10f50ffd8 sp=0xc10f50ffd0 pc=0x472821 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:328 +0xfe