From: netdev-bot+sashiko@kernel.org
To: f.fainelli@gmail.com
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
Subject: Re: [PATCH net v5 05/10] net: au1000: serialize TX completion with packet submission
Date: Thu, 03 Dec 2026 23:41:16 +0000 [thread overview]
Message-ID: <179634127640.3146.8125538197870339120@kernel.org> (raw)
In-Reply-To: <20261202224957.3043478-6-f.fainelli@gmail.com>
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
next prev parent reply other threads:[~2026-12-03 23:41 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 22:49 [PATCH net v5 00/10] net: au1000: Bug fixes Florian Fainelli
2026-12-02 22:49 ` [PATCH net v5 01/10] net: au1000: recycle RX descriptors on allocation failure Florian Fainelli
2026-12-02 22:49 ` [PATCH net v5 02/10] net: au1000: clear all-multicast mode when restoring hash filtering Florian Fainelli
2026-12-02 22:49 ` [PATCH net v5 03/10] net: au1000: disconnect the PHY before freeing the MDIO bus Florian Fainelli
2026-12-02 22:49 ` [PATCH net v5 04/10] net: au1000: report MDIO transaction timeouts Florian Fainelli
2026-12-02 22:49 ` [PATCH net v5 05/10] net: au1000: serialize TX completion with packet submission Florian Fainelli
2026-12-03 7:26 ` Jijie Shao
2026-12-03 23:41 ` netdev-bot+sashiko [this message]
2026-12-02 22:49 ` [PATCH net v5 06/10] net: au1000: restore receive filtering before enabling RX Florian Fainelli
2026-12-02 22:49 ` [PATCH net v5 07/10] net: au1000: restore RX buffer addresses when restarting the MAC Florian Fainelli
2026-12-02 22:49 ` [PATCH net v5 08/10] net: phy: smsc: wait for LAN83C183 power-down recovery Florian Fainelli
2026-12-03 23:41 ` netdev-bot+sashiko
2026-12-02 22:49 ` [PATCH net v5 09/10] net: au1000: keep the MAC stopped until the PHY link is ready Florian Fainelli
2026-12-03 23:41 ` netdev-bot+sashiko
2026-12-02 22:49 ` [PATCH net v5 10/10] net: au1000: reject frames larger than the TX bounce buffer Florian Fainelli
2026-12-02 22:55 ` [PATCH net v5 00/10] net: au1000: Bug fixes netdev-bot+sinfo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179634127640.3146.8125538197870339120@kernel.org \
--to=netdev-bot+sashiko@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=danny.kukawka@bisect.de \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=f.fainelli@gmail.com \
--cc=hkallweit1@gmail.com \
--cc=horms@kernel.org \
--cc=hvr@gnu.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=manuel.lauss@gmail.com \
--cc=mmyangfl@gmail.com \
--cc=mugunthanvnm@ti.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=runyu.xiao@seu.edu.cn \
--cc=sebastian.hesselbarth@gmail.com \
--cc=shaojijie@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®