linux/net/ipv4
Felix Fietkau 9f735b6f8a net: fix segmentation after TCP/UDP fraglist GRO
Since "net: gro: use cb instead of skb->network_header", the skb network
header is no longer set in the GRO path.
This breaks fraglist segmentation, which relies on ip_hdr()/tcp_hdr()
to check for address/port changes.
Fix this regression by selectively setting the network header for merged
segment skbs.

Fixes: 186b1ea73a ("net: gro: use cb instead of skb->network_header")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20250705150622.10699-1-nbd@nbd.name
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2025-07-17 10:01:02 +02:00
..
netfilter netfilter: nf_dup{4, 6}: Move duplication check to task_struct 2025-05-23 13:57:12 +02:00
Kconfig net: Retire DCCP socket. 2025-04-11 18:58:10 -07:00
Makefile
af_inet.c net: Retire DCCP socket. 2025-04-11 18:58:10 -07:00
ah4.c
arp.c
bpf_tcp_ca.c
cipso_ipv4.c
datagram.c
devinet.c ipv4: Use nlmsg_payload in devinet file 2025-04-16 18:33:02 -07:00
esp4.c espintcp: remove encap socket caching to avoid reference leak 2025-04-14 11:59:17 +02:00
esp4_offload.c
fib_frontend.c inet: Remove rtnl_is_held arg of lwtunnel_valid_encap_type(_attr)?(). 2025-05-20 19:18:24 -07:00
fib_lookup.h
fib_notifier.c
fib_rules.c
fib_semantics.c ipv6: Revert two per-cpu var allocation for RTM_NEWROUTE. 2025-05-20 19:18:24 -07:00
fib_trie.c
fou_bpf.c
fou_core.c
fou_nl.c
fou_nl.h
gre_demux.c net: ip_gre: Fix spelling mistake "demultiplexor" -> "demultiplexer" 2025-04-24 18:20:40 -07:00
gre_offload.c
icmp.c
igmp.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
igmp_internal.h
inet_connection_sock.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
inet_diag.c net: cgroup: Guard users of sock_cgroup_classid() 2025-04-24 16:04:02 +02:00
inet_fragment.c treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
inet_hashtables.c net: rfs: add sock_rps_delete_flow() helper 2025-05-16 16:03:48 -07:00
inet_timewait_sock.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
inetpeer.c
ip_forward.c
ip_fragment.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
ip_gre.c ipv4: ip_tunnel: Convert ip_tunnel_delete_nets() callers to ->exit_rtnl(). 2025-04-14 17:08:42 -07:00
ip_input.c net: ipv4: fix stat increase when udp early demux drops the packet 2025-07-02 14:46:44 -07:00
ip_options.c
ip_output.c net: devmem: Implement TX path 2025-05-13 11:12:48 +02:00
ip_sockglue.c
ip_tunnel.c ipv4: ip_tunnel: Replace strcpy use with strscpy 2025-05-05 18:16:11 -07:00
ip_tunnel_core.c net: fix geneve_opt length integer overflow 2025-04-03 15:47:35 -07:00
ip_vti.c ipv4: ip_tunnel: Convert ip_tunnel_delete_nets() callers to ->exit_rtnl(). 2025-04-14 17:08:42 -07:00
ipcomp.c
ipconfig.c
ipip.c ipv4: ip_tunnel: Convert ip_tunnel_delete_nets() callers to ->exit_rtnl(). 2025-04-14 17:08:42 -07:00
ipmr.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
ipmr_base.c
metrics.c
netfilter.c
netlink.c
nexthop.c inet: Remove rtnl_is_held arg of lwtunnel_valid_encap_type(_attr)?(). 2025-05-20 19:18:24 -07:00
ping.c
proc.c tcp: add LINUX_MIB_PAWS_TW_REJECTED counter 2025-04-10 18:29:26 -07:00
protocol.c
raw.c
raw_diag.c
route.c ipv4/route: Use this_cpu_inc() for stats on PREEMPT_RT 2025-05-15 15:23:30 +02:00
syncookies.c
sysctl_net_ipv4.c
tcp.c tcp: Correct signedness in skb remaining space calculation 2025-07-08 07:56:26 -07:00
tcp_ao.c
tcp_bbr.c
tcp_bic.c
tcp_bpf.c
tcp_cdg.c
tcp_cong.c
tcp_cubic.c
tcp_dctcp.c
tcp_dctcp.h
tcp_diag.c
tcp_fastopen.c tcp: fix passive TFO socket having invalid NAPI ID 2025-06-18 18:30:51 -07:00
tcp_highspeed.c
tcp_htcp.c
tcp_hybla.c
tcp_illinois.c
tcp_input.c tcp: refine sk_rcvbuf increase for ooo packets 2025-07-09 19:24:10 -07:00
tcp_ipv4.c tcp: increase tcp_limit_output_bytes default value to 4MB 2025-05-15 11:30:09 -07:00
tcp_lp.c
tcp_metrics.c
tcp_minisocks.c tcp: add LINUX_MIB_PAWS_TW_REJECTED counter 2025-04-10 18:29:26 -07:00
tcp_nv.c
tcp_offload.c net: fix segmentation after TCP/UDP fraglist GRO 2025-07-17 10:01:02 +02:00
tcp_output.c tcp: always use tcp_limit_output_bytes limitation 2025-05-15 11:30:09 -07:00
tcp_plb.c
tcp_rate.c
tcp_recovery.c
tcp_scalable.c
tcp_sigpool.c
tcp_timer.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
tcp_ulp.c
tcp_vegas.c
tcp_vegas.h
tcp_veno.c
tcp_westwood.c
tcp_yeah.c
tunnel4.c
udp.c net: rfs: add sock_rps_delete_flow() helper 2025-05-16 16:03:48 -07:00
udp_bpf.c
udp_diag.c
udp_impl.h
udp_offload.c net: fix segmentation after TCP/UDP fraglist GRO 2025-07-17 10:01:02 +02:00
udp_tunnel_core.c udp: properly deal with xfrm encap and ADDRFORM 2025-04-14 14:29:01 -07:00
udp_tunnel_nic.c
udp_tunnel_stub.c
udplite.c
xfrm4_input.c xfrm: Fix UDP GRO handling for some corner cases 2025-04-17 11:08:16 +02:00
xfrm4_output.c
xfrm4_policy.c
xfrm4_protocol.c
xfrm4_state.c
xfrm4_tunnel.c