]> 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)
commit271183da67801bf65e33f529127d2ac5539e8c57
treef8bdf8d76e562a59e793c6959d37ede634cd0a68
parent7e73b8f0e04ee1361c0d340c7842d18bed073f5b
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 a491bc6c2df26 ("ipv6: Allow for partial checksums on non-ufo packets")
See-also: commit e75e348acd1ec ("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