linux-yocto/net/core
Jakub Kicinski 0804d77fd6 net: selftests: fix TCP packet checksum
[ Upstream commit 8d89661a36 ]

The length in the pseudo header should be the length of the L3 payload
AKA the L4 header+payload. The selftest code builds the packet from
the lower layers up, so all the headers are pushed already when it
constructs L4. We need to subtract the lower layer headers from skb->len.

Fixes: 3e1e58d64c ("net: add generic selftest support")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Gerhard Engleder <gerhard@engleder-embedded.com>
Reported-by: Oleksij Rempel <o.rempel@pengutronix.de>
Tested-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://patch.msgid.link/20250624183258.3377740-1-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-07-06 11:00:12 +02:00
..
bpf_sk_storage.c
datagram.c
dev_addr_lists_test.c
dev_addr_lists.c
dev_ioctl.c
dev.c net: Rename mono_delivery_time to tstamp_type for scalabilty 2025-05-09 09:43:57 +02:00
dev.h
drop_monitor.c drop_monitor: fix incorrect initialization order 2025-02-27 04:10:51 -08:00
dst_cache.c ipv6: introduce dst_rt6_info() helper 2024-12-14 19:59:35 +01:00
dst.c net: decrease cached dst counters in dst_release 2025-04-10 14:37:40 +02:00
failover.c
fib_notifier.c
fib_rules.c
filter.c bpf: Fix L4 csum update on IPv6 in CHECKSUM_COMPLETE 2025-06-27 11:09:00 +01:00
flow_dissector.c flow_dissector: Fix port range key handling in BPF conversion 2025-02-27 04:10:49 -08:00
flow_offload.c
gen_estimator.c net: use unrcu_pointer() helper 2024-12-09 10:32:10 +01:00
gen_stats.c
gro_cells.c
gro.c net: Clear old fragment checksum value in napi_reuse_skb 2025-03-07 16:45:41 +01:00
gso.c
hwbm.c
link_watch.c ipvlan: Fix use-after-free in ipvlan_get_iflink(). 2025-01-17 13:36:13 +01:00
lwt_bpf.c
lwtunnel.c net: lwtunnel: disable BHs when required 2025-05-02 07:50:43 +02:00
Makefile
neighbour.c net/neighbor: add missing policy for NDTPA_QUEUE_LENBYTES 2025-03-28 21:59:53 +01:00
net_namespace.c net: add exit_batch_rtnl() method 2025-01-23 17:21:10 +01:00
net-procfs.c
net-sysfs.c
net-sysfs.h
net-traces.c
netclassid_cgroup.c
netdev-genl-gen.c
netdev-genl-gen.h
netdev-genl.c
netevent.c
netpoll.c netpoll: hold rcu read lock in __netpoll_send_skb() 2025-03-22 12:50:38 -07:00
netprio_cgroup.c
of_net.c
page_pool.c page_pool: avoid infinite loop to schedule delayed worker 2025-04-25 10:45:14 +02:00
pktgen.c net: pktgen: fix access outside of user given buffer in pktgen_thread_write() 2025-06-04 14:42:07 +02:00
ptp_classifier.c
request_sock.c
rtnetlink.c rtnetlink: Allocate vfinfo size for VF GUIDs when supported 2025-04-10 14:37:35 +02:00
scm.c af_unix: Add dead flag to struct scm_fp_list. 2025-06-04 14:42:24 +02:00
secure_seq.c
selftests.c net: selftests: fix TCP packet checksum 2025-07-06 11:00:12 +02:00
skbuff.c ipvs: Always clear ipvs_property flag in skb_scrub_packet() 2025-03-07 16:45:40 +01:00
skmsg.c bpf, sockmap: Fix data lost during EAGAIN retries 2025-06-27 11:08:56 +01:00
sock_destructor.h
sock_diag.c net: use unrcu_pointer() helper 2024-12-09 10:32:10 +01:00
sock_map.c bpf: Disable non stream socket for strparser 2025-02-27 04:10:50 -08:00
sock_reuseport.c
sock.c sock: Correct error checking condition for (assign|release)_proto_idx() 2025-06-27 11:08:56 +01:00
stream.c
sysctl_net_core.c net: set the minimum for net_hotdata.netdev_budget_usecs 2025-03-07 16:45:38 +01:00
timestamping.c
tso.c
utils.c net: Fix checksum update for ILA adj-transport 2025-06-27 11:09:00 +01:00
xdp.c