🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #5644

Re: [PATCH net] net: axienet: don't advance the TX ring head before the descriptor is ready

#5644
From: patchwork-bot+netdevbpf
Date: Tue, 20 Oct 2026 19:10
27 lines
9050 bytes
Hello:

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

On Tue, 13 Oct 2026 18:25:06 +0000 you wrote:
> axienet_start_xmit_dmaengine() bumps lp->tx_ring_head before
> skb_to_sgvec(), dma_map_sg() and device_prep_slave_sg(), and none of
> their error paths undo it.  The skb is freed and nothing is submitted,
> but the slot stays claimed.  axienet_dma_tx_cb() walks tx_ring_tail
> once per completion, so the next completion lands on the abandoned slot
> and dereferences whatever skb pointer is left there: NULL if the slot
> was never used or was already completed, or a stale skb that gets
> consumed a second time.  Every completion after that is accounted
> against the wrong slot.
> 
> [...]

Here is the summary with links:
  - [net] net: axienet: don't advance the TX ring head before the descriptor is ready
    https://git.kernel.org/netdev/net-next/c/cb790252f8e1

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179252341531.164064.14961781434199526406.git-patchwork-notify@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-349487-linux-kernel-netdev=dewy.ru
References: <20261013-b4-axienet-dmaengine-ring-head-v1-1-7add24e74477@toxicpanda.com>

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-349487-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: axienet: don't advance the TX ring head before
 the descriptor is ready
Date: Tue, 20 Oct 2026 19:10:15 +0000
Organization: Usenet Network
Message-ID: <179252341531.164064.14961781434199526406.git-patchwork-notify@kernel.org>
References: <20261013-b4-axienet-dmaengine-ring-head-v1-1-7add24e74477@toxicpanda.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3931729"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:V357Va5M49b8Rws1t2QeyAlVHPM= sha256:juiUCstAN3jxWqYRuJZ14H6D0nVcWtRI2ltA0jVqFjo=
	sha1:6mGbSkuzTfy5/U88WRnn0UEbUQ0= sha256:2R6A6je55LGXydAgALH+DR5YX+MeNqoT04u6dLuMLdk=
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 0920B110DEA; Tue, 20 Oct 2026 22:10:47 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.829
X-Spam-Status: No, score=-3.829 tagged_above=-9999 required=6.31
	tests=[DKIMWL_WL_HIGH=-0.329, 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 N3GzOcPrw-AZ;
	Tue, 20 Oct 2026 22:10:44 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-349487-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id F0D98110DE9; Tue, 20 Oct 2026 22:10:35 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 932FB613FB8; Tue, 20 Oct 2026 19:10:31 +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=1792523427;
	b=4+nq+ELHcWrAxvhwDx0cj4jXbcGh20ikNDcnwAH0ggox0jLXxBiLD1jK8z8ApJ/AZyQz
	 EOqMHzhdPQeJ4tlTUdwdOxa6HZmr2LQp6Gw2m2b8dqkbneVf8sZjSMPXPkfufjpPhhKT8
	 cei0gr6VJHk+jOLeIoliSN88RuIfazCbFyyyWgUNVu7Xvy9y1PxVTma/tC9Xwtdp1fFp7
	 spJufDroUjUkIuEvEcErqq5uvqqAoD/YxesgvwlpKaMBOLQZb5JKXg7kX7ew0CO12HU3V
	 fd8ZGexJWBkxxL6uMY688pPgVdoyJHmqlBsBW6SDlM0Ad5zOhtahZsPa22Oiu7Ytezg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792523427;
	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=RikwiHz8q0HsJLZT4M1TLtOxNEmvzvr/D1bXpPlVyRQ=;
	b=v1dKYq4rrfoDJF2leFnSd+iwCS2CD/GF9osF6gnlcfSeBLuggNJGpp4r3sdg8k2ycBv1
	 akJeM+F9FGIQRjm75GgI4hK5utPzptPpceT1NGcRF1cghBtxXToegyyhXU2NIyZ4Ka6LE
	 09HQY684rOE2znfJI3Esf1fOaFS01lYEUp7B/JQjj2pk2HwSU/F0AgDui15pU2MjRQOov
	 9r72Lsl3qMO4gQSXO0XobMa5hU5qOB9wDeDeqsjhIiWnGO4JliKIutqqJBCd+EnTseQea
	 S7DpFMC+JFmvxJ74rUUo6Yyp4HN1OuoaahunRuiTO8NPKA/ILAs9nHKj/rjTXE8KNDA==
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=JGD+exYz;
	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 C89DB606A338;
	Tue, 20 Oct 2026 19:10:27 +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=JGD+exYz
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=1792523417;
	b=n/LyC+uXIiPwlqV/8VHnM5arY8NFpJq8bRr1CMzWy+nBtMx8WRiWYH9E+azC/02KLKER
	 Ui/L2gCau/v9zk2NSlT+gYCS8Uadnq8ATQjGmuzp00Gom+dy40c6UgZe/8JXWBxzxuUuw
	 tlGfV+8Uy1HTg4QPzHaViRMuKpuNGdyd3EkveQtXuTTLu9waLb8N1h5LJqve4x26b+/5p
	 ZfuiGQ2WyqVne7Kv2IrqL/wBwQp50ofITJt/gd5p91gMjSzwVu3NThuMlh+7dBhGB7u0C
	 AK1QKXi0vGierNIBbBFs27XG1IdyHvD9TyVaBpMfwkbv3dq2shQOHjxNkhqjibrwFVg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792523417;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=RikwiHz8q0HsJLZT4M1TLtOxNEmvzvr/D1bXpPlVyRQ=;
	b=FWVZxoMTXwMLfA5GSvjXCjlpxT5iUU/dgCIl5tsc9rb64uWAc+5tvHMzHn8qsE3Y2TRi
	 87s2gkybiA06HcQePHHLHJp97Wc5BGyRQ8qOiNtv53Pfr1eY19KLKN5A+NV9akD2GrcTk
	 IQ4TSa2mua5J3pNHw0RQCq+F1s9tPrz4LuDu3kovhdarYhLoWBCfVvWlvj+3XD2QuYnpN
	 P2Aea0STF/5ad3NL2z7blteCY6sZQuD+YnHHBztbfrA9NPO36QOwolaezNHOMx4QyjkxM
	 q5u9KGyBt4NSNvTcyTYWpX90fWeu/IPp4PeOX/kUjqVZB16JeeA/IZYmdya+FKBzS7g==
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=JGD+exYz;
	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 A6563606A321;
	Tue, 20 Oct 2026 19:10:16 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 827821F000CB;
	Tue, 20 Oct 2026 19:10:16 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792523416;
	bh=RikwiHz8q0HsJLZT4M1TLtOxNEmvzvr/D1bXpPlVyRQ=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=JGD+exYzyW4tiqpfSdvc17FGbOLrNAui31N3Pd3wbiZmeAg0oiwaeqRx8/A7H9sQy
	 EL9zoZRX/YCXV9eQSe1NsRTHMfBr5v2LvI6AFtpHpSjKkNaB185L8tz1kwTwUQRyFh
	 UaEYafu0HvH8vb98Gz6k3qoHy76+oQpXqMes43QR/5xROMRI83ke/R793tL5/8+3HA
	 AfmI4U4M79vhPNhJM1shgA0kJPKvNhC249pRnlkZachKeJnrIq4nuwfAglAeypG8O9
	 cFSvZWLMI0HcrWfz7RpcGm/vodesqH8qmrrOSJUhIzFtZAvcr4m3xcr2JjPmr6TLrm
	 RILPQhjzPUI6Q==
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 774413808209;
	Tue, 20 Oct 2026 19:10:16 +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:  <20261013-b4-axienet-dmaengine-ring-head-v1-1-7add24e74477@toxicpanda.com>
X-Cc: radhey.shyam.pandey@amd.com, andrew+netdev@lunn.ch, davem@davemloft.net,
 edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com,
 michal.simek@amd.com, netdev@vger.kernel.org,
 linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org,
 stable@vger.kernel.org