panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0xab7e3b] goroutine 974281 [running]: panic(0x10adb80, 0x1bbdc30) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc08bd08328 sp=0xc08bd08260 pc=0x437c65 runtime.panicmem() GOROOT/src/runtime/panic.go:212 +0x5b fp=0xc08bd08348 sp=0xc08bd08328 pc=0x435cbb runtime.sigpanic() GOROOT/src/runtime/signal_unix.go:734 +0x173 fp=0xc08bd08380 sp=0xc08bd08348 pc=0x44f993 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).MaxHeaderLength(...) pkg/tcpip/stack/route.go:278 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.sendTCP(0xc002c1f2c0, 0x0, 0xc00a076084, 0x4, 0xe053, 0xc00a076080, 0x4, 0x140040, 0x9b2bd8b7, 0x0, ...) pkg/tcpip/transport/tcp/connect.go:831 +0xdb fp=0xc08bd0a1d0 sp=0xc08bd08380 pc=0xab7e3b gvisor.dev/gvisor/pkg/tcpip/transport/tcp.replyWithReset(0xc0002d1c00, 0xc000735800, 0x0, 0x0, 0x0) pkg/tcpip/transport/tcp/protocol.go:195 +0x1e5 fp=0xc08bd0a328 sp=0xc08bd0a1d0 pc=0xac9665 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*protocol).HandleUnknownDestinationPacket(0xc001084000, 0x0, 0xc00a076084, 0x4, 0xe053, 0xc00a076080, 0x4, 0xc00af34700, 0x0) pkg/tcpip/transport/tcp/protocol.go:153 +0x13b fp=0xc08bd0a3a8 sp=0xc08bd0a328 pc=0xac943b gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverTransportPacket(0xc001090000, 0x6, 0xc00af34700, 0x0) pkg/tcpip/stack/nic.go:834 +0x351 fp=0xc08bd0a4b0 sp=0xc08bd0a3a8 pc=0x9308d1 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleValidatedPacket(0xc001098000, 0xc00b868028, 0x14, 0x3c, 0xc00af34700, 0x124bb96, 0x2) pkg/tcpip/network/ipv4/ipv4.go:1046 +0x8ec fp=0xc08bd0ac78 sp=0xc08bd0a4b0 pc=0xafb82c gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).HandlePacket(0xc001098000, 0xc00af34700) pkg/tcpip/network/ipv4/ipv4.go:836 +0x166 fp=0xc08bd0af10 sp=0xc08bd0ac78 pc=0xafa906 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0xc001090000, 0x0, 0x0, 0x0, 0x0, 0x800, 0xc00af34700) pkg/tcpip/stack/nic.go:749 +0x288 fp=0xc08bd0afa0 sp=0xc08bd0af10 pc=0x9302a8 gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).DeliverNetworkPacket(0xc000295e30, 0x0, 0x0, 0x0, 0x0, 0xc000000800, 0xc00af34700) pkg/tcpip/link/nested/nested.go:59 +0xbe fp=0xc08bd0aff8 sp=0xc08bd0afa0 pc=0xb968be gvisor.dev/gvisor/pkg/tcpip/link/sniffer.(*endpoint).DeliverNetworkPacket(0xc000295e30, 0x0, 0x0, 0x0, 0x0, 0x800, 0xc00af34700) pkg/tcpip/link/sniffer/sniffer.go:140 +0x94 fp=0xc08bd0b040 sp=0xc08bd0aff8 pc=0xb97314 gvisor.dev/gvisor/pkg/tcpip/link/loopback.(*endpoint).WritePacket(0xc0000b64f0, 0xc00af5ffe4, 0x4, 0xc00af5ffe4, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/loopback/loopback.go:89 +0xca fp=0xc08bd0b098 sp=0xc08bd0b040 pc=0xe1544a 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(0xc000295e30, 0xc00af5ffe4, 0x4, 0xc00af5ffe4, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/sniffer/sniffer.go:191 +0x10d fp=0xc08bd0b180 sp=0xc08bd0b098 pc=0xb97a6d gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacket(0xc001090000, 0xc00af5ffe4, 0x4, 0xc00af5ffe4, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/stack/nic.go:368 +0xfe fp=0xc08bd0b218 sp=0xc08bd0b180 pc=0x92e29e gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacketBuffer(0xc001090000, 0xc00af5ffe4, 0x4, 0xc00af5ffe4, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/stack/nic.go:314 +0xd0 fp=0xc08bd0b2c8 sp=0xc08bd0b218 pc=0x92dbd0 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).enqueuePacketBuffer(0xc001090000, 0xc002c1f220, 0x800, 0x13b1680, 0xc00af34600, 0xc00b86803c, 0x28, 0x28) pkg/tcpip/stack/nic.go:329 +0x25d fp=0xc08bd0b418 sp=0xc08bd0b2c8 pc=0x92e01d gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).WritePacket(0xc001090000, 0xc002c1f220, 0xc000000800, 0xc00af34600, 0x3c, 0x0) pkg/tcpip/stack/nic.go:307 +0x53 fp=0xc08bd0b468 sp=0xc08bd0b418 pc=0x92dad3 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacket(0xc001098000, 0xc002c1f220, 0xc00af34600, 0xc002c1f200, 0x0, 0x0) pkg/tcpip/network/ipv4/ipv4.go:495 +0x375 fp=0xc08bd0b6a0 sp=0xc08bd0b468 pc=0xaf8855 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).WritePacket(0xc001098000, 0xc002c1f220, 0x4000000006, 0xc00af34600, 0xff800228, 0xc00b86803c) pkg/tcpip/network/ipv4/ipv4.go:445 +0x179 fp=0xc08bd0b710 sp=0xc08bd0b6a0 pc=0xaf8379 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc002c1f220, 0x4000000006, 0xc00af34600, 0xc0007b0258, 0x0) pkg/tcpip/stack/route.go:462 +0xad fp=0xc08bd0b750 sp=0xc08bd0b710 pc=0x937bad gvisor.dev/gvisor/pkg/tcpip/transport/tcp.sendTCP(0xc002c1f220, 0xe053, 0xc00af5ffe4, 0x4, 0x0, 0xc00af5ffe4, 0x4, 0x9b2bd8b600020040, 0xff8000000000, 0xc00a3ef770, ...) pkg/tcpip/transport/tcp/connect.go:842 +0x285 fp=0xc08bd0d5a0 sp=0xc08bd0b750 pc=0xab7fe5 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendTCP(0xc00b846700, 0xc002c1f220, 0xe053, 0xc00af5ffe4, 0x4, 0x0, 0xc00af5ffe4, 0x4, 0x9b2bd8b600020000, 0xff8000000000, ...) pkg/tcpip/transport/tcp/connect.go:734 +0xea fp=0xc08bd0d670 sp=0xc08bd0d5a0 pc=0xab73aa gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendSynTCP(0xc00b846700, 0xc002c1f220, 0xe053, 0xc00af5ffe4, 0x4, 0x0, 0xc00af5ffe4, 0x4, 0x9b2bd8b600020000, 0xff8000000000, ...) pkg/tcpip/transport/tcp/connect.go:725 +0xdc fp=0xc08bd0d750 sp=0xc08bd0d670 pc=0xab71fc gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*handshake).start(0xc00b860e00) pkg/tcpip/transport/tcp/connect.go:502 +0x2da fp=0xc08bd0d888 sp=0xc08bd0d750 pc=0xab625a gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).connect(0xc00b846700, 0xc000000000, 0xc00af5ffe4, 0x4, 0x0, 0x101, 0x0, 0x0) pkg/tcpip/transport/tcp/endpoint.go:2338 +0x807 fp=0xc08bd0ef30 sp=0xc08bd0d888 pc=0xac32c7 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).Connect(0xc00b846700, 0xc000000000, 0xc00af5ffe4, 0x4, 0xc00af50000, 0x4, 0xc000e50000) pkg/tcpip/transport/tcp/endpoint.go:2074 +0x7c fp=0xc08bd0f950 sp=0xc08bd0ef30 pc=0xac29bc gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*socketOpsCommon).Connect(0xc00ac0bc10, 0xc00b5db500, 0xc00af5fff0, 0x10, 0x10, 0x1, 0x0) pkg/sentry/socket/netstack/netstack.go:607 +0x364 fp=0xc08bd0fa50 sp=0xc08bd0f950 pc=0xb26404 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Connect(0xc00b5db500, 0x3, 0x20000140, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/socket.go:277 +0x1c8 fp=0xc08bd0fb00 sp=0xc08bd0fa50 pc=0xded6e8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc00b5db500, 0x2a, 0x3, 0x20000140, 0x10, 0x0, 0x0, 0x0, 0xe2e070, 0x124a720, ...) pkg/sentry/kernel/task_syscall.go:104 +0x13c fp=0xc08bd0fc60 sp=0xc08bd0fb00 pc=0x9bc55c gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc00b5db500, 0x2a, 0x3, 0x20000140, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:239 +0x66 fp=0xc08bd0fce8 sp=0xc08bd0fc60 pc=0x9bd6e6 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc00b5db500, 0x2a, 0x3, 0x20000140, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:199 +0x98 fp=0xc08bd0fd48 sp=0xc08bd0fce8 pc=0x9bd2d8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc00b5db500, 0x2, 0xc00b5db500) pkg/sentry/kernel/task_syscall.go:174 +0x15c fp=0xc08bd0fe18 sp=0xc08bd0fd48 pc=0x9bcc7c gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc00b5db500, 0x13b04e0, 0x0) pkg/sentry/kernel/task_run.go:282 +0xca5 fp=0xc08bd0ff60 sp=0xc08bd0fe18 pc=0x9b1845 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc00b5db500, 0x7570) pkg/sentry/kernel/task_run.go:97 +0x1af fp=0xc08bd0ffd0 sp=0xc08bd0ff60 pc=0x9b04af runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc08bd0ffd8 sp=0xc08bd0ffd0 pc=0x472821 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:328 +0xfe