panic: interface conversion: stack.TransportEndpoint is nil, not *tcp.endpoint goroutine 84476 [running]: panic(0x10bc7a0, 0xc003bb05d0) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc083e87a90 sp=0xc083e879c8 pc=0x437c65 runtime.panicdottypeE(...) GOROOT/src/runtime/iface.go:261 runtime.panicdottypeI(0x0, 0x12506c0, 0x10f2160) GOROOT/src/runtime/iface.go:271 +0xcc fp=0xc083e87ab8 sp=0xc083e87a90 pc=0x40b2ec gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*dispatcher).queuePacket(0xc000c140c0, 0x0, 0x0, 0x0, 0xc000fa7be8, 0x4, 0x0, 0x0, 0x4, 0x13d16b8, ...) pkg/tcpip/transport/tcp/dispatcher.go:178 +0x3aa fp=0xc083e8a220 sp=0xc083e87ab8 pc=0xabcb0a gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*protocol).QueuePacket(0x0, 0x0, 0xc00365e700, 0x4e20, 0xc000fa7be8, 0x4, 0x4e20, 0xc000fa7be4, 0x4, 0xc000c12c00) pkg/tcpip/transport/tcp/protocol.go:134 +0x9b fp=0xc083e8a290 sp=0xc083e8a220 pc=0xac93db gvisor.dev/gvisor/pkg/tcpip/stack.(*endpointsByNIC).handlePacket(0xc003bb05a0, 0x4e20, 0xc000fa7be8, 0x4, 0x4e20, 0xc000fa7be4, 0x4, 0xc000c12c00, 0xc003be2398) pkg/tcpip/stack/transport_demuxer.go:176 +0x20b fp=0xc083e8a310 sp=0xc083e8a290 pc=0x9438ab gvisor.dev/gvisor/pkg/tcpip/stack.(*transportDemuxer).deliverPacket(0xc00048a540, 0xc000000006, 0xc000c12c00, 0x4e20, 0xc000fa7be8, 0x4, 0x4e20, 0xc000fa7be4, 0x4, 0xc000fa7be0) pkg/tcpip/stack/transport_demuxer.go:581 +0x570 fp=0xc083e8a3a8 sp=0xc083e8a310 pc=0x946690 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverTransportPacket(0xc000c18000, 0x6, 0xc000c12c00, 0x0) pkg/tcpip/stack/nic.go:820 +0x2e5 fp=0xc083e8a4b0 sp=0xc083e8a3a8 pc=0x9305a5 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleValidatedPacket(0xc000c84000, 0xc003bca028, 0x14, 0x3c, 0xc000c12c00, 0x1252478, 0x2) pkg/tcpip/network/ipv4/ipv4.go:1046 +0x8ec fp=0xc083e8ac78 sp=0xc083e8a4b0 pc=0xafb92c gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).HandlePacket(0xc000c84000, 0xc000c12c00) pkg/tcpip/network/ipv4/ipv4.go:836 +0x166 fp=0xc083e8af10 sp=0xc083e8ac78 pc=0xafaa06 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0xc000c18000, 0x0, 0x0, 0x0, 0x0, 0x800, 0xc000c12c00) pkg/tcpip/stack/nic.go:749 +0x288 fp=0xc083e8afa0 sp=0xc083e8af10 pc=0x92ffe8 gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).DeliverNetworkPacket(0xc000ccc620, 0x0, 0x0, 0x0, 0x0, 0xc000000800, 0xc000c12c00) pkg/tcpip/link/nested/nested.go:59 +0xbe fp=0xc083e8aff8 sp=0xc083e8afa0 pc=0xb969be gvisor.dev/gvisor/pkg/tcpip/link/sniffer.(*endpoint).DeliverNetworkPacket(0xc000ccc620, 0x0, 0x0, 0x0, 0x0, 0x800, 0xc000c12c00) pkg/tcpip/link/sniffer/sniffer.go:140 +0x94 fp=0xc083e8b040 sp=0xc083e8aff8 pc=0xb97794 gvisor.dev/gvisor/pkg/tcpip/link/loopback.(*endpoint).WritePacket(0xc0008c81d0, 0xc000fa7b88, 0x4, 0xc000fa7b88, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/loopback/loopback.go:89 +0xca fp=0xc083e8b098 sp=0xc083e8b040 pc=0xe19dea 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(0xc000ccc620, 0xc000fa7b88, 0x4, 0xc000fa7b88, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/sniffer/sniffer.go:174 +0x10d fp=0xc083e8b180 sp=0xc083e8b098 pc=0xb97b0d gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacket(0xc000c18000, 0xc000fa7b88, 0x4, 0xc000fa7b88, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/stack/nic.go:368 +0xfe fp=0xc083e8b218 sp=0xc083e8b180 pc=0x92dfde gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacketBuffer(0xc000c18000, 0xc000fa7b88, 0x4, 0xc000fa7b88, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/stack/nic.go:314 +0xd0 fp=0xc083e8b2c8 sp=0xc083e8b218 pc=0x92d910 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).enqueuePacketBuffer(0xc000c18000, 0xc001cd8460, 0x800, 0x13b85e0, 0xc000c12b00, 0xc003bca03c, 0x28, 0x28) pkg/tcpip/stack/nic.go:329 +0x25d fp=0xc083e8b418 sp=0xc083e8b2c8 pc=0x92dd5d gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).WritePacket(0xc000c18000, 0xc001cd8460, 0xc000000800, 0xc000c12b00, 0x3c, 0x0) pkg/tcpip/stack/nic.go:307 +0x53 fp=0xc083e8b468 sp=0xc083e8b418 pc=0x92d813 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacket(0xc000c84000, 0xc001cd8460, 0xc000c12b00, 0xc001cd8400, 0x0, 0x0) pkg/tcpip/network/ipv4/ipv4.go:495 +0x375 fp=0xc083e8b6a0 sp=0xc083e8b468 pc=0xaf8955 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).WritePacket(0xc000c84000, 0xc001cd8460, 0x4e20004000000006, 0xc000c12b00, 0xff800228, 0xc003bca03c) pkg/tcpip/network/ipv4/ipv4.go:445 +0x179 fp=0xc083e8b710 sp=0xc083e8b6a0 pc=0xaf8479 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc001cd8460, 0x4000000006, 0xc000c12b00, 0xc0008f22e8, 0x4e20) pkg/tcpip/stack/route.go:462 +0xad fp=0xc083e8b750 sp=0xc083e8b710 pc=0x9378ed gvisor.dev/gvisor/pkg/tcpip/transport/tcp.sendTCP(0xc001cd8460, 0x4e20, 0xc000fa7b88, 0x4, 0x4e20, 0xc000fa7b88, 0x4, 0xeb53321700020040, 0xff8000000000, 0xc000cd7740, ...) pkg/tcpip/transport/tcp/connect.go:842 +0x285 fp=0xc083e8d5a0 sp=0xc083e8b750 pc=0xab80e5 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendTCP(0xc00365e700, 0xc001cd8460, 0x4e20, 0xc000fa7b88, 0x4, 0x4e20, 0xc000fa7b88, 0x4, 0xeb53321700020000, 0xff8000000000, ...) pkg/tcpip/transport/tcp/connect.go:734 +0xea fp=0xc083e8d670 sp=0xc083e8d5a0 pc=0xab74aa gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendSynTCP(0xc00365e700, 0xc001cd8460, 0x4e20, 0xc000fa7b88, 0x4, 0x4e20, 0xc000fa7b88, 0x4, 0xeb53321700020000, 0xff8000000000, ...) pkg/tcpip/transport/tcp/connect.go:725 +0xdc fp=0xc083e8d750 sp=0xc083e8d670 pc=0xab72fc gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*handshake).start(0xc003282c00) pkg/tcpip/transport/tcp/connect.go:502 +0x2da fp=0xc083e8d888 sp=0xc083e8d750 pc=0xab635a gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).connect(0xc00365e700, 0xc000000000, 0xc000fa7b88, 0x4, 0x4e20, 0x101, 0x0, 0x0) pkg/tcpip/transport/tcp/endpoint.go:2338 +0x807 fp=0xc083e8ef30 sp=0xc083e8d888 pc=0xac33c7 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).Connect(0xc00365e700, 0xc000000000, 0xc000fa7b88, 0x4, 0xc000fa4e20, 0x4, 0xc003be4e20) pkg/tcpip/transport/tcp/endpoint.go:2074 +0x7c fp=0xc083e8f950 sp=0xc083e8ef30 pc=0xac2abc gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*socketOpsCommon).Connect(0xc002ee6e40, 0xc003662a80, 0xc000fa7b90, 0x10, 0x10, 0x1, 0x0) pkg/sentry/socket/netstack/netstack.go:607 +0x364 fp=0xc083e8fa50 sp=0xc083e8f950 pc=0xb26504 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Connect(0xc003662a80, 0x3, 0x20000000, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/socket.go:277 +0x1c8 fp=0xc083e8fb00 sp=0xc083e8fa50 pc=0xdf2088 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc003662a80, 0x2a, 0x3, 0x20000000, 0x10, 0x0, 0x0, 0x0, 0xe32a30, 0x1251000, ...) pkg/sentry/kernel/task_syscall.go:104 +0x13c fp=0xc083e8fc60 sp=0xc083e8fb00 pc=0x9bc53c gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc003662a80, 0x2a, 0x3, 0x20000000, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:239 +0x66 fp=0xc083e8fce8 sp=0xc083e8fc60 pc=0x9bd6c6 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc003662a80, 0x2a, 0x3, 0x20000000, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:199 +0x98 fp=0xc083e8fd48 sp=0xc083e8fce8 pc=0x9bd2b8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc003662a80, 0x2, 0xc003662a80) pkg/sentry/kernel/task_syscall.go:174 +0x15c fp=0xc083e8fe18 sp=0xc083e8fd48 pc=0x9bcc5c gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc003662a80, 0x13b7460, 0x0) pkg/sentry/kernel/task_run.go:282 +0xca5 fp=0xc083e8ff60 sp=0xc083e8fe18 pc=0x9b1825 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc003662a80, 0x414) pkg/sentry/kernel/task_run.go:97 +0x1af fp=0xc083e8ffd0 sp=0xc083e8ff60 pc=0x9b048f runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc083e8ffd8 sp=0xc083e8ffd0 pc=0x472821 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:328 +0xfe