panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x58 pc=0x9d4290] goroutine 45967 [running]: panic(0xedf940, 0x19f2870) GOROOT/src/runtime/panic.go:1064 +0x46d fp=0xc082d840e8 sp=0xc082d84030 pc=0x43438d runtime.panicmem(...) GOROOT/src/runtime/panic.go:212 runtime.sigpanic() GOROOT/src/runtime/signal_unix.go:695 +0x3da fp=0xc082d84118 sp=0xc082d840e8 pc=0x44b8fa gvisor.dev/gvisor/pkg/tcpip/stack.PacketHeader.View(...) pkg/tcpip/stack/packet_buffer.go:272 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).HandlePacket(0xc0003ea800, 0x0, 0x0) pkg/tcpip/network/ipv4/ipv4.go:384 +0x50 fp=0xc082d87198 sp=0xc082d84118 pc=0x9d4290 gvisor.dev/gvisor/pkg/tcpip/stack.handlePacket(0xc000000800, 0xc0024568fc, 0x4, 0xc0024568f8, 0x4, 0x0, 0x0, 0xc0024568f0, 0x6, 0xc00079c0c0, ...) pkg/tcpip/stack/nic.go:1160 +0x1de fp=0xc082d87298 sp=0xc082d87198 pc=0x7d1cbe gvisor.dev/gvisor/pkg/tcpip/stack.(*NIC).DeliverNetworkPacket(0xc000a7c6e0, 0xc0024568f0, 0x6, 0x0, 0x0, 0x800, 0xc002472000) pkg/tcpip/stack/nic.go:1251 +0xc91 fp=0xc082d874a0 sp=0xc082d87298 pc=0x7d2a01 gvisor.dev/gvisor/pkg/tcpip/link/channel.(*Endpoint).InjectLinkAddr(...) pkg/tcpip/link/channel/channel.go:191 gvisor.dev/gvisor/pkg/tcpip/link/tun.(*Device).Write(0xc000581c80, 0xc002437600, 0x3e, 0x3e, 0x0, 0x1, 0x200002c0) pkg/tcpip/link/tun/device.go:223 +0x331 fp=0xc082d87590 sp=0xc082d874a0 pc=0xa9a691 gvisor.dev/gvisor/pkg/sentry/fs/dev.(*netTunFileOperations).Write(0xc000581c80, 0x120c5e0, 0xc0028e4000, 0xc00102dd90, 0x1204ca0, 0xc002241000, 0x0, 0x1, 0x200002c0, 0x3e, ...) pkg/sentry/fs/dev/net_tun.go:141 +0x1da fp=0xc082d87698 sp=0xc082d87590 pc=0xa9ec8a gvisor.dev/gvisor/pkg/sentry/fs.(*overlayFileOperations).Write(0xc000b39890, 0x120c5e0, 0xc0028e4000, 0xc00102de40, 0x1204ca0, 0xc002241000, 0x0, 0x1, 0x200002c0, 0x3e, ...) pkg/sentry/fs/file_overlay.go:285 +0xa8 fp=0xc082d87720 sp=0xc082d87698 pc=0x685b98 gvisor.dev/gvisor/pkg/sentry/fs.(*File).Writev(0xc00102de40, 0x120c5e0, 0xc0028e4000, 0x1204ca0, 0xc002241000, 0x0, 0x1, 0x200002c0, 0x3e, 0x100, ...) pkg/sentry/fs/file.go:335 +0x213 fp=0xc082d87860 sp=0xc082d87720 pc=0x682953 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.writev(0xc0028e4000, 0xc00102de40, 0x1204ca0, 0xc002241000, 0x0, 0x1, 0x200002c0, 0x3e, 0x100, 0x3e, ...) pkg/sentry/syscalls/linux/sys_write.go:262 +0x90 fp=0xc082d87a00 sp=0xc082d87860 pc=0x943450 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Write(0xc0028e4000, 0xf0, 0x200002c0, 0x3e, 0x2b86633bf9d0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/sys_write.go:72 +0x1ff fp=0xc082d87b08 sp=0xc082d87a00 pc=0x9418cf gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0028e4000, 0x1, 0xf0, 0x200002c0, 0x3e, 0x2b86633bf9d0, 0x0, 0x0, 0xc002305cd8, 0x103e6e0, ...) pkg/sentry/kernel/task_syscall.go:103 +0x122 fp=0xc082d87c68 sp=0xc082d87b08 pc=0x8c03f2 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0028e4000, 0x1, 0xf0, 0x200002c0, 0x3e, 0x2b86633bf9d0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:238 +0x66 fp=0xc082d87cf0 sp=0xc082d87c68 pc=0x8c15d6 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0028e4000, 0x1, 0xf0, 0x200002c0, 0x3e, 0x2b86633bf9d0, 0x0, 0x0, 0x11df3a0, 0x0) pkg/sentry/kernel/task_syscall.go:198 +0x96 fp=0xc082d87d50 sp=0xc082d87cf0 pc=0x8c1166 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0028e4000, 0x2, 0xc0028e4000) pkg/sentry/kernel/task_syscall.go:173 +0x15c fp=0xc082d87e10 sp=0xc082d87d50 pc=0x8c0afc gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc0028e4000, 0x11df3a0, 0x0) pkg/sentry/kernel/task_run.go:275 +0xc18 fp=0xc082d87f60 sp=0xc082d87e10 pc=0x8b54c8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0028e4000, 0x169) pkg/sentry/kernel/task_run.go:93 +0x18b fp=0xc082d87fd0 sp=0xc082d87f60 pc=0x8b419b runtime.goexit() src/runtime/asm_amd64.s:1373 +0x1 fp=0xc082d87fd8 sp=0xc082d87fd0 pc=0x467d61 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:318 +0xfe