Skip to content
Commit 8d037f92 authored by David S. Miller's avatar David S. Miller
Browse files

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: default avatarDavid S. Miller <davem@davemloft.net>
parents 4970b42d b9aa52c4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment