panic: interface conversion: stack.TransportEndpoint is nil, not *tcp.endpoint goroutine 117265 [running]: panic(0x10cd500, 0xc00787acc0) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc088b078f0 sp=0xc088b07828 pc=0x437c65 runtime.panicdottypeE(...) GOROOT/src/runtime/iface.go:261 runtime.panicdottypeI(0x0, 0x1263aa0, 0x1103c60) GOROOT/src/runtime/iface.go:271 +0xcc fp=0xc088b07918 sp=0xc088b078f0 pc=0x40b2ec gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*dispatcher).queuePacket(0xc00003a9c0, 0x0, 0x0, 0x0, 0xc005daf65c, 0x4, 0x0, 0x0, 0x4, 0x13e7018, ...) pkg/tcpip/transport/tcp/dispatcher.go:178 +0x3aa fp=0xc088b0a080 sp=0xc088b07918 pc=0xac494a gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*protocol).QueuePacket(0x0, 0x0, 0xc0073d7800, 0x2, 0xc005daf65c, 0x4, 0xbb45, 0xc005daf658, 0x4, 0xc0068fee00) pkg/tcpip/transport/tcp/protocol.go:138 +0x9b fp=0xc088b0a0f0 sp=0xc088b0a080 pc=0xad14fb gvisor.dev/gvisor/pkg/tcpip/stack.(*endpointsByNIC).handlePacket(0xc008342690, 0x2, 0xc005daf65c, 0x4, 0xbb45, 0xc005daf658, 0x4, 0xc0068fee00, 0xc00836e1f8) pkg/tcpip/stack/transport_demuxer.go:176 +0x20b fp=0xc088b0a170 sp=0xc088b0a0f0 pc=0x94a80b gvisor.dev/gvisor/pkg/tcpip/stack.(*transportDemuxer).deliverPacket(0xc000494b58, 0xc000000006, 0xc0068fee00, 0x2, 0xc005daf65c, 0x4, 0xbb45, 0xc005daf658, 0x4, 0xc005daf654) pkg/tcpip/stack/transport_demuxer.go:581 +0x430 fp=0xc088b0a208 sp=0xc088b0a170 pc=0x94d210 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverTransportPacket(0xc000b64000, 0x6, 0xc0068fee00, 0x0) pkg/tcpip/stack/nic.go:820 +0x2e5 fp=0xc088b0a310 sp=0xc088b0a208 pc=0x937485 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleValidatedPacket(0xc000304e00, 0xc00520d236, 0x14, 0x3c, 0xc0068fee00, 0x126587a, 0x2) pkg/tcpip/network/ipv4/ipv4.go:1046 +0x8ec fp=0xc088b0aad8 sp=0xc088b0a310 pc=0xb03a8c gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).HandlePacket(0xc000304e00, 0xc0068fee00) pkg/tcpip/network/ipv4/ipv4.go:836 +0x166 fp=0xc088b0ad70 sp=0xc088b0aad8 pc=0xb02ba6 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0xc000b64000, 0xc005daf616, 0x6, 0xc005daf620, 0x6, 0xc000000800, 0xc0068fee00) pkg/tcpip/stack/nic.go:749 +0x288 fp=0xc088b0ae00 sp=0xc088b0ad70 pc=0x936ec8 gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).DeliverNetworkPacket(0xc0004bc7e0, 0xc005daf616, 0x6, 0xc005daf620, 0x6, 0x800, 0xc0068fee00) pkg/tcpip/link/nested/nested.go:59 +0xbe fp=0xc088b0ae58 sp=0xc088b0ae00 pc=0xb9ea1e gvisor.dev/gvisor/pkg/tcpip/link/sniffer.(*endpoint).DeliverNetworkPacket(0xc0004bc7e0, 0xc005daf616, 0x6, 0xc005daf620, 0x6, 0xc000000800, 0xc0068fee00) pkg/tcpip/link/sniffer/sniffer.go:140 +0x94 fp=0xc088b0aea0 sp=0xc088b0ae58 pc=0xb9f7f4 gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).DeliverNetworkPacket(0xc00069aa50, 0xc005daf616, 0x6, 0xc005daf620, 0x6, 0x800, 0xc0068fee00) pkg/tcpip/link/nested/nested.go:59 +0xbe fp=0xc088b0aef8 sp=0xc088b0aea0 pc=0xb9ea1e gvisor.dev/gvisor/pkg/tcpip/link/ethernet.(*Endpoint).DeliverNetworkPacket(0xc00069aa50, 0x0, 0x0, 0x0, 0x0, 0x800, 0xc0068fee00) pkg/tcpip/link/ethernet/ethernet.go:63 +0x15f fp=0xc088b0af68 sp=0xc088b0aef8 pc=0xe2671f gvisor.dev/gvisor/pkg/tcpip/link/loopback.(*endpoint).WritePacket(0xc000a80480, 0xc005daf5c8, 0x4, 0xc005daf5c8, 0x4, 0x13b40b8, 0x6, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/loopback/loopback.go:89 +0xca fp=0xc088b0afc0 sp=0xc088b0af68 pc=0xe2714a gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).WritePacket(...) pkg/tcpip/link/nested/nested.go:117 gvisor.dev/gvisor/pkg/tcpip/link/ethernet.(*Endpoint).WritePacket(0xc00069aa50, 0xc005daf5c8, 0x4, 0xc005daf5c8, 0x4, 0x13b40b8, 0x6, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/ethernet/ethernet.go:78 +0x139 fp=0xc088b0b0a8 sp=0xc088b0afc0 pc=0xe26939 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(0xc0004bc7e0, 0xc005daf5c8, 0x4, 0xc005daf5c8, 0x4, 0x13b40b8, 0x6, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/sniffer/sniffer.go:174 +0x10d fp=0xc088b0b190 sp=0xc088b0b0a8 pc=0xb9fb6d gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacket(0xc000b64000, 0xc005daf5c8, 0x4, 0xc005daf5c8, 0x4, 0x13b40b8, 0x6, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/stack/nic.go:368 +0xfe fp=0xc088b0b228 sp=0xc088b0b190 pc=0x934ebe gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacketBuffer(0xc000b64000, 0xc005daf5c8, 0x4, 0xc005daf5c8, 0x4, 0x13b40b8, 0x6, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/stack/nic.go:314 +0xd0 fp=0xc088b0b2d8 sp=0xc088b0b228 pc=0x9347f0 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).enqueuePacketBuffer(0xc000b64000, 0xc008a70780, 0x800, 0x13cdf00, 0xc0068fed00, 0xc00520d24a, 0x28, 0x28) pkg/tcpip/stack/nic.go:329 +0x25d fp=0xc088b0b428 sp=0xc088b0b2d8 pc=0x934c3d gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).WritePacket(0xc000b64000, 0xc008a70780, 0xc000000800, 0xc0068fed00, 0x3c, 0x0) pkg/tcpip/stack/nic.go:307 +0x53 fp=0xc088b0b478 sp=0xc088b0b428 pc=0x9346f3 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacket(0xc000304e00, 0xc008a70780, 0xc0068fed00, 0xc008a70700, 0x0, 0x0) pkg/tcpip/network/ipv4/ipv4.go:495 +0x375 fp=0xc088b0b6b0 sp=0xc088b0b478 pc=0xb00af5 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).WritePacket(0xc000304e00, 0xc008a70780, 0x2004000000006, 0xc0068fed00, 0xff800228, 0xc00520d24a) pkg/tcpip/network/ipv4/ipv4.go:445 +0x179 fp=0xc088b0b720 sp=0xc088b0b6b0 pc=0xb00619 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc008a70780, 0x4000000006, 0xc0068fed00, 0xc0002b8b28, 0x2) pkg/tcpip/stack/route.go:462 +0xad fp=0xc088b0b760 sp=0xc088b0b720 pc=0x93e7ed gvisor.dev/gvisor/pkg/tcpip/transport/tcp.sendTCP(0xc008a70780, 0xbb45, 0xc005daf5c8, 0x4, 0x2, 0xc005daf5c8, 0x4, 0xbd6ab0d00020040, 0xff8000000000, 0xc0083b4270, ...) pkg/tcpip/transport/tcp/connect.go:844 +0x285 fp=0xc088b0d5b0 sp=0xc088b0b760 pc=0xabff45 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendTCP(0xc0073d7100, 0xc008a70780, 0xbb45, 0xc005daf5c8, 0x4, 0x2, 0xc005daf5c8, 0x4, 0xbd6ab0d00020000, 0xff8000000000, ...) pkg/tcpip/transport/tcp/connect.go:736 +0xea fp=0xc088b0d680 sp=0xc088b0d5b0 pc=0xabf30a gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendSynTCP(0xc0073d7100, 0xc008a70780, 0xbb45, 0xc005daf5c8, 0x4, 0x2, 0xc005daf5c8, 0x4, 0xbd6ab0d00020000, 0xff8000000000, ...) pkg/tcpip/transport/tcp/connect.go:727 +0xdc fp=0xc088b0d760 sp=0xc088b0d680 pc=0xabf15c gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*handshake).start(0xc007813f80) pkg/tcpip/transport/tcp/connect.go:504 +0x2da fp=0xc088b0d898 sp=0xc088b0d760 pc=0xabe1ba gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).connect(0xc0073d7100, 0xc000000000, 0xc005daf5c8, 0x4, 0x2, 0x101, 0x0, 0x0) pkg/tcpip/transport/tcp/endpoint.go:2363 +0x83a fp=0xc088b0ef40 sp=0xc088b0d898 pc=0xacb2fa gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).Connect(0xc0073d7100, 0xc000000000, 0xc005daf5c8, 0x4, 0xc005da0002, 0x4, 0xc008370002) pkg/tcpip/transport/tcp/endpoint.go:2096 +0x7c fp=0xc088b0f960 sp=0xc088b0ef40 pc=0xaca9bc gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*socketOpsCommon).Connect(0xc008356140, 0xc00859ca80, 0xc005daf5f0, 0x10, 0x10, 0x1, 0x0) pkg/sentry/socket/netstack/netstack.go:606 +0x364 fp=0xc088b0fa60 sp=0xc088b0f960 pc=0xb2e624 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Connect(0xc00859ca80, 0x5, 0x200001c0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/socket.go:275 +0x1bb fp=0xc088b0fb00 sp=0xc088b0fa60 pc=0xdfeb9b gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc00859ca80, 0x2a, 0x5, 0x200001c0, 0x10, 0x0, 0x0, 0x0, 0xe40530, 0x1264400, ...) pkg/sentry/kernel/task_syscall.go:103 +0x13c fp=0xc088b0fc60 sp=0xc088b0fb00 pc=0x9c38dc gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc00859ca80, 0x2a, 0x5, 0x200001c0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:238 +0x66 fp=0xc088b0fce8 sp=0xc088b0fc60 pc=0x9c4a66 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc00859ca80, 0x2a, 0x5, 0x200001c0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:198 +0x98 fp=0xc088b0fd48 sp=0xc088b0fce8 pc=0x9c4658 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc00859ca80, 0x2, 0xc00859ca80) pkg/sentry/kernel/task_syscall.go:173 +0x15c fp=0xc088b0fe18 sp=0xc088b0fd48 pc=0x9c3ffc gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc00859ca80, 0x13ccde0, 0x0) pkg/sentry/kernel/task_run.go:282 +0xc8c fp=0xc088b0ff60 sp=0xc088b0fe18 pc=0x9b8c8c gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc00859ca80, 0x82e) pkg/sentry/kernel/task_run.go:97 +0x1af fp=0xc088b0ffd0 sp=0xc088b0ff60 pc=0x9b790f runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc088b0ffd8 sp=0xc088b0ffd0 pc=0x472821 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:327 +0xfe