]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: fix segmentation after TCP/UDP fraglist GRO
authorFelix Fietkau <nbd@nbd.name>
Sat, 5 Jul 2025 15:06:21 +0000 (17:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jul 2025 06:58:38 +0000 (08:58 +0200)
commit51d9fd5248008e8c393ae38681cdee7c0cef6692
tree37d82bbdfff8352f854eb35c58f8c80d3553ea2e
parent5f18e0130194550dff734e155029ae734378b5ea
net: fix segmentation after TCP/UDP fraglist GRO

[ Upstream commit 9f735b6f8a77d7be7f8b0765dc93587774832cb1 ]

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: 186b1ea73ad8 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv4/tcp_offload.c
net/ipv4/udp_offload.c