[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20141209132841.GL6390@secunet.com>
Date: Tue, 9 Dec 2014 14:28:41 +0100
From: Steffen Klassert <steffen.klassert@...unet.com>
To: Alexander Wetzel <alexander.wetzel@....de>
CC: <netdev@...r.kernel.org>, <roque@...fc.ul.p>,
<kuznet@....inr.ac.ru>, <r.venning@...stra.com>, <nate@...bog.net>
Subject: Re: ipip6 - integer underrun when handlince icmpv4 unreachable
messages
On Thu, Dec 04, 2014 at 05:22:52PM +0100, Alexander Wetzel wrote:
> Hello,
>
> The patch works for me, thank you very much.
>
> Rejecting the ipv4 tunel packets with icmp unreachable is producing the
> expected "Destination unreachable: Address unreachable" messages for the
> inside ipv6 client and everything works as expected. Without the call in
> sit.c to skb_reset_transport_header.
>
> I'll continue to use the patch on my ipv6 tunnel router but I'm sure it
> works as intended.
>
>
> On 04.12.2014 09:56, Steffen Klassert wrote:
> >
> > I think the easiest is to fix it in _decode_session6().
> > Could you please try the patch below?
> >
> > Subject: [PATCH] xfrm6: Fix transport header offset in _decode_session6.
> >
> > skb->transport_header might not be valid when we do a reverse
> > decode because the ipv6 tunnel error handlers don't update it
> > to the inner transport header. This leads to a wrong offset
> > calculation and to wrong layer 4 informations. We fix this
> > by using the size of the ipv6 header as the first offset.
> >
> > Signed-off-by: Steffen Klassert <steffen.klassert@...unet.com>
Thanks for testing, I've applied this to the ipsec tree now.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists