panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0xabbabb] goroutine 818408 [running]: panic(0x10b65a0, 0x1bd2d90) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc08ace8328 sp=0xc08ace8260 pc=0x437c65 runtime.panicmem() GOROOT/src/runtime/panic.go:212 +0x5b fp=0xc08ace8348 sp=0xc08ace8328 pc=0x435cbb runtime.sigpanic() GOROOT/src/runtime/signal_unix.go:734 +0x173 fp=0xc08ace8380 sp=0xc08ace8348 pc=0x44f993 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).MaxHeaderLength(...) pkg/tcpip/stack/route.go:278 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.sendTCP(0xc0001e9400, 0x2, 0xc12002c5a4, 0x4, 0x4c30, 0xc12002c5a0, 0x4, 0x140040, 0x301aebab, 0x0, ...) pkg/tcpip/transport/tcp/connect.go:831 +0xdb fp=0xc08acea1d0 sp=0xc08ace8380 pc=0xabbabb gvisor.dev/gvisor/pkg/tcpip/transport/tcp.replyWithReset(0xc000539c00, 0xc00902e600, 0x0, 0x0, 0x0) pkg/tcpip/transport/tcp/protocol.go:195 +0x1e5 fp=0xc08acea328 sp=0xc08acea1d0 pc=0xacd1c5 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*protocol).HandleUnknownDestinationPacket(0xc000b9e000, 0x2, 0xc12002c5a4, 0x4, 0x4c30, 0xc12002c5a0, 0x4, 0xc004f9a400, 0x0) pkg/tcpip/transport/tcp/protocol.go:153 +0x13b fp=0xc08acea3a8 sp=0xc08acea328 pc=0xaccf9b gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverTransportPacket(0xc000d90000, 0x6, 0xc004f9a400, 0x0) pkg/tcpip/stack/nic.go:834 +0x351 fp=0xc08acea4b0 sp=0xc08acea3a8 pc=0x932cd1 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleValidatedPacket(0xc0000d8700, 0xc00414c258, 0x14, 0x3c, 0xc004f9a400, 0x1255dd8, 0x2) pkg/tcpip/network/ipv4/ipv4.go:1046 +0x8ec fp=0xc08aceac78 sp=0xc08acea4b0 pc=0xaff34c gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).HandlePacket(0xc0000d8700, 0xc004f9a400) pkg/tcpip/network/ipv4/ipv4.go:836 +0x166 fp=0xc08aceaf10 sp=0xc08aceac78 pc=0xafe426 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0xc000d90000, 0x0, 0x0, 0x0, 0x0, 0x800, 0xc004f9a400) pkg/tcpip/stack/nic.go:749 +0x288 fp=0xc08aceafa0 sp=0xc08aceaf10 pc=0x9326a8 gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).DeliverNetworkPacket(0xc0009d25b0, 0x0, 0x0, 0x0, 0x0, 0xc000000800, 0xc004f9a400) pkg/tcpip/link/nested/nested.go:59 +0xbe fp=0xc08aceaff8 sp=0xc08aceafa0 pc=0xb9a47e gvisor.dev/gvisor/pkg/tcpip/link/sniffer.(*endpoint).DeliverNetworkPacket(0xc0009d25b0, 0x0, 0x0, 0x0, 0x0, 0x800, 0xc004f9a400) pkg/tcpip/link/sniffer/sniffer.go:140 +0x94 fp=0xc08aceb040 sp=0xc08aceaff8 pc=0xb9b254 gvisor.dev/gvisor/pkg/tcpip/link/loopback.(*endpoint).WritePacket(0xc00014c2d0, 0xc12002c538, 0x4, 0xc12002c538, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/loopback/loopback.go:89 +0xca fp=0xc08aceb098 sp=0xc08aceb040 pc=0xe1e58a 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(0xc0009d25b0, 0xc12002c538, 0x4, 0xc12002c538, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/sniffer/sniffer.go:174 +0x10d fp=0xc08aceb180 sp=0xc08aceb098 pc=0xb9b5cd gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacket(0xc000d90000, 0xc12002c538, 0x4, 0xc12002c538, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/stack/nic.go:368 +0xfe fp=0xc08aceb218 sp=0xc08aceb180 pc=0x93069e gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacketBuffer(0xc000d90000, 0xc12002c538, 0x4, 0xc12002c538, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/stack/nic.go:314 +0xd0 fp=0xc08aceb2c8 sp=0xc08aceb218 pc=0x92ffd0 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).enqueuePacketBuffer(0xc000d90000, 0xc0001e9360, 0x800, 0x13bcb80, 0xc004f9a300, 0xc00414c26c, 0x28, 0x28) pkg/tcpip/stack/nic.go:329 +0x25d fp=0xc08aceb418 sp=0xc08aceb2c8 pc=0x93041d gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).WritePacket(0xc000d90000, 0xc0001e9360, 0xc000000800, 0xc004f9a300, 0x3c, 0x0) pkg/tcpip/stack/nic.go:307 +0x53 fp=0xc08aceb468 sp=0xc08aceb418 pc=0x92fed3 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacket(0xc0000d8700, 0xc0001e9360, 0xc004f9a300, 0xc0001e9300, 0x0, 0x0) pkg/tcpip/network/ipv4/ipv4.go:495 +0x375 fp=0xc08aceb6a0 sp=0xc08aceb468 pc=0xafc375 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).WritePacket(0xc0000d8700, 0xc0001e9360, 0x2004000000006, 0xc004f9a300, 0xff800228, 0xc00414c26c) pkg/tcpip/network/ipv4/ipv4.go:445 +0x179 fp=0xc08aceb710 sp=0xc08aceb6a0 pc=0xafbe99 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc0001e9360, 0x4000000006, 0xc004f9a300, 0xc00023e5a8, 0x2) pkg/tcpip/stack/route.go:462 +0xad fp=0xc08aceb750 sp=0xc08aceb710 pc=0x939fad gvisor.dev/gvisor/pkg/tcpip/transport/tcp.sendTCP(0xc0001e9360, 0x4c30, 0xc12002c538, 0x4, 0x2, 0xc12002c538, 0x4, 0x301aebaa00020040, 0xff8000000000, 0xc115aad260, ...) pkg/tcpip/transport/tcp/connect.go:842 +0x285 fp=0xc08aced5a0 sp=0xc08aceb750 pc=0xabbc65 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendTCP(0xc00aba6600, 0xc0001e9360, 0x4c30, 0xc12002c538, 0x4, 0x2, 0xc12002c538, 0x4, 0x301aebaa00020000, 0xff8000000000, ...) pkg/tcpip/transport/tcp/connect.go:734 +0xea fp=0xc08aced670 sp=0xc08aced5a0 pc=0xabb02a gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendSynTCP(0xc00aba6600, 0xc0001e9360, 0x4c30, 0xc12002c538, 0x4, 0x2, 0xc12002c538, 0x4, 0x301aebaa00020000, 0xff8000000000, ...) pkg/tcpip/transport/tcp/connect.go:725 +0xdc fp=0xc08aced750 sp=0xc08aced670 pc=0xabae7c gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*handshake).start(0xc0093c1180) pkg/tcpip/transport/tcp/connect.go:502 +0x2da fp=0xc08aced888 sp=0xc08aced750 pc=0xab9eda gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).connect(0xc00aba6600, 0xc100000000, 0xc12002c538, 0x4, 0xc006690002, 0x9a0101, 0x0, 0x0) pkg/tcpip/transport/tcp/endpoint.go:2338 +0x807 fp=0xc08aceef30 sp=0xc08aced888 pc=0xac6ea7 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).Connect(0xc00aba6600, 0xc000000000, 0xc12002c538, 0x4, 0xc120020002, 0x4, 0xc003270002) pkg/tcpip/transport/tcp/endpoint.go:2074 +0x7c fp=0xc08acef950 sp=0xc08aceef30 pc=0xac659c gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*socketOpsCommon).Connect(0xc00a8373f0, 0xc0093e6a80, 0xc12002c540, 0x10, 0x10, 0x1, 0x0) pkg/sentry/socket/netstack/netstack.go:607 +0x364 fp=0xc08acefa50 sp=0xc08acef950 pc=0xb29f24 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Connect(0xc0093e6a80, 0x6, 0x200001c0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/socket.go:277 +0x1c8 fp=0xc08acefb00 sp=0xc08acefa50 pc=0xdf6828 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0093e6a80, 0x2a, 0x6, 0x200001c0, 0x10, 0x0, 0x0, 0x0, 0xe37930, 0x1254960, ...) pkg/sentry/kernel/task_syscall.go:104 +0x13c fp=0xc08acefc60 sp=0xc08acefb00 pc=0x9bf83c gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0093e6a80, 0x2a, 0x6, 0x200001c0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:239 +0x66 fp=0xc08acefce8 sp=0xc08acefc60 pc=0x9c09c6 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0093e6a80, 0x2a, 0x6, 0x200001c0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:199 +0x98 fp=0xc08acefd48 sp=0xc08acefce8 pc=0x9c05b8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0093e6a80, 0x2, 0xc0093e6a80) pkg/sentry/kernel/task_syscall.go:174 +0x15c fp=0xc08acefe18 sp=0xc08acefd48 pc=0x9bff5c gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc0093e6a80, 0x13bba60, 0x0) pkg/sentry/kernel/task_run.go:282 +0xca5 fp=0xc08aceff60 sp=0xc08acefe18 pc=0x9b4b25 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0093e6a80, 0x62e8) pkg/sentry/kernel/task_run.go:97 +0x1af fp=0xc08aceffd0 sp=0xc08aceff60 pc=0x9b378f runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc08aceffd8 sp=0xc08aceffd0 pc=0x472821 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:328 +0xfe