]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: add defensive check for CHECKSUM_PARTIAL skbs in ip_fragment
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Tue, 27 Oct 2015 21:40:42 +0000 (22:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Nov 2015 17:01:28 +0000 (12:01 -0500)
commit780a7650da9a89b7dc35cbe656be9ccf214eb863
treef8bdf8d76e562a59e793c6959d37ede634cd0a68
parent6b9dc5203e97185625140d75f746ff07a4a846a4
ipv6: add defensive check for CHECKSUM_PARTIAL skbs in ip_fragment

CHECKSUM_PARTIAL skbs should never arrive in ip_fragment. If we get one
of those warn about them once and handle them gracefully by recalculating
the checksum.

Fixes: commit cd4c386bbc7b7 ("ipv6: Allow for partial checksums on non-ufo packets")
See-also: commit ac1fa49961781 ("ipv6: ip6_fragment() should check CHECKSUM_PARTIAL")
Cc: Eric Dumazet <edumazet@google.com>
Cc: Vlad Yasevich <vyasevich@gmail.com>
Cc: Benjamin Coddington <bcodding@redhat.com>
Cc: Tom Herbert <tom@herbertland.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_output.c