]> git.ipfire.org Git - thirdparty/kernel/stable.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:57 +0000 (11:23 +0100)
commit1c38c88acc9688e9e379c26fb64bdfbb853618d1
tree95f3eb21793291025121937e6436c03db022977e
parent5f442e1d403e0496bacb74a58e2be7f500695e6f
packet: do not set TP_STATUS_CSUM_VALID on CHECKSUM_COMPLETE

[ Upstream commit b85f628aa158a653c006e9c1405a117baef8c868 ]

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: 682f048bd494 ("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