[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1431653055.27831.84.camel@edumazet-glaptop2.roam.corp.google.com>
Date: Thu, 14 May 2015 18:24:15 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Vladislav Yasevich <vyasevich@...il.com>
Cc: netdev@...r.kernel.org, Vladislav Yasevich <vyasevic@...hat.com>,
Wolfgang Walter <linux@...m.de>
Subject: Re: [PATCH] ipv6: Fix udp checksums with raw sockets
On Thu, 2015-05-14 at 20:34 -0400, Vladislav Yasevich wrote:
> It was reported that trancerout6 would cause
> a kernel to crash when trying to compute checksums
> on raw UDP packets. The cause was the check in
> __ip6_append_data that would attempt to use
> partial checksums on the packet. However,
> raw sockets do not initialize partial checksum
> fields so partial checksums can't be used.
>
> Solve this the same way IPv4 does it. raw sockets
> pass transhdrlen value of 0 to ip_append_data which
> causes the checksum to be computed in software. Use
> the same check in ip6_append_data (check transhdrlen).
>
> Reported-by: Wolfgang Walter <linux@...m.de>
> CC: Wolfgang Walter <linux@...m.de>
> CC: Eric Dumazet <eric.dumazet@...il.com>
> Signed-off-by: Vladislav Yasevich <vyasevic@...hat.com>
> ---
Acked-by: Eric Dumazet <edumazet@...gle.com>
--
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