OSDN Git Service

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)
committerJakub Kicinski <kuba@kernel.org>
Tue, 29 Nov 2022 16:30:18 +0000 (08:30 -0800)
commitb85f628aa158a653c006e9c1405a117baef8c868
treeb6dd965eb193f783e7647875779dd4ea0ff4b7ca
parent0e682f04b4b59eac0b0a030251513589c4607458
packet: do not set TP_STATUS_CSUM_VALID on CHECKSUM_COMPLETE

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>
net/packet/af_packet.c