From: David S. Miller Date: Thu, 6 Jun 2019 17:29:21 +0000 (-0700) Subject: Merge branch 'ipv6-fix-EFAULT-on-sendto-with-icmpv6-and-hdrincl' X-Git-Tag: v5.4-rc1~836^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d037f92de5f34b44312c4df6c115c6df92d7085;p=platform%2Fkernel%2Flinux-rpi.git Merge branch 'ipv6-fix-EFAULT-on-sendto-with-icmpv6-and-hdrincl' Olivier Matz says: ==================== ipv6: fix EFAULT on sendto with icmpv6 and hdrincl The following code returns EFAULT (Bad address): s = socket(AF_INET6, SOCK_RAW, IPPROTO_ICMPV6); setsockopt(s, SOL_IPV6, IPV6_HDRINCL, 1); sendto(ipv6_icmp6_packet, addr); /* returns -1, errno = EFAULT */ The problem is fixed in the second patch. The first one aligns the code to ipv4, to avoid a race condition in the second patch. ==================== Signed-off-by: David S. Miller --- 8d037f92de5f34b44312c4df6c115c6df92d7085