ipv6: Inhibit IPv4-mapped src address on the wire.
authorJonathan T. Leighton <jtleight@udel.edu>
Wed, 24 May 2017 01:53:34 +0000 (21:53 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jun 2017 04:39:35 +0000 (06:39 +0200)
commit23287661af3e2fd5a6a5a7bbe2b8f066203456e0
treeb67bb43caa1f175a68a8d205bc0dae400242a368
parent8faccb2b944215e1ecb86989f22113db267397c5
ipv6: Inhibit IPv4-mapped src address on the wire.

[ Upstream commit ec5e3b0a1d41fbda0cc33a45bc9e54e91d9d12c7 ]

This patch adds a check for the problematic case of an IPv4-mapped IPv6
source address and a destination address that is neither an IPv4-mapped
IPv6 address nor in6addr_any, and returns an appropriate error. The
check in done before returning from looking up the route.

Signed-off-by: Jonathan T. Leighton <jtleight@udel.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/ip6_output.c