🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #18225

Re: [PATCH net] net: gianfar: clear the pending Rx skb when freeing the Rx ring

#18225
From: patchwork-bot+netdevbpf
Date: Wed, 18 Nov 2026 01:40
28 lines
8931 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Thu, 12 Nov 2026 09:31:40 -0500 you wrote:
> gfar_clean_rx_ring() keeps a frame that spans several Rx buffers in
> rx_queue->skb between NAPI polls. When the interface is stopped (close,
> MTU change, reset), free_skb_rx_queue() frees that skb but leaves the
> pointer set, and nothing clears it when the rings are set up again.
> 
> After the restart, gfar_clean_rx_ring() picks up the stale pointer. The
> first buffer it sees has RXBD_FIRST set, so the overrun handling frees
> the skb a second time. By then the skb has usually been reallocated, so
> the second free releases another owner's skb and data while they are
> still in use.
> 
> [...]

Here is the summary with links:
  - [net] net: gianfar: clear the pending Rx skb when freeing the Rx ring
    https://git.kernel.org/netdev/net/c/c35761f43c58

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179496600877.1396957.13399889673438703423.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365767-linux-kernel-netdev=dewy.ru
References: <20261112143140.1395197-1-anthony.pighin@nokia.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365767-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: gianfar: clear the pending Rx skb when freeing
 the
 Rx ring
Date: Wed, 18 Nov 2026 01:40:08 +0000
Organization: Usenet Network
Message-ID: <179496600877.1396957.13399889673438703423.git-patchwork-notify@kernel.org>
References: <20261112143140.1395197-1-anthony.pighin@nokia.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2474857"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:xBpMGdgWPYo45w2ZEAjhfzDaeK4= sha256:YRXYaNrqK8WWdsYVMnDgJhPcqEkMVBoSzISCuMAuvG8=
	sha1:7hkEAVzz8zOexHGpfKrhHNkUfxA= sha256:OL2XnXlIPZurlSj/usDViGgq6tcewBRFMaEZTJKx6xY=
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 A6B601150DA; Wed, 18 Nov 2026 04:40:35 +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 xmjf_CDk1qdV;
	Wed, 18 Nov 2026 04:40:32 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-365767-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 218D6115135; Wed, 18 Nov 2026 04:40:21 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id C4F8E3ECC1; Wed, 18 Nov 2026 01:40: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=1794966011;
	b=djph/ZqOBTRLM0lDL6CnBL9dr2EXixtCd7Oa1yCVXqmw4YHCGIvwpXvFuPA3hD+dvmCa
	 Nq8fiJsRyO1+gZ1dFPDxKIRjDtnfziroKUcbsnnkNricjv9Rf+HBPi2vnNcVYkok/0KW5
	 UbRq492mLu0d9WA+8MN2ekPJYV1jQmo9TK0q70SvbDkkYr57wlIhjumsah6C3g0w4z4oA
	 nxLYKyCfekyFhd/Qh3Shr1Ggi6fiuC0tU2mn3Afj5wakKdxtxvWDhcyrFBnrUT4oTXC62
	 7KU3tpiZ2NZsWLcbEGwToER/sKTThGyZFYn2+gBIC9Yw1HBBafJSJpaZCfudxmjJj4Q==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794966011;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=QIVDHV5NYJPGkEJel2geQHbQyU3yy/pVdlufAPrIa0E=;
	b=L18h2aspa8SaK0m6FVhQWSuwcHgmNnEOIx2BaAXrnqSNlsS3Ow5ZVLjYKllWuZK8y4r2
	 otWB6L63q0Twy5Dy6+3seAt4/79DulkLHVOi5vSRst/sCTFSWIvnBdggy0kEVZhPY/KCE
	 +yRuB39pkoa4G9BUERHP7UmnXcwZoasgsh+lWxjfC/YWTFaNYk6mZeS9hAueTquYuTC8B
	 7qOiZzaA/NRcogT0Ql0CXBvYHPJOHFGuXFAXV+D1zuReExs03EChw58QMlh1tjEQmQypB
	 mx3MJCbKPKqcebH6pRlo29CZRPv2xVz0Hiu8z9HA201GRXceK0udRzZlBdaroOnFGKw==
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=dX0My12M;
	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 8ECC8606A330;
	Wed, 18 Nov 2026 01:40:11 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=dX0My12M
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=1794966010;
	b=IGACKO8I5au62/I39So4YHPJPfQfRRX14LxYPQV/Ctcg7MtYvD/cNacJlHbp0AsXwROI
	 x7gqV+3zDq0Nn4fiQrA8O2sCNgMuE+JxrSDpo9HOK6Hg8YrRuNJTa5xPLxFf/YQy3+QVh
	 qXrB/UjYrfXXPUiQ1jpreWej376+LW5/wxqwNHxiatbw58SJTxEapHIPOA49nJiHD6Yyz
	 /K9yp7kLAEIGcr2bH7vhy3yDvaNn9jsWNSWResMO0ZiuHikEYHXki2OOPByXoHtaiklkn
	 WNGgyNoZeekLRx8z45HBLKtfzfM5d4UWf4oqpuaglJJ6OUTzEgvZlev3dDZok7ofqRQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794966010;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=QIVDHV5NYJPGkEJel2geQHbQyU3yy/pVdlufAPrIa0E=;
	b=JjGOtU46gz+uMhjAfe4KMC4U6YjzlW2+Mj1jRIp5ZGv+xIIJSC/AwenJegJcF2auVXJH
	 vs4s7I6zgWB5zp9gyLEoW1FkQYGwK7MHUfVwdnZpWzf0tUpqs62cfYu6gVfrq9eDHrtcF
	 yxuZJuLKs3avzewBLQ35STJEQb6lx7G0lJSlC4iyZMIxxcyks03n6TeCIPmekBkkoUUgq
	 vjmm2Kk7LUNMtpYOjPAZwuuncWtI6c5T1o5BXgR7hz/eZhqkw5od8IJvui/4sJBYYeWIK
	 0R2PclIhymnRJVCSApEm+9KnGyeVDwlF9KeS/AVtpcZBVoELQBqn8eQNpZ/k/HYkJGA==
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=dX0My12M;
	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 ADA5D606A32C;
	Wed, 18 Nov 2026 01:40:10 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42E421F000CA;
	Wed, 18 Nov 2026 01:40:10 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794966010;
	bh=QIVDHV5NYJPGkEJel2geQHbQyU3yy/pVdlufAPrIa0E=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=dX0My12MISuZ9vAgCNO9uN96m0mvmx1Cu39AIQtzzGrzkiyiCZj8/hyev40z78hDg
	 Zs/a49sXojm9MsYa7P84lXcu0vp65BHCjLhO1Iaa8XKrZGEbjJwSVQC95PquRSUCkq
	 jYo5724s7nhHZP6K7lChSy2hhOM9kuuURouHXQpFEtdcAybkGZpNngfo5aKsKpk59D
	 fqavV6Qv6CNunOXvMelJ7SeXuTrZbdNVMcvUKOvzJe7uE4tbwJGk7IskF7SBoJgR3M
	 1qHMhWkcc+LABfwA1cgqPjqlvCNBQEnv1yiBK/4QW89Sw93SqkVsEjYdtx+cpOsXVd
	 sy0P4FlTzyn9g==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 3A3D7392B1FE;
	Wed, 18 Nov 2026 01:40:10 +0000 (UTC)
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
X-In-Reply-To: <20261112143140.1395197-1-anthony.pighin@nokia.com>
X-Cc: netdev@vger.kernel.org, claudiu.manoil@nxp.com, andrew+netdev@lunn.ch,
 davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com,
 linux-kernel@vger.kernel.org, stable@vger.kernel.org