Article View: linux.kernel.netdev
Article #26606Re: [PATCH net v5 05/10] net: au1000: serialize TX completion with packet submission
From: netdev-bot+sashiko
Date: Thu, 03 Dec 2026 23:41
Date: Thu, 03 Dec 2026 23:41
58 lines
10526 bytes
10526 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] The last paragraph of the commit message for "net: au1000:
serialize TX completion with packet submission" describes earlier,โฆ
--
net: au1000: serialize TX completion with packet submission
This commit takes aup->lock in both au1000_tx_ack() and au1000_tx(), so TX
completion and packet submission no longer run at the same time. The
packet copy and padding stay outside the lock. When au1000_tx() reclaims
a completed descriptor it now also clears TX_T_DONE and advances tx_tail,
and the skb is freed with dev_consume_skb_any() after the lock is
released.
> Sashiko AI review identified the IRQ-off copy window; OpenAI Codex
> assisted the lock-scope change and validation. An extracted-function
> harness exercised 432 ring, copy, padding, IRQ-state and completion
> interleavings under ASan/UBSan, plus busy and oversized-packet paths.
> The baseline failed the unlocked-copy assertion, and omitting the
> TX_T_DONE clear reproduced double reclamation in the harness.
[Severity: Low]
Is this paragraph describing the parent commit, or an earlier unposted
version of this patch?
In the parent commit, au1000_tx() in drivers/net/ethernet/amd/au1000_eth.c
never takes aup->lock. The skb_copy_from_linear_data() call, the ETH_ZLEN
padding and the TX_DMA_ENABLE write all run without spin_lock_irqsave().
So the normal xmit path had no IRQ-off copy window for this patch to
remove. Netpoll entry does run the copy with IRQs off, and this patch
leaves that path as it was.
For the same reason, how could the baseline fail the unlocked-copy
assertion? The copy is already unlocked in the parent.
The mention of oversized-packet paths also doesn't seem to match this
commit. au1000_tx() still copies skb->len bytes into the 2048-byte
(MAX_BUF_SIZE) pDB->vaddr buffer with no bound:
skb_copy_from_linear_data(skb, (void *)pDB->vaddr, skb->len);
The skb->len > MAX_BUF_SIZE check is only added by the later commit
"net: au1000: reject frames larger than the TX bounce buffer". An ASan
harness built from this commit would be expected to flag an oversized
copy.
Could the revision history and harness details go below the --- line,
so that the changelog only describes the code as committed?
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261202224957.3043478-1-f.fainelli%40gmail.com
Technical Details
Message-ID:
<179634127640.3146.8125538197870339120@kernel.org>Path:
mbox-mo1.pugleaf.net!news-ams.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376904-linux-kernel-netdev=dewy.ruReferences:
<20261202224957.3043478-6-f.fainelli@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376904-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v5 05/10] net: au1000: serialize TX completion with packet submission Date: Thu, 03 Dec 2026 23:41:16 +0000 Organization: Usenet Network Message-ID: <179634127640.3146.8125538197870339120@kernel.org> References: <20261202224957.3043478-6-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2629761"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:EFYqEVDWigRvVrz8ybgdhefHt/Q= sha256:AQw7/EMrUsgNhQBC2PIkCJBM1Tr4UkHjgJBHLb52ZIc= sha1:gxfNT/vQHI1AwD5Frhbv/1RmVVo= sha256:T9yvJowLh66T6DE3ANkMUDAiNT5m4Ag7Qr6UnvKLn6E= 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 44552117A57; Fri, 4 Dec 2026 02:41:35 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.74 X-Spam-Status: No, score=-3.74 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.24, 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 6M-4JLAxcQAO; Fri, 4 Dec 2026 02:41:32 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-376904-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 13EA5117971; Fri, 4 Dec 2026 02:41:22 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 2716224292; Thu, 3 Dec 2026 23:41:20 +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=1796341279; b=vxcsPL0MQ8jxXxYNhzBjIwNZdv2z+0JRmt0Vx9Sw0mPyPg5jM/zw5SL0IyiJwkqKtHI1 eN8iffC7J6pp0UEfrea3UPP/zubEhCMpqmmIkt645RSpgjR6dkwBpoGBqGr6ffkakudWy yK8+ClYrfoB3QTgBTGZ8Zk3NFxvFkZqULDU2P5a3EYUujSNkgl+Tczh1PIkFUuHTfBpFf sY6rhX/5wsTgmEuknHK5b0c1TyJgbYs+g+0j9aA6l5IqVfZTEongMlwOnAbAncVsHfGLq xtQ9siJE5jmZ1u9Lzma62U94SytvIWIrPLZx9ugl28fEGpItGiTT+Yf6b73UsahEDyg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796341279; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=5QBXCuqUbG57hnarYYh4ahfaIh96rhrVFupmHRVWVAQ=; b=thjovNqJLY2fsXd2x7597xDXxm+vuQqqaD/kji5lixymv126xy/mF2hNmu7OtKaHKTz7 2RtMfx3TaAYzWObYsM0ObhflgUBw7J6JNqf0FqqWpKoU2MpO9zsQhgdEQFa/TISSv7MH8 RmztTmtrXzxhg4hu9hfFkvOZfF4gBHbS7zVq44w7VMaD6kjxHQAjFJoRXMTRKXt9M9eWq Qqx3kTjUvypO2dtjjr6ATMLInKRgPcnnKIQr+ZGEIQ8Xp069YrnbCGCRhcA2r64T4v8eG j3Q3PydCG8Fu+bmZKDCeZByyXjAgq26Zmu4uS0tKsFMk1+S8+kD5Ta4VA5yJLMZ9XrQ== 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=OjPvPPDm; 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 2F561606A339; Thu, 3 Dec 2026 23:41:19 +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=OjPvPPDm 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=1796341278; b=wAeUjzUdC95TonQH27wmlCrUqfPceQjzIxc+GchRj9R21VRfe3JIdzl+Enm/JMi0g8Aw OOmODLZb1eXxwuyGelslFY1UNcD1Bf0whhIIE8yqrTTEk62wLmguCYBRuCtfZXxvQCnS1 t46mtdW2Gfg9Hq+1ub2OdgU893ra575SSKuz936na9dhDGtME1f/iKxN7DJ1cjiqzsMuX I2oxS3o92GNWqQtFPO9Zz85OBNODET6xs7FOEJEK/ESXJcUFadhnn4gYgPKq3O3n/eklp sPsJRKHA+Zu/i99cwSfDGEqkclOzH2DbCKDVenMHwNd0RNIX6NNsKQPKlwhBcs3Fadg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796341278; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=5QBXCuqUbG57hnarYYh4ahfaIh96rhrVFupmHRVWVAQ=; b=UVJvHelQ15A/n8fCVolYV9MJ6D8JBQiauwFvfaks3q0hXzBBr+Zz7MUf030x2vfWKwkX 52UisSrtJRaA1HPk2HKa1H9u99yfFj9cT8+o/Tk/6ZHkV1bLWr0ECu7nX07bh7vCtCDiJ dFOuCpPRs9oaufp5ScdATYsBvUjeX//6yhEd/2T+NL2SRy5q5VGTFj2jNSlGnTrx6iLDw 1QL8CUk5HoY0YWSea02nmv5r/FFw4wa38xJSix5KW/scBiv3rdUoykf7FItApcWqeudMV 3lUf9PH0opP2ZCL68Wp4TV6FecxVEkhar5bilqau6TZRkb+/B3AGj2p/wWDl0NF+VMA== 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=OjPvPPDm; 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 4E684606A322; Thu, 3 Dec 2026 23:41:17 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id D50001F000CE; Thu, 3 Dec 2026 23:41:16 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796341277; bh=5QBXCuqUbG57hnarYYh4ahfaIh96rhrVFupmHRVWVAQ=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=OjPvPPDm2t7VCRrR32qMM4qCbFAruhKxn7hMzlpp7gtJZV2fmlPtYolHSZn8HhDa2 2IffsZTkD976vYuMqNGEWV8iaZquxNmJ7j3HsjOyb623Z95IZwXFryeDYCmJ98uIl4 Sj7jMSSWq3eYeCYakSMjA/xJGKMsCqB7L4morkSEARNGm3aaWZ9mWp6B92jqc4cMgN K090DDNb9esn5tQ5UEkVgssuZDoqmQeYX3O/xqD9J9xxN9IP5AqYKaahsY6gAAqzTB dgsS9IJt/I9ZURK19goHatnla2xh80kYNQndCZouj/rxTWLJ7bPs91rNJ/drKwYO1M M28KKTMnkkfHQ== X-Cc: netdev@vger.kernel.org, horms@kernel.org, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, hkallweit1@gmail.com, linux@armlinux.org.uk, shaojijie@huawei.com, runyu.xiao@seu.edu.cn, mmyangfl@gmail.com, hvr@gnu.org, danny.kukawka@bisect.de, mugunthanvnm@ti.com, sebastian.hesselbarth@gmail.com, linux-kernel@vger.kernel.org, manuel.lauss@gmail.com X-In-Reply-To: <20261202224957.3043478-6-f.fainelli@gmail.com> X-sashiko-severity: Low 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