]> git.baikalelectronics.ru Git - kernel.git/commit
packet: do not set TP_STATUS_CSUM_VALID on CHECKSUM_COMPLETE
authorWillem de Bruijn <willemb@google.com>
Mon, 28 Nov 2022 16:18:12 +0000 (11:18 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Dec 2022 10:23:03 +0000 (11:23 +0100)
commit00a70819eb451b5b3ec8db8ee95f87094eea56ef
tree790f896541aa188d4c2621281c0660ee38a7e884
parentd0d105c9c3c8a1186c578c2414553641d4739a6f
packet: do not set TP_STATUS_CSUM_VALID on CHECKSUM_COMPLETE

[ Upstream commit 3c2310abe84ecd85f35faf84842441bb8734420d ]

CHECKSUM_COMPLETE signals that skb->csum stores the sum over the
entire packet. It does not imply that an embedded l4 checksum
field has been validated.

Fixes: 3b0113ecca32 ("af_packet: pass checksum validation status to the user")
Signed-off-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/20221128161812.640098-1-willemdebruijn.kernel@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/packet/af_packet.c