panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0xf4 pc=0xbcb637] goroutine 118129 [running]: panic(0x11cafa0, 0x1e91730) GOROOT/src/runtime/panic.go:1064 +0x545 fp=0xc0876002f0 sp=0xc087600228 pc=0x437265 runtime.panicmem(...) GOROOT/src/runtime/panic.go:212 runtime.sigpanic() GOROOT/src/runtime/signal_unix.go:742 +0x413 fp=0xc087600320 sp=0xc0876002f0 pc=0x44e093 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleValidatedPacket(0xc00043ae00, 0x0, 0x0, 0x0, 0x0) pkg/tcpip/network/ipv4/ipv4.go:970 +0x77 fp=0xc087601838 sp=0xc087600320 pc=0xbcb637 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).HandlePacket(0xc00043ae00, 0xc006f83000) pkg/tcpip/network/ipv4/ipv4.go:943 +0x16c fp=0xc087601aa0 sp=0xc087601838 pc=0xbcaf2c gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0xc00047e3c0, 0x0, 0x0, 0x0, 0x0, 0xc000000800, 0xc006f83000) pkg/tcpip/stack/nic.go:928 +0x31f fp=0xc087601b30 sp=0xc087601aa0 pc=0x9b2c3f gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).DeliverNetworkPacket(0xc0006304d0, 0x0, 0x0, 0x0, 0x0, 0xc000000800, 0xc006f83000) pkg/tcpip/link/nested/nested.go:63 +0x104 fp=0xc087601b90 sp=0xc087601b30 pc=0xc68224 gvisor.dev/gvisor/pkg/tcpip/link/sniffer.(*endpoint).DeliverNetworkPacket(0xc0006304d0, 0x0, 0x0, 0x0, 0x0, 0x800, 0xc006f83000) pkg/tcpip/link/sniffer/sniffer.go:156 +0x9e fp=0xc087601bd8 sp=0xc087601b90 pc=0xc6903e gvisor.dev/gvisor/pkg/tcpip/link/loopback.(*endpoint).WritePacket(0xc000670040, 0xc006fa6b9c, 0x4, 0xc006fa6b9c, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/loopback/loopback.go:98 +0xfd fp=0xc087601c30 sp=0xc087601bd8 pc=0xf02bdd gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).WritePacket(...) pkg/tcpip/link/nested/nested.go:132 gvisor.dev/gvisor/pkg/tcpip/link/sniffer.(*endpoint).WritePacket(0xc0006304d0, 0xc006fa6b9c, 0x4, 0xc006fa6b9c, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/sniffer/sniffer.go:225 +0x113 fp=0xc087601d18 sp=0xc087601c30 pc=0xc69573 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacket(0xc00047e3c0, 0xc006fa6b9c, 0x4, 0xc006fa6b9c, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/stack/nic.go:439 +0x11e fp=0xc087601db0 sp=0xc087601d18 pc=0x9b07fe gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacketBuffer(0xc00047e3c0, 0xc006fa6b9c, 0x4, 0xc006fa6b9c, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/stack/nic.go:375 +0xd0 fp=0xc087601e60 sp=0xc087601db0 pc=0x9b0150 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).enqueuePacketBuffer(0xc00047e3c0, 0xc004cf6960, 0x800, 0x14f0ca0, 0xc006f82f00, 0xc006ffa85c, 0x8, 0x8) pkg/tcpip/stack/nic.go:396 +0x1e8 fp=0xc087601f58 sp=0xc087601e60 pc=0x9b0548 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).WritePacket(0xc00047e3c0, 0xc004cf6960, 0xc000000800, 0xc006f82f00, 0x1c, 0x0) pkg/tcpip/stack/nic.go:366 +0x5d fp=0xc087601fa8 sp=0xc087601f58 pc=0x9b003d gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacket(0xc00043ae00, 0xc004cf6960, 0xc006f82f00, 0xc004cf6900, 0x0, 0x0) pkg/tcpip/network/ipv4/ipv4.go:537 +0x4d1 fp=0xc0876021d0 sp=0xc087601fa8 pc=0xbc8b51 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).WritePacket(0xc00043ae00, 0xc004cf6960, 0x4000000011, 0xc006f82f00, 0xc000000800, 0xc00053c918) pkg/tcpip/network/ipv4/ipv4.go:472 +0x1b7 fp=0xc087602240 sp=0xc0876021d0 pc=0xbc84f7 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc004cf6960, 0x4000000011, 0xc006f82f00, 0xc0023642d8, 0x8) pkg/tcpip/stack/route.go:569 +0xd4 fp=0xc087602280 sp=0xc087602240 pc=0x9bb894 gvisor.dev/gvisor/pkg/tcpip/transport/udp.sendUDP(0xc004cf6960, 0x0, 0x0, 0x0, 0x0, 0x1004e2385b5, 0x14fbf20, 0xc007510a80, 0x0, 0x0, ...) pkg/tcpip/transport/udp/endpoint.go:1054 +0x40d fp=0xc087603540 sp=0xc087602280 pc=0xbb052d gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).write(0xc00753a000, 0x1503120, 0xc007241360, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/tcpip/transport/udp/endpoint.go:698 +0x765 fp=0xc0876036c0 sp=0xc087603540 pc=0xbae445 gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).Write(0xc00753a000, 0x1503120, 0xc007241360, 0x0, 0x0, 0x20004d80, 0x20004db8, 0x1) pkg/tcpip/transport/udp/endpoint.go:503 +0x72 fp=0xc087603710 sp=0xc0876036c0 pc=0xbada12 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*socketOpsCommon).SendMsg(0xc0067bf0b0, 0xc007276000, 0x151d220, 0xc007394000, 0x0, 0x0, 0x0, 0x0, 0x100, 0x0, ...) pkg/sentry/socket/netstack/netstack.go:3636 +0x249 fp=0xc087603880 sp=0xc087603710 pc=0xc0aca9 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.sendSingleMsg(0xc007276000, 0x3ff3ecb522d8, 0xc0067bf040, 0xc0067bf040, 0x20004d80, 0x0, 0x587869, 0x3ff41de07000, 0xc0007b9490) pkg/sentry/syscalls/linux/vfs2/socket.go:1377 +0x45e fp=0xc087603ac0 sp=0xc087603880 pc=0xede0de gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.SendMMsg(0xc007276000, 0x3, 0x20004d80, 0x400000000000065, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/socket.go:1269 +0x394 fp=0xc087603b90 sp=0xc087603ac0 pc=0xedd7f4 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc007276000, 0x133, 0x3, 0x20004d80, 0x400000000000065, 0x0, 0x0, 0x0, 0xf1e1c5, 0x136d1e0, ...) pkg/sentry/kernel/task_syscall.go:114 +0x1b9 fp=0xc087603c50 sp=0xc087603b90 pc=0xa71459 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc007276000, 0x133, 0x3, 0x20004d80, 0x400000000000065, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:289 +0x70 fp=0xc087603cd8 sp=0xc087603c50 pc=0xa72710 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc007276000, 0x133, 0x3, 0x20004d80, 0x400000000000065, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:236 +0xb4 fp=0xc087603d38 sp=0xc087603cd8 pc=0xa72214 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc007276000, 0x2, 0xc007276000) pkg/sentry/kernel/task_syscall.go:203 +0x198 fp=0xc087603e08 sp=0xc087603d38 pc=0xa71af8 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc007276000, 0x14efb20, 0x0) pkg/sentry/kernel/task_run.go:327 +0xd95 fp=0xc087603f60 sp=0xc087603e08 pc=0xa64535 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc007276000, 0x904) pkg/sentry/kernel/task_run.go:100 +0x1e2 fp=0xc087603fd0 sp=0xc087603f60 pc=0xa63042 runtime.goexit() src/runtime/asm_amd64.s:1374 +0x1 fp=0xc087603fd8 sp=0xc087603fd0 pc=0x4709a1 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:381 +0x116