Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1677679 > unrolled thread

Re: [PATCH 4.4 09/46] ipv6: Inhibit IPv4-mapped src address on the wire.

Started byBen Hutchings <ben.hutchings@codethink.co.uk>
First post2017-06-29 14:20 +0200
Last post2017-06-29 14:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 4.4 09/46] ipv6: Inhibit IPv4-mapped src address on the  wire. Ben Hutchings <ben.hutchings@codethink.co.uk> - 2017-06-29 14:20 +0200
    Re: [PATCH 4.4 09/46] ipv6: Inhibit IPv4-mapped src address on the  wire. Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-06-29 14:40 +0200

#1677679 — Re: [PATCH 4.4 09/46] ipv6: Inhibit IPv4-mapped src address on the wire.

FromBen Hutchings <ben.hutchings@codethink.co.uk>
Date2017-06-29 14:20 +0200
SubjectRe: [PATCH 4.4 09/46] ipv6: Inhibit IPv4-mapped src address on the wire.
Message-ID<tXGAr-7t8-31@gated-at.bofh.it>
On Thu, 2017-06-15 at 19:52 +0200, Greg Kroah-Hartman wrote:
> 4.4-stable review patch.  If anyone has any objections, please let me know.
> 
> ------------------
> 
> From: "Jonathan T. Leighton" <jtleight@udel.edu>
> 
> 
> [ 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.

I think this needs to be followed by:

commit 00ea1ceebe0d9f2dc1cc2b7bd575a00100c27869
Author: Willem de Bruijn <willemb@google.com>
Date:   Sat Feb 18 19:00:45 2017 -0500

    ipv6: release dst on error in ip6_dst_lookup_tail

Ben.

> 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 |    3 +++
>  1 file changed, 3 insertions(+)
> 
> --- a/net/ipv6/ip6_output.c
> +++ b/net/ipv6/ip6_output.c
> @@ -1004,6 +1004,9 @@ static int ip6_dst_lookup_tail(struct ne
>  		}
>  	}
>  #endif
> +	if (ipv6_addr_v4mapped(&fl6->saddr) &&
> +	    !(ipv6_addr_v4mapped(&fl6->daddr) || ipv6_addr_any(&fl6->daddr)))
> +		return -EAFNOSUPPORT;
>  
>  	return 0;
>  
> 
> 
> 

-- 
Ben Hutchings
Software Developer, Codethink Ltd.

[toc] | [next] | [standalone]


#1677708

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2017-06-29 14:40 +0200
Message-ID<tXGTN-7BQ-33@gated-at.bofh.it>
In reply to#1677679
On Thu, Jun 29, 2017 at 01:13:35PM +0100, Ben Hutchings wrote:
> On Thu, 2017-06-15 at 19:52 +0200, Greg Kroah-Hartman wrote:
> > 4.4-stable review patch.  If anyone has any objections, please let me know.
> > 
> > ------------------
> > 
> > From: "Jonathan T. Leighton" <jtleight@udel.edu>
> > 
> > 
> > [ 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.
> 
> I think this needs to be followed by:
> 
> commit 00ea1ceebe0d9f2dc1cc2b7bd575a00100c27869
> Author: Willem de Bruijn <willemb@google.com>
> Date:   Sat Feb 18 19:00:45 2017 -0500
> 
>     ipv6: release dst on error in ip6_dst_lookup_tail
> 
> Ben.

Ah, nice catch.  Same thing goes for 4.9-stable, I'll go queue these up
there, thanks!

greg k-h

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web