]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'ipv6-fix-EFAULT-on-sendto-with-icmpv6-and-hdrincl'
authorDavid S. Miller <davem@davemloft.net>
Thu, 6 Jun 2019 17:29:21 +0000 (10:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Jun 2019 17:29:21 +0000 (10:29 -0700)
commit6bdb7754d145f878ab65b78248c6366fedd62f31
tree2dbe76f0f5c136bcb3c378d5e5c0a98dacdac774
parent7a447d97ea1c739091a93c6241bc1c306cc87829
parentcb3dbb90feb43e27a0b73fe165911e52d8d3a7df
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 <davem@davemloft.net>