panic: interface conversion: stack.TransportEndpoint is nil, not *tcp.endpoint goroutine 875572 [running]: panic(0x10ce560, 0xc0179dd680) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc09839b8f0 sp=0xc09839b828 pc=0x437c65 runtime.panicdottypeE(...) GOROOT/src/runtime/iface.go:261 runtime.panicdottypeI(0x0, 0x1264b40, 0x1104dc0) GOROOT/src/runtime/iface.go:271 +0xcc fp=0xc09839b918 sp=0xc09839b8f0 pc=0x40b2ec gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*dispatcher).queuePacket(0xc000bf63c0, 0x0, 0x0, 0x0, 0xc0179c6f08, 0x4, 0x0, 0x0, 0x4, 0x13e8478, ...) pkg/tcpip/transport/tcp/dispatcher.go:178 +0x3aa fp=0xc09839e080 sp=0xc09839b918 pc=0xac4c8a gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*protocol).QueuePacket(0x0, 0x0, 0xc012759800, 0x2, 0xc0179c6f08, 0x4, 0x556f, 0xc0179c6f04, 0x4, 0xc01197ee00) pkg/tcpip/transport/tcp/protocol.go:136 +0x9b fp=0xc09839e0f0 sp=0xc09839e080 pc=0xad177b gvisor.dev/gvisor/pkg/tcpip/stack.(*endpointsByNIC).handlePacket(0xc0179dd530, 0x2, 0xc0179c6f08, 0x4, 0x556f, 0xc0179c6f04, 0x4, 0xc01197ee00, 0xc017ff21f8) pkg/tcpip/stack/transport_demuxer.go:176 +0x20b fp=0xc09839e170 sp=0xc09839e0f0 pc=0x94a8cb gvisor.dev/gvisor/pkg/tcpip/stack.(*transportDemuxer).deliverPacket(0xc000542de0, 0xc000000006, 0xc01197ee00, 0x2, 0xc0179c6f08, 0x4, 0x556f, 0xc0179c6f04, 0x4, 0xc0179c6f00) pkg/tcpip/stack/transport_demuxer.go:581 +0x430 fp=0xc09839e208 sp=0xc09839e170 pc=0x94d2d0 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverTransportPacket(0xc0001f7340, 0x6, 0xc01197ee00, 0x0) pkg/tcpip/stack/nic.go:820 +0x2e5 fp=0xc09839e310 sp=0xc09839e208 pc=0x937525 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleValidatedPacket(0xc0000da300, 0xc017fd80b6, 0x14, 0x3c, 0xc01197ee00, 0x126691a, 0x2) pkg/tcpip/network/ipv4/ipv4.go:1046 +0x8ec fp=0xc09839ead8 sp=0xc09839e310 pc=0xb0428c gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).HandlePacket(0xc0000da300, 0xc01197ee00) pkg/tcpip/network/ipv4/ipv4.go:836 +0x166 fp=0xc09839ed70 sp=0xc09839ead8 pc=0xb033a6 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0xc0001f7340, 0xc0179c6ec6, 0x6, 0xc0179c6ed0, 0x6, 0xc000000800, 0xc01197ee00) pkg/tcpip/stack/nic.go:749 +0x288 fp=0xc09839ee00 sp=0xc09839ed70 pc=0x936f68 gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).DeliverNetworkPacket(0xc000bae700, 0xc0179c6ec6, 0x6, 0xc0179c6ed0, 0x6, 0x800, 0xc01197ee00) pkg/tcpip/link/nested/nested.go:59 +0xbe fp=0xc09839ee58 sp=0xc09839ee00 pc=0xb9f2de gvisor.dev/gvisor/pkg/tcpip/link/sniffer.(*endpoint).DeliverNetworkPacket(0xc000bae700, 0xc0179c6ec6, 0x6, 0xc0179c6ed0, 0x6, 0xc000000800, 0xc01197ee00) pkg/tcpip/link/sniffer/sniffer.go:140 +0x94 fp=0xc09839eea0 sp=0xc09839ee58 pc=0xba0134 gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).DeliverNetworkPacket(0xc0000c5720, 0xc0179c6ec6, 0x6, 0xc0179c6ed0, 0x6, 0x800, 0xc01197ee00) pkg/tcpip/link/nested/nested.go:59 +0xbe fp=0xc09839eef8 sp=0xc09839eea0 pc=0xb9f2de gvisor.dev/gvisor/pkg/tcpip/link/ethernet.(*Endpoint).DeliverNetworkPacket(0xc0000c5720, 0x0, 0x0, 0x0, 0x0, 0x800, 0xc01197ee00) pkg/tcpip/link/ethernet/ethernet.go:63 +0x15f fp=0xc09839ef68 sp=0xc09839eef8 pc=0xe2737f gvisor.dev/gvisor/pkg/tcpip/link/loopback.(*endpoint).WritePacket(0xc00011e4f0, 0xc0179c6e98, 0x4, 0xc0179c6e98, 0x4, 0x13b54d8, 0x6, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/loopback/loopback.go:89 +0xca fp=0xc09839efc0 sp=0xc09839ef68 pc=0xe27e2a 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(0xc0000c5720, 0xc0179c6e98, 0x4, 0xc0179c6e98, 0x4, 0x13b54d8, 0x6, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/ethernet/ethernet.go:78 +0x139 fp=0xc09839f0a8 sp=0xc09839efc0 pc=0xe27599 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(0xc000bae700, 0xc0179c6e98, 0x4, 0xc0179c6e98, 0x4, 0x13b54d8, 0x6, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/sniffer/sniffer.go:174 +0x10d fp=0xc09839f190 sp=0xc09839f0a8 pc=0xba04ad gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacket(0xc0001f7340, 0xc0179c6e98, 0x4, 0xc0179c6e98, 0x4, 0x13b54d8, 0x6, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/stack/nic.go:368 +0xfe fp=0xc09839f228 sp=0xc09839f190 pc=0x934f5e gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacketBuffer(0xc0001f7340, 0xc0179c6e98, 0x4, 0xc0179c6e98, 0x4, 0x13b54d8, 0x6, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/stack/nic.go:314 +0xd0 fp=0xc09839f2d8 sp=0xc09839f228 pc=0x934890 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).enqueuePacketBuffer(0xc0001f7340, 0xc00500e500, 0x800, 0x13cf3a0, 0xc01197ed00, 0xc017fd80ca, 0x28, 0x28) pkg/tcpip/stack/nic.go:329 +0x25d fp=0xc09839f428 sp=0xc09839f2d8 pc=0x934cdd gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).WritePacket(0xc0001f7340, 0xc00500e500, 0xc000000800, 0xc01197ed00, 0x3c, 0x0) pkg/tcpip/stack/nic.go:307 +0x53 fp=0xc09839f478 sp=0xc09839f428 pc=0x934793 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacket(0xc0000da300, 0xc00500e500, 0xc01197ed00, 0xc00500e500, 0x0, 0x0) pkg/tcpip/network/ipv4/ipv4.go:495 +0x375 fp=0xc09839f6b0 sp=0xc09839f478 pc=0xb012f5 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).WritePacket(0xc0000da300, 0xc00500e500, 0x2004000000006, 0xc01197ed00, 0xff800228, 0xc017fd80ca) pkg/tcpip/network/ipv4/ipv4.go:445 +0x179 fp=0xc09839f720 sp=0xc09839f6b0 pc=0xb00e19 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc00500e500, 0x4000000006, 0xc01197ed00, 0xc000660a78, 0x2) pkg/tcpip/stack/route.go:462 +0xad fp=0xc09839f760 sp=0xc09839f720 pc=0x93e88d gvisor.dev/gvisor/pkg/tcpip/transport/tcp.sendTCP(0xc00500e500, 0x556f, 0xc0179c6e98, 0x4, 0x2, 0xc0179c6e98, 0x4, 0xeac86b9700020040, 0xff8000000000, 0xc017f970e0, ...) pkg/tcpip/transport/tcp/connect.go:890 +0x285 fp=0xc0983a15b0 sp=0xc09839f760 pc=0xac0425 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendTCP(0xc012759100, 0xc00500e500, 0x556f, 0xc0179c6e98, 0x4, 0x2, 0xc0179c6e98, 0x4, 0xeac86b9700020000, 0xff8000000000, ...) pkg/tcpip/transport/tcp/connect.go:782 +0xea fp=0xc0983a1680 sp=0xc0983a15b0 pc=0xabf7ea gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendSynTCP(0xc012759100, 0xc00500e500, 0x556f, 0xc0179c6e98, 0x4, 0x2, 0xc0179c6e98, 0x4, 0xeac86b9700020000, 0xff8000000000, ...) pkg/tcpip/transport/tcp/connect.go:773 +0xdc fp=0xc0983a1760 sp=0xc0983a1680 pc=0xabf63c gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*handshake).start(0xc01798f800) pkg/tcpip/transport/tcp/connect.go:512 +0x2da fp=0xc0983a1898 sp=0xc0983a1760 pc=0xabe45a gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).connect(0xc012759100, 0xc000000000, 0xc0179c6e98, 0x4, 0x2, 0x101, 0x0, 0x0) pkg/tcpip/transport/tcp/endpoint.go:2363 +0x83a fp=0xc0983a2f40 sp=0xc0983a1898 pc=0xacb63a gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).Connect(0xc012759100, 0xc000000000, 0xc0179c6e98, 0x4, 0xc0179c0002, 0x4, 0xc017ff0002) pkg/tcpip/transport/tcp/endpoint.go:2096 +0x7c fp=0xc0983a3960 sp=0xc0983a2f40 pc=0xacacfc gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*socketOpsCommon).Connect(0xc017fdc210, 0xc01818aa80, 0xc0179c6ea0, 0x10, 0x10, 0x1, 0x0) pkg/sentry/socket/netstack/netstack.go:606 +0x364 fp=0xc0983a3a60 sp=0xc0983a3960 pc=0xb2eee4 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Connect(0xc01818aa80, 0x3, 0x200001c0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/socket.go:275 +0x1bb fp=0xc0983a3b00 sp=0xc0983a3a60 pc=0xdff7fb gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc01818aa80, 0x2a, 0x3, 0x200001c0, 0x10, 0x0, 0x0, 0x0, 0xe41250, 0x12654a0, ...) pkg/sentry/kernel/task_syscall.go:103 +0x13c fp=0xc0983a3c60 sp=0xc0983a3b00 pc=0x9c3a7c gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc01818aa80, 0x2a, 0x3, 0x200001c0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:238 +0x66 fp=0xc0983a3ce8 sp=0xc0983a3c60 pc=0x9c4c06 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc01818aa80, 0x2a, 0x3, 0x200001c0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:198 +0x98 fp=0xc0983a3d48 sp=0xc0983a3ce8 pc=0x9c47f8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc01818aa80, 0x2, 0xc01818aa80) pkg/sentry/kernel/task_syscall.go:173 +0x15c fp=0xc0983a3e18 sp=0xc0983a3d48 pc=0x9c419c gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc01818aa80, 0x13ce280, 0x0) pkg/sentry/kernel/task_run.go:282 +0xc8c fp=0xc0983a3f60 sp=0xc0983a3e18 pc=0x9b8e2c gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc01818aa80, 0x6a7c) pkg/sentry/kernel/task_run.go:97 +0x1af fp=0xc0983a3fd0 sp=0xc0983a3f60 pc=0x9b7aaf runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc0983a3fd8 sp=0xc0983a3fd0 pc=0x472821 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:327 +0xfe