🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #8918

[PATCH net v2 0/2] net: gro: fix frag0 and remcsum handling

#8918
From: Eric Dumazet
Date: Fri, 30 Oct 2026 12:59
36 lines
8821 bytes
Two GRO fixes for paths using remote checksum offload (VXLAN, GUE)
and for NAPI_GRO_CB(skb)->frag0 after a pull.

Patch 1 skips skb_gro_remcsum_cleanup() once the skb was merged,
as grc->offset can no longer be trusted.

Patch 2 invalidates frag0 before a pull, which commit bd56a29c7a4e
("net: gro: change skb_gro_network_header()") stopped doing.

v2:
- Patch 1: reword the comment and changelog: skb->data is not always
  moved (frag/head steal), and fraglist members keep their adjusted
  inner checksum, which is the intended value (Sashiko).
- Patch 2: invalidate frag0 before the pull, as __pskb_pull_tail()
  can fail after pskb_expand_head() freed the old head (Sashiko).
- Patch 2: add a Fixes: tag for UDP fraglist GRO, which pulls
  directly since before bd56a29c7a4e (Sashiko).
- CC Tom Herbert and stable.

v1: https://lore.kernel.org/netdev/20261028141325.2103814-1-edumazet@kernel.org/


Eric Dumazet (2):
  net: gro: do not undo remote checksum offload on merged packets
  net: gro: invalidate frag0 after a pull

 include/net/gro.h       | 18 +++++++++++++++++-
 net/core/gro.c          |  1 +
 net/ipv4/esp4_offload.c |  1 +
 net/ipv4/udp_offload.c  |  1 +
 net/ipv6/esp6_offload.c |  1 +
 5 files changed, 21 insertions(+), 1 deletion(-)

-- 
2.53.0
Technical Details
Message-ID: <20261030125955.3107383-1-edumazet@kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353774-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353774-linux-kernel-netdev=dewy.ru
From: edumazet@kernel.org (Eric Dumazet)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net v2 0/2] net: gro: fix frag0 and remcsum handling
Date: Fri, 30 Oct 2026 13:59:53 +0100
Organization: Usenet Network
Message-ID: <20261030125955.3107383-1-edumazet@kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2241365"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:ET+dxHCgFxAL+NRJUu+DksDvNxk= sha256:Rz76XPfliKdtfRvD1DBTcFpAUfA2EQm54zwdWDksut8=
	sha1:70eLInuNNBlu3UaNe4iKtJyFLeo= sha256:J1TG4tiBcbZOxXOBQRqxOFaIdNLH2vutk58SQAOTYzQ=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 96CB2125C94; Fri, 30 Oct 2026 16:14:19 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id TlZgxbm_Wryh;
	Fri, 30 Oct 2026 16:14:16 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-353774-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id E0D95125C93; Fri, 30 Oct 2026 16:14:06 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 4CFCF2B3C6; Fri, 30 Oct 2026 13:00:11 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793365201;
	b=TgXFT5Ka+j0OaWffZG7aeFZCvwZzoRhzmS/DpjUEkgcGlNWaTTcU6zM38GRPQFxxWRvl
	 xB3mSd19ZHwfmHCLbVD9c18N/h1Y693HMsfYGl2rMTdC7tYD6t/3ND8kmlz3lK43hLJhO
	 k79ZeTGtftNLwVHpV+Hz3TXRhrlH22TDG2oewnEvi3qlzkwvQ3v854uxrOewVFBqRGbeo
	 ML5r31pWW7oyrGTBEaJdEdKTnRWowSjGqjBR8Jc55ches9Gp8fYNTmFaspE8hb/lhMf16
	 f1CRUotHZuHWXeNwyD7+xMT7SnZV6nCLR6cgi6WXLt4CQe1eJ9THNBjEf1sIrL5vhIg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793365201;
	h=X-Original-To:Received:Received:DKIM-Signature:From:To:Cc:Subject:
	 Date:Message-ID:X-Mailer:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding;
	bh=DrBSL3cT87nM+7vHR4EJhPvwogGgO7ZMjQbpZfJyISE=;
	b=DNqlT3IontbMifIgEUHe7IKsp1JakAEmGgWc11Ixk5inKYHt1p8r/gl8VEfIRxWtRwVg
	 hmI0cAvUfl8tGyTEXjAbSY81Xo+1eUotQ4JPLtHkU1FY3WDE/0MKh4IKW/pSG7hiEMNFa
	 czg9q22q5e2XH/SoqguX8Q50yl44dZIYP/T8waGkYc47q/fMZkfDkxYfP2y4snCZp0CaU
	 oc013oazsACK9+0TPEdRwnlvaV8f5HstsWoZJMwYUIOhGSj5pkcoKA9pS6PYF/l8QrHbq
	 1+jWY/MMgUU37K7kyMAPqdV20wC1QxjO4I9a6LXmr5LLj1IJfWqI9nXJbT7jbxtD7RQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BhN09Uha;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 80DDC606A33E;
	Fri, 30 Oct 2026 13:00:01 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BhN09Uha
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793365200;
	b=uZBCn18oIbqdqCey+dg157QhlW1lxLTWuWALYh+5qkJGs/On2kQPKDpHK7hy6te3lQqn
	 7XvKf7NNv/01UuDV822A8iDoGzzX0PabH8tJaIn84ZOMgaqNaehj+5gdTUDm0PlXJ5JC3
	 Fq/t3Ec52UbcK8O5UnZRIAL8NIbwFHZi4Mtd0nHOzElV5s6wZ0as44zP9wbbcMK511tNM
	 aovBnZDDERgw8PgQnLdqV+Vg70lQA+jaPhnMZaSpEHa41BcMhz8zXr6v+cj0OxAbJOpTt
	 X+51rWspJkylg47figgmNfq3qZFwiQlMuUBmsqrx3u0XN6vYhurheuJEa9B38Fw03ow==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793365200;
	h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer:
	 MIME-Version:Content-Transfer-Encoding;
	bh=DrBSL3cT87nM+7vHR4EJhPvwogGgO7ZMjQbpZfJyISE=;
	b=baNHKj2QOtcCP89Ul0xLUGbXt3dgLjwZyiojQK+Q9i4c6rH9+5bFxLi1xWcA3fyjUd2X
	 f6brfxRXMQp5lxlLD7KIQhdSnln5dvyYslJRJB5mZSyCgg7idR7BtCoEkmWFaZegAC74m
	 HRATWMdtEU/zmQR6fb0NYUYLdoyNn927CdYcj9Y/A1L22cx9fnVpRSS+M1H/nCsn8IjPm
	 nGqD5qYQTlukK7FBPe6PcjHvmTwbNMuhSq+NuFCPrhbqD+DmizLBGLxfo25ID3uqiqZEE
	 m/Ag8tZRamyadu3WdAzzNNIogcuYvUEkjr1+R/0mzZgHRvPQRjpOYClWk2vXSj9wzSA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BhN09Uha;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 662B7606A327
	for <netdev@vger.kernel.org>; Fri, 30 Oct 2026 13:00:00 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFDC11F0093A;
	Fri, 30 Oct 2026 12:59:57 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793365200;
	bh=DrBSL3cT87nM+7vHR4EJhPvwogGgO7ZMjQbpZfJyISE=;
	h=From:To:Cc:Subject:Date;
	b=BhN09UhalceOozBMbkmw+Tqm9t83M68b/bxAslNnveI8yyVX46RDgldRFXtD/CwTy
	 2PYRX3ADbedkWdqvyCvLAkbHTuoIpg6Bcb8NBP0MQyNN6IWCKNe2F95FgjidQlYV+S
	 eipmMsjPfXoGHV/LBtxurqIgi95RCjvTinG4/oqhDVSB4aCryhlo8hvru6vyDCxKRS
	 W1AGig+A0EG/D9vr9FwsE8SbaUGmHQ6GyYIqyhYHDHucrjNw0VNT2FJ1t6R2mtQGbj
	 WiRrilwofnWM6ZVLTikRu6qK25hm8rNZDBJI4bF+sGyX8d0sQzkh+vP1W8VALeKJfS
	 2vBuTX5VT/nfw==
X-Cc: Simon Horman <horms@kernel.org>,
	netdev@vger.kernel.org,
	edumazet@kernel.org,
	Willem de Bruijn <willemb@google.com>,
	Steffen Klassert <steffen.klassert@secunet.com>,
	Tom Herbert <tom@herbertland.com>,
	Cen Zhang <cenzhang@linux.microsoft.com>,
	AutonomousCodeSecurity@microsoft.com
X-Mailer: git-send-email 2.53.0
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list