panic: interface conversion: stack.TransportEndpoint is nil, not *tcp.endpoint goroutine 1478998 [running]: panic(0x10d4360, 0xc0b1d4e4b0) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc13238f8b0 sp=0xc13238f7e8 pc=0x437c65 runtime.panicdottypeE(...) GOROOT/src/runtime/iface.go:261 runtime.panicdottypeI(0x0, 0x126b720, 0x110ad60) GOROOT/src/runtime/iface.go:271 +0xcc fp=0xc13238f8d8 sp=0xc13238f8b0 pc=0x40b2ec gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*dispatcher).queuePacket(0xc000d204c0, 0x0, 0x0, 0x0, 0xc0b1894fcc, 0x4, 0x0, 0x0, 0x4, 0x13efe58, ...) pkg/tcpip/transport/tcp/dispatcher.go:178 +0x3aa fp=0xc132392040 sp=0xc13238f8d8 pc=0xac678a gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*protocol).QueuePacket(0x0, 0x0, 0xc0b13f5100, 0x2, 0xc0b1894fcc, 0x4, 0x6d09, 0xc0b1894fc8, 0x4, 0xc0b18ce500) pkg/tcpip/transport/tcp/protocol.go:137 +0x9b fp=0xc1323920b0 sp=0xc132392040 pc=0xad321b gvisor.dev/gvisor/pkg/tcpip/stack.(*endpointsByNIC).handlePacket(0xc0b1d4e360, 0x2, 0xc0b1894fcc, 0x4, 0x6d09, 0xc0b1894fc8, 0x4, 0xc0b18ce500, 0xc0b1d721b8) pkg/tcpip/stack/transport_demuxer.go:176 +0x20b fp=0xc132392130 sp=0xc1323920b0 pc=0x94b22b gvisor.dev/gvisor/pkg/tcpip/stack.(*transportDemuxer).deliverPacket(0xc0000225e8, 0xc000000006, 0xc0b18ce500, 0x2, 0xc0b1894fcc, 0x4, 0x6d09, 0xc0b1894fc8, 0x4, 0xc0b1894fc4) pkg/tcpip/stack/transport_demuxer.go:581 +0x430 fp=0xc1323921c8 sp=0xc132392130 pc=0x94dc30 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverTransportPacket(0xc00027b340, 0x6, 0xc0b18ce500, 0x0) pkg/tcpip/stack/nic.go:856 +0x2e5 fp=0xc1323922d0 sp=0xc1323921c8 pc=0x937cc5 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleValidatedPacket(0xc0004b1500, 0xc0af013636, 0x14, 0x3c, 0xc0b18ce500, 0x126d50a, 0x2) pkg/tcpip/network/ipv4/ipv4.go:1046 +0x8ec fp=0xc132392a98 sp=0xc1323922d0 pc=0xafb80c gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).HandlePacket(0xc0004b1500, 0xc0b18ce500) pkg/tcpip/network/ipv4/ipv4.go:836 +0x166 fp=0xc132392d30 sp=0xc132392a98 pc=0xafa926 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0xc00027b340, 0xc0b1894f86, 0x6, 0xc0b1894f90, 0x6, 0xc000000800, 0xc0b18ce500) pkg/tcpip/stack/nic.go:768 +0x2a9 fp=0xc132392dd0 sp=0xc132392d30 pc=0x9376e9 gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).DeliverNetworkPacket(0xc000ca03f0, 0xc0b1894f86, 0x6, 0xc0b1894f90, 0x6, 0x800, 0xc0b18ce500) pkg/tcpip/link/nested/nested.go:59 +0xbe fp=0xc132392e28 sp=0xc132392dd0 pc=0xba3b1e gvisor.dev/gvisor/pkg/tcpip/link/sniffer.(*endpoint).DeliverNetworkPacket(0xc000ca03f0, 0xc0b1894f86, 0x6, 0xc0b1894f90, 0x6, 0xc000000800, 0xc0b18ce500) pkg/tcpip/link/sniffer/sniffer.go:140 +0x94 fp=0xc132392e70 sp=0xc132392e28 pc=0xba4974 gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).DeliverNetworkPacket(0xc000ab8280, 0xc0b1894f86, 0x6, 0xc0b1894f90, 0x6, 0x800, 0xc0b18ce500) pkg/tcpip/link/nested/nested.go:59 +0xbe fp=0xc132392ec8 sp=0xc132392e70 pc=0xba3b1e gvisor.dev/gvisor/pkg/tcpip/link/ethernet.(*Endpoint).DeliverNetworkPacket(0xc000ab8280, 0x0, 0x0, 0x0, 0x0, 0x800, 0xc0b18ce500) pkg/tcpip/link/ethernet/ethernet.go:63 +0x15f fp=0xc132392f38 sp=0xc132392ec8 pc=0xe2bc3f gvisor.dev/gvisor/pkg/tcpip/link/loopback.(*endpoint).WriteRawPacket(0xc00001a1e0, 0xc0b18ce400, 0x0, 0x800) pkg/tcpip/link/loopback/loopback.go:107 +0xc8 fp=0xc132392f90 sp=0xc132392f38 pc=0xe2c808 gvisor.dev/gvisor/pkg/tcpip/link/loopback.(*endpoint).WritePacket(0xc00001a1e0, 0xc0b1894f58, 0x4, 0xc0b1894f58, 0x4, 0x13bcc98, 0x6, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/loopback/loopback.go:80 +0x38 fp=0xc132392fc0 sp=0xc132392f90 pc=0xe2c658 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(0xc000ab8280, 0xc0b1894f58, 0x4, 0xc0b1894f58, 0x4, 0x13bcc98, 0x6, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/ethernet/ethernet.go:78 +0x139 fp=0xc1323930a8 sp=0xc132392fc0 pc=0xe2be59 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(0xc000ca03f0, 0xc0b1894f58, 0x4, 0xc0b1894f58, 0x4, 0x13bcc98, 0x6, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/sniffer/sniffer.go:174 +0x10d fp=0xc132393190 sp=0xc1323930a8 pc=0xba4ced gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacket(0xc00027b340, 0xc0b1894f58, 0x4, 0xc0b1894f58, 0x4, 0x13bcc98, 0x6, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/stack/nic.go:368 +0xfe fp=0xc132393228 sp=0xc132393190 pc=0x9356be gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacketBuffer(0xc00027b340, 0xc0b1894f58, 0x4, 0xc0b1894f58, 0x4, 0x13bcc98, 0x6, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/stack/nic.go:314 +0xd0 fp=0xc1323932d8 sp=0xc132393228 pc=0x934ff0 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).enqueuePacketBuffer(0xc00027b340, 0xc02e7f46e0, 0x800, 0x13d6cc0, 0xc0b18ce400, 0xc0af01364a, 0x28, 0x28) pkg/tcpip/stack/nic.go:329 +0x25d fp=0xc132393428 sp=0xc1323932d8 pc=0x93543d gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).WritePacket(0xc00027b340, 0xc02e7f46e0, 0xc000000800, 0xc0b18ce400, 0x3c, 0x0) pkg/tcpip/stack/nic.go:307 +0x53 fp=0xc132393478 sp=0xc132393428 pc=0x934ef3 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacket(0xc0004b1500, 0xc02e7f46e0, 0xc0b18ce400, 0xc02e7f4600, 0x0, 0x0) pkg/tcpip/network/ipv4/ipv4.go:495 +0x375 fp=0xc1323936b0 sp=0xc132393478 pc=0xaf8875 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).WritePacket(0xc0004b1500, 0xc02e7f46e0, 0x2004000000006, 0xc0b18ce400, 0xff800228, 0xc0af01364a) pkg/tcpip/network/ipv4/ipv4.go:445 +0x179 fp=0xc132393720 sp=0xc1323936b0 pc=0xaf8399 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc02e7f46e0, 0x4000000006, 0xc0b18ce400, 0xc000d2c188, 0x2) pkg/tcpip/stack/route.go:462 +0xad fp=0xc132393760 sp=0xc132393720 pc=0x93f02d gvisor.dev/gvisor/pkg/tcpip/transport/tcp.sendTCP(0xc02e7f46e0, 0x6d09, 0xc0b1894f58, 0x4, 0x2, 0xc0b1894f58, 0x4, 0x790c6c4800020040, 0xff8000000000, 0xc0b13ddb90, ...) pkg/tcpip/transport/tcp/connect.go:890 +0x285 fp=0xc1323955b0 sp=0xc132393760 pc=0xac1f25 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendTCP(0xc0b13f4a00, 0xc02e7f46e0, 0x6d09, 0xc0b1894f58, 0x4, 0x2, 0xc0b1894f58, 0x4, 0x790c6c4800020000, 0xff8000000000, ...) pkg/tcpip/transport/tcp/connect.go:782 +0xea fp=0xc132395680 sp=0xc1323955b0 pc=0xac12ea gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendSynTCP(0xc0b13f4a00, 0xc02e7f46e0, 0x6d09, 0xc0b1894f58, 0x4, 0x2, 0xc0b1894f58, 0x4, 0x790c6c4800020000, 0xff8000000000, ...) pkg/tcpip/transport/tcp/connect.go:773 +0xdc fp=0xc132395760 sp=0xc132395680 pc=0xac113c gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*handshake).start(0xc0b18d1e80) pkg/tcpip/transport/tcp/connect.go:512 +0x2da fp=0xc132395898 sp=0xc132395760 pc=0xabff5a gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).connect(0xc0b13f4a00, 0xc000000000, 0xc0b1894f58, 0x4, 0x2, 0x101, 0x0, 0x0) pkg/tcpip/transport/tcp/endpoint.go:2363 +0x83a fp=0xc132396f40 sp=0xc132395898 pc=0xacd13a gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).Connect(0xc0b13f4a00, 0xc000000000, 0xc0b1894f58, 0x4, 0xc0b1890002, 0x4, 0xc0b1d70002) pkg/tcpip/transport/tcp/endpoint.go:2096 +0x7c fp=0xc132397960 sp=0xc132396f40 pc=0xacc7fc gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*socketOpsCommon).Connect(0xc0b18fe960, 0xc0b1eea000, 0xc0b1894f60, 0x10, 0x10, 0x1, 0x0) pkg/sentry/socket/netstack/netstack.go:606 +0x364 fp=0xc132397a60 sp=0xc132397960 pc=0xb33724 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Connect(0xc0b1eea000, 0x3, 0x200001c0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/socket.go:275 +0x1bb fp=0xc132397b00 sp=0xc132397a60 pc=0xe040bb gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0b1eea000, 0x2a, 0x3, 0x200001c0, 0x10, 0x0, 0x0, 0x0, 0xe45b70, 0x126c080, ...) pkg/sentry/kernel/task_syscall.go:103 +0x13c fp=0xc132397c60 sp=0xc132397b00 pc=0x9c4e5c gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0b1eea000, 0x2a, 0x3, 0x200001c0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:238 +0x66 fp=0xc132397ce8 sp=0xc132397c60 pc=0x9c5fe6 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0b1eea000, 0x2a, 0x3, 0x200001c0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:198 +0x98 fp=0xc132397d48 sp=0xc132397ce8 pc=0x9c5bd8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0b1eea000, 0x2, 0xc0b1eea000) pkg/sentry/kernel/task_syscall.go:173 +0x15c fp=0xc132397e18 sp=0xc132397d48 pc=0x9c557c gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc0b1eea000, 0x13d5ba0, 0x0) pkg/sentry/kernel/task_run.go:282 +0xc8c fp=0xc132397f60 sp=0xc132397e18 pc=0x9ba20c gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0b1eea000, 0xcf8d) pkg/sentry/kernel/task_run.go:97 +0x1af fp=0xc132397fd0 sp=0xc132397f60 pc=0x9b8e8f runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc132397fd8 sp=0xc132397fd0 pc=0x472821 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:327 +0xfe