panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x929446] goroutine 1467951 [running]: panic(0x10987a0, 0x1baabe0) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc0943078e0 sp=0xc094307818 pc=0x437c65 runtime.panicmem() GOROOT/src/runtime/panic.go:212 +0x5b fp=0xc094307900 sp=0xc0943078e0 pc=0x435cbb runtime.sigpanic() GOROOT/src/runtime/signal_unix.go:734 +0x173 fp=0xc094307938 sp=0xc094307900 pc=0x44f993 gvisor.dev/gvisor/pkg/tcpip/stack.(*PacketBuffer).headerView(0x0, 0x2, 0x0, 0x0, 0x0) pkg/tcpip/stack/packet_buffer.go:274 +0x26 fp=0xc094307980 sp=0xc094307938 pc=0x929446 gvisor.dev/gvisor/pkg/tcpip/stack.PacketHeader.View(...) pkg/tcpip/stack/packet_buffer.go:364 gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*protocol).HandleUnknownDestinationPacket(0xc000506140, 0x0, 0x0, 0x0, 0x0, 0xc0127cd310, 0x4, 0x0, 0x0) pkg/tcpip/transport/udp/protocol.go:82 +0x65 fp=0xc094308d18 sp=0xc094307980 pc=0xade885 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverTransportPacket(0xc0001e2e00, 0x11, 0xc013a1e700, 0x0) pkg/tcpip/stack/nic.go:839 +0x371 fp=0xc094308e20 sp=0xc094308d18 pc=0x927111 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleValidatedPacket(0xc0002f9c00, 0xc013a087f8, 0x14, 0x1c, 0xc013a1e700, 0x1235716, 0x2) pkg/tcpip/network/ipv4/ipv4.go:1040 +0x818 fp=0xc0943095e8 sp=0xc094308e20 pc=0xaf2718 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).HandlePacket(0xc0002f9c00, 0xc013a1e700) pkg/tcpip/network/ipv4/ipv4.go:840 +0x166 fp=0xc094309880 sp=0xc0943095e8 pc=0xaf18c6 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0xc0001e2e00, 0x0, 0x0, 0x0, 0x0, 0x800, 0xc013a1e700) pkg/tcpip/stack/nic.go:749 +0x288 fp=0xc094309910 sp=0xc094309880 pc=0x926ac8 gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).DeliverNetworkPacket(0xc0009f64d0, 0x0, 0x0, 0x0, 0x0, 0xc000000800, 0xc013a1e700) pkg/tcpip/link/nested/nested.go:59 +0xbe fp=0xc094309968 sp=0xc094309910 pc=0xb8c49e gvisor.dev/gvisor/pkg/tcpip/link/sniffer.(*endpoint).DeliverNetworkPacket(0xc0009f64d0, 0x0, 0x0, 0x0, 0x0, 0x800, 0xc013a1e700) pkg/tcpip/link/sniffer/sniffer.go:143 +0x94 fp=0xc0943099b0 sp=0xc094309968 pc=0xb8cfb4 gvisor.dev/gvisor/pkg/tcpip/link/loopback.(*endpoint).WritePacket(0xc00030e090, 0xc0127cd2c0, 0x4, 0xc0127cd2c0, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/loopback/loopback.go:89 +0xca fp=0xc094309a08 sp=0xc0943099b0 pc=0xe0692a 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(0xc0009f64d0, 0xc0127cd2c0, 0x4, 0xc0127cd2c0, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/sniffer/sniffer.go:192 +0x10d fp=0xc094309af0 sp=0xc094309a08 pc=0xb8d44d gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacket(0xc0001e2e00, 0xc0127cd2c0, 0x4, 0xc0127cd2c0, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/stack/nic.go:368 +0xfe fp=0xc094309b88 sp=0xc094309af0 pc=0x924abe gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacketBuffer(0xc0001e2e00, 0xc0127cd2c0, 0x4, 0xc0127cd2c0, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/stack/nic.go:314 +0xd0 fp=0xc094309c38 sp=0xc094309b88 pc=0x9243f0 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).enqueuePacketBuffer(0xc0001e2e00, 0xc0127908c0, 0x800, 0x13a0f00, 0xc013a1e600, 0xc013a0880c, 0x8, 0x8) pkg/tcpip/stack/nic.go:329 +0x25d fp=0xc094309d88 sp=0xc094309c38 pc=0x92483d gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).WritePacket(0xc0001e2e00, 0xc0127908c0, 0xc000000800, 0xc013a1e600, 0x1c, 0x0) pkg/tcpip/stack/nic.go:307 +0x53 fp=0xc094309dd8 sp=0xc094309d88 pc=0x9242f3 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacket(0xc0002f9c00, 0xc0127908c0, 0xc013a1e600, 0xc012790800, 0x0, 0x0) pkg/tcpip/network/ipv4/ipv4.go:495 +0x375 fp=0xc09430a010 sp=0xc094309dd8 pc=0xaef795 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).WritePacket(0xc0002f9c00, 0xc0127908c0, 0x4000000011, 0xc013a1e600, 0xc0127908c0, 0xc0034c0001) pkg/tcpip/network/ipv4/ipv4.go:445 +0x179 fp=0xc09430a080 sp=0xc09430a010 pc=0xaef2b9 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc0127908c0, 0x4000000011, 0xc013a1e600, 0xc0006e2708, 0x8) pkg/tcpip/stack/route.go:462 +0xad fp=0xc09430a0c0 sp=0xc09430a080 pc=0x92e36d gvisor.dev/gvisor/pkg/tcpip/transport/udp.sendUDP(0xc0127908c0, 0x0, 0x0, 0x0, 0x0, 0x1004e203feb, 0x13a8700, 0xc01365d500, 0x0, 0x0, ...) pkg/tcpip/transport/udp/endpoint.go:856 +0x3c5 fp=0xc09430b4e0 sp=0xc09430a0c0 pc=0xadab05 gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).write(0xc00abd6f00, 0x13ace90, 0xc013bd83c0, 0xc013a147e0, 0x100, 0x0, 0x0, 0x0) pkg/tcpip/transport/udp/endpoint.go:580 +0x688 fp=0xc09430b678 sp=0xc09430b4e0 pc=0xad9108 gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).Write(0xc00abd6f00, 0x13ace90, 0xc013bd83c0, 0xc013a147e0, 0xc012000100, 0x4, 0xc013654e20, 0x20000002) pkg/tcpip/transport/udp/endpoint.go:432 +0x68 fp=0xc09430b6c8 sp=0xc09430b678 pc=0xad88a8 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*socketOpsCommon).SendMsg(0xc0103eefe0, 0xc01365d500, 0x13c4f70, 0xc0138cb000, 0x0, 0x1, 0x20000140, 0x0, 0x100, 0xc0127cd2b0, ...) pkg/sentry/socket/netstack/netstack.go:2854 +0x209 fp=0xc09430b838 sp=0xc09430b6c8 pc=0xb29909 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.sendTo(0xc01365d500, 0x3, 0x20000140, 0x0, 0x401c1, 0x20000040, 0xc000000010, 0x0, 0x0, 0x0) pkg/sentry/syscalls/linux/vfs2/socket.go:1127 +0x495 fp=0xc09430baa8 sp=0xc09430b838 pc=0xde5235 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.SendTo(0xc01365d500, 0x3, 0x20000140, 0x0, 0x401c1, 0x20000040, 0x10, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/socket.go:1140 +0x71 fp=0xc09430bb08 sp=0xc09430baa8 pc=0xde5671 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc01365d500, 0x2c, 0x3, 0x20000140, 0x0, 0x401c1, 0x20000040, 0x10, 0xe1ef4c, 0x12342a0, ...) pkg/sentry/kernel/task_syscall.go:102 +0x13c fp=0xc09430bc68 sp=0xc09430bb08 pc=0x9b45dc gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc01365d500, 0x2c, 0x3, 0x20000140, 0x0, 0x401c1, 0x20000040, 0x10, 0x20000040, 0x10) pkg/sentry/kernel/task_syscall.go:237 +0x66 fp=0xc09430bcf0 sp=0xc09430bc68 pc=0x9b57a6 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc01365d500, 0x2c, 0x3, 0x20000140, 0x0, 0x401c1, 0x20000040, 0x10, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:197 +0x98 fp=0xc09430bd50 sp=0xc09430bcf0 pc=0x9b5358 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc01365d500, 0x2, 0xc01365d500) pkg/sentry/kernel/task_syscall.go:172 +0x15c fp=0xc09430be20 sp=0xc09430bd50 pc=0x9b4cfc gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc01365d500, 0x139fd80, 0x0) pkg/sentry/kernel/task_run.go:282 +0xca5 fp=0xc09430bf60 sp=0xc09430be20 pc=0x9a9505 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc01365d500, 0x7634) pkg/sentry/kernel/task_run.go:97 +0x1af fp=0xc09430bfd0 sp=0xc09430bf60 pc=0x9a816f runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc09430bfd8 sp=0xc09430bfd0 pc=0x472821 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:327 +0xfe