panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x93b180] goroutine 3686 [running]: panic(0x1151580, 0x1d19340) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc0009efcf0 sp=0xc0009efc28 pc=0x437c65 runtime.panicmem() GOROOT/src/runtime/panic.go:212 +0x5b fp=0xc0009efd10 sp=0xc0009efcf0 pc=0x435cbb runtime.sigpanic() GOROOT/src/runtime/signal_unix.go:734 +0x173 fp=0xc0009efd48 sp=0xc0009efd10 pc=0x44fa93 gvisor.dev/gvisor/pkg/buffer.(*View).Clone(0x0, 0x12d1f40) pkg/buffer/view.go:385 +0x40 fp=0xc0009efd98 sp=0xc0009efd48 pc=0x93b180 gvisor.dev/gvisor/pkg/tcpip/stack.(*PacketBuffer).Clone(0xc0010b4000, 0xc0005ea4b0) pkg/tcpip/stack/packet_buffer.go:340 +0x85 fp=0xc0009efdc8 sp=0xc0009efd98 pc=0x964485 gvisor.dev/gvisor/pkg/tcpip/stack.(*transportDemuxer).deliverRawPacket(0xc000276480, 0x1, 0xc0010b4000, 0x8) pkg/tcpip/stack/transport_demuxer.go:622 +0x11d fp=0xc0009efe80 sp=0xc0009efdc8 pc=0x978bfd gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverRawPacket(0xc00000a3c0, 0xc000000001, 0xc0010b4000) pkg/tcpip/stack/nic.go:925 +0x4e fp=0xc0009efeb8 sp=0xc0009efe80 pc=0x96242e gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleValidatedPacket(0xc00046b500, 0xc0013c2356, 0x14, 0x14, 0xc0010b4280, 0x130f9ca, 0x2) pkg/tcpip/network/ipv4/ipv4.go:944 +0x846 fp=0xc0009f0680 sp=0xc0009efeb8 pc=0xb40b26 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).HandlePacket(0xc00046b500, 0xc0010b4280) pkg/tcpip/network/ipv4/ipv4.go:773 +0x169 fp=0xc0009f08e0 sp=0xc0009f0680 pc=0xb3fcc9 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0xc00000a3c0, 0xc000e92688, 0x6, 0xc000e92690, 0x6, 0xc000000800, 0xc0010b4280) pkg/tcpip/stack/nic.go:778 +0x2d0 fp=0xc0009f0998 sp=0xc0009f08e0 pc=0x961750 gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).DeliverNetworkPacket(0xc00062c280, 0xc000e92688, 0x6, 0xc000e92690, 0x6, 0x800, 0xc0010b4280) pkg/tcpip/link/nested/nested.go:59 +0xbe fp=0xc0009f09f0 sp=0xc0009f0998 pc=0xbe47be gvisor.dev/gvisor/pkg/tcpip/link/ethernet.(*Endpoint).DeliverNetworkPacket(0xc00062c280, 0x0, 0x0, 0x0, 0x0, 0x800, 0xc0010b4280) pkg/tcpip/link/ethernet/ethernet.go:71 +0x15f fp=0xc0009f0a60 sp=0xc0009f09f0 pc=0xe9501f gvisor.dev/gvisor/pkg/tcpip/link/loopback.(*endpoint).WriteRawPacket(0xc000278180, 0xc0010b4140, 0x0, 0x0) pkg/tcpip/link/loopback/loopback.go:109 +0xfa fp=0xc0009f0ad0 sp=0xc0009f0a60 pc=0xe95a5a gvisor.dev/gvisor/pkg/tcpip/link/loopback.(*endpoint).WritePackets(0xc000278180, 0xc000e925f8, 0x4, 0xc000e925f8, 0x4, 0x146a5d8, 0x6, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/loopback/loopback.go:81 +0x65 fp=0xc0009f0b10 sp=0xc0009f0ad0 pc=0xe958a5 gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).WritePackets(...) pkg/tcpip/link/nested/nested.go:107 gvisor.dev/gvisor/pkg/tcpip/link/ethernet.(*Endpoint).WritePackets(0xc00062c280, 0xc000e925f8, 0x4, 0xc000e925f8, 0x4, 0x146a5d8, 0x6, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/ethernet/ethernet.go:91 +0x18a fp=0xc0009f0c20 sp=0xc0009f0b10 pc=0xe9528a gvisor.dev/gvisor/pkg/tcpip/stack.(*delegatingQueueingDiscipline).WritePacket(0xc000278190, 0xc000e925f8, 0x4, 0xc000e925f8, 0x4, 0x146a5d8, 0x6, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/stack/nic.go:152 +0xca fp=0xc0009f0cc0 sp=0xc0009f0c20 pc=0x95e2ca gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacket(0xc00000a3c0, 0xc000e925f8, 0x4, 0xc000e925f8, 0x4, 0x146a5d8, 0x6, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/stack/nic.go:395 +0x136 fp=0xc0009f0d58 sp=0xc0009f0cc0 pc=0x95f9f6 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).WritePacket(0xc00000a3c0, 0xc0002ce0a0, 0x800, 0xc0010b4140, 0x0, 0x0) pkg/tcpip/stack/nic.go:354 +0x210 fp=0xc0009f0e98 sp=0xc0009f0d58 pc=0x95f750 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacketPostRouting.func1(0xc0010b4140, 0xc0013c2306, 0x14) pkg/tcpip/network/ipv4/ipv4.go:502 +0x50 fp=0xc0009f0ed8 sp=0xc0009f0e98 pc=0xb458d0 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleFragments(0xc00046b500, 0xc0002ce0a0, 0xc00000ffde, 0xc000cd2000, 0xc0009f1038, 0x130f9ca, 0x2, 0xc0005ea401, 0x2) pkg/tcpip/network/ipv4/ipv4.go:411 +0x134 fp=0xc0009f0fe8 sp=0xc0009f0ed8 pc=0xb3dd74 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacketPostRouting(0xc00046b500, 0xc0002ce0a0, 0xc000cd2000, 0xc000e92600, 0x4, 0xc0013c2301) pkg/tcpip/network/ipv4/ipv4.go:497 +0x26f fp=0xc0009f1210 sp=0xc0009f0fe8 pc=0xb3e46f gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacket(0xc00046b500, 0xc0002ce0a0, 0xc000cd2000, 0xc000e925f8, 0x4) pkg/tcpip/network/ipv4/ipv4.go:459 +0x1a5 fp=0xc0009f1298 sp=0xc0009f1210 pc=0xb3e105 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).WritePacket(0xc00046b500, 0xc0002ce0a0, 0x4000000001, 0xc000cd2000, 0x963b2d, 0x14a17e8) pkg/tcpip/network/ipv4/ipv4.go:427 +0xe9 fp=0xc0009f1308 sp=0xc0009f1298 pc=0xb3df29 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc0002ce0a0, 0x4000000001, 0xc000cd2000, 0xc000ed7418, 0xc000cd2000) pkg/tcpip/stack/route.go:465 +0xad fp=0xc0009f1348 sp=0xc0009f1308 pc=0x969fed gvisor.dev/gvisor/pkg/tcpip/transport/internal/network.(*WriteContext).WritePacket(0xc000ed7430, 0xc000cd2000, 0x0, 0x1, 0xffe0) pkg/tcpip/transport/internal/network/endpoint.go:262 +0xb0 fp=0xc0009f1380 sp=0xc0009f1348 pc=0xaefcd0 gvisor.dev/gvisor/pkg/tcpip/transport/raw.(*endpoint).write(0xc001273080, 0x1492ca0, 0xc000b408c0, 0xc0003e8740, 0x0, 0x0, 0x0, 0x0) pkg/tcpip/transport/raw/endpoint.go:329 +0x49b fp=0xc0009f1530 sp=0xc0009f1380 pc=0xafab7b gvisor.dev/gvisor/pkg/tcpip/transport/raw.(*endpoint).Write(0xc001273080, 0x1492ca0, 0xc000b408c0, 0xc0003e8740, 0xc000000000, 0x4, 0x0, 0x9f0002) pkg/tcpip/transport/raw/endpoint.go:276 +0x90 fp=0xc0009f1580 sp=0xc0009f1530 pc=0xafa4b0 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*socketOpsCommon).SendMsg(0xc001278a10, 0xc0010d0000, 0x14ac8e0, 0xc0014e9000, 0x0, 0x1, 0x20000040, 0xffe0, 0x100, 0xc000e92600, ...) pkg/sentry/socket/netstack/netstack.go:3051 +0x206 fp=0xc0009f16e0 sp=0xc0009f1580 pc=0xb81966 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.sendSingleMsg(0xc0010d0000, 0x7f69ebd249d8, 0xc0012789a0, 0xc0012789a0, 0x20001440, 0xc000000040, 0x0, 0xc0010d0001, 0x5641712f0f68) pkg/sentry/syscalls/linux/vfs2/socket.go:1112 +0x4d5 fp=0xc0009f1a40 sp=0xc0009f16e0 pc=0xe72695 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.SendMMsg(0xc0010d0000, 0x4, 0x20001440, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/socket.go:1036 +0x2a5 fp=0xc0009f1b10 sp=0xc0009f1a40 pc=0xe71dc5 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0010d0000, 0x133, 0x4, 0x20001440, 0x1, 0x0, 0x0, 0x0, 0x0, 0x130aac0, ...) pkg/sentry/kernel/task_syscall.go:103 +0x13c fp=0xc0009f1c70 sp=0xc0009f1b10 pc=0x9edcdc gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0010d0000, 0x133, 0x4, 0x20001440, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:238 +0x66 fp=0xc0009f1cf8 sp=0xc0009f1c70 pc=0x9eee86 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0010d0000, 0x133, 0x4, 0x20001440, 0x1, 0x0, 0x0, 0x0, 0xc00050a820, 0xc00050a780) pkg/sentry/kernel/task_syscall.go:198 +0x98 fp=0xc0009f1d58 sp=0xc0009f1cf8 pc=0x9eea78 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0010d0000, 0x2, 0xc0010d0000) pkg/sentry/kernel/task_syscall.go:173 +0x15c fp=0xc0009f1e28 sp=0xc0009f1d58 pc=0x9ee41c gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc0010d0000, 0x1484f00, 0x0) pkg/sentry/kernel/task_run.go:282 +0xccc fp=0xc0009f1f68 sp=0xc0009f1e28 pc=0x9e31cc gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0010d0000, 0x108) pkg/sentry/kernel/task_run.go:97 +0x182 fp=0xc0009f1fd0 sp=0xc0009f1f68 pc=0x9e1e02 runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc0009f1fd8 sp=0xc0009f1fd0 pc=0x472861 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:340 +0xfe