mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Federico Musto <federico@rimpianto.com>
To: netdev-bot+sashiko@kernel.org
Cc: Federico Musto <federico@rimpianto.com>,
	Chris Snook <chris.snook@gmail.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S . Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	stable@vger.kernel.org
Subject: Re: [PATCH net v4 2/2] net: atl1c: free the RX buffer when the descriptor reports an error
Date: Wed, 25 Nov 2026 12:34:49 +0100	[thread overview]
Message-ID: <20261125113449.99968-1-federico@rimpianto.com> (raw)
In-Reply-To: <179530311840.3135.8141689247648916052@kernel.org>

Thank you for the review. The findings are addressed in v5 of the
series, posted here:

https://lore.kernel.org/netdev/20261125113120.99743-1-federico@rimpianto.com/

[Medium] Missing dma_rmb() between the valid-bit test and word0.

Correct, and material for this patch as argued: word0 now decides
whether a reset is scheduled and the ring is zeroed after a reset, so
a stale zeroed word0 would schedule a spurious reset on weakly ordered
CPUs. v5 adds dma_rmb() after the RRS_RXD_IS_VALID(word3) test and
before the remaining descriptor reads.

[High, pre-existing, new trigger] schedule_work() lifetime.

Correct, and since v5 adds one more producer of common_task, the
missing cancel in atl1c_remove() is now fixed by a separate one-line
patch posted alongside this series:

https://lore.kernel.org/netdev/20261125113141.99792-1-federico@rimpianto.com/

It adds cancel_work_sync(&adapter->common_task) after
unregister_netdev(), where the IRQ is freed, NAPI is disabled and the
TX watchdog is stopped, so nothing can queue the work again.

[High, pre-existing] common_task reset path serialization.

Acknowledged and still deferred: a full fix requires reworking the
serialisation of the work item against the rtnl holders - the same
deadlock is why patch 1/2 does not use napi_disable(), as its
changelog explains. Planned as a separate series.

      reply	other threads:[~2026-11-25 11:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-17 22:55 [PATCH net v4 0/2] net: atl1c: fix the RX buffer leak on errored frames Federico Musto
2026-11-17 22:55 ` [PATCH net v4 1/2] net: atl1c: wait for in-flight RX polls before the link-down ring reset Federico Musto
2026-11-21 23:18   ` netdev-bot+sashiko
2026-11-25 11:34     ` Federico Musto
2026-11-17 22:55 ` [PATCH net v4 2/2] net: atl1c: free the RX buffer when the descriptor reports an error Federico Musto
2026-11-21 23:18   ` netdev-bot+sashiko
2026-11-25 11:34     ` Federico Musto [this message]

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=20261125113449.99968-1-federico@rimpianto.com \
    --to=federico@rimpianto.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=chris.snook@gmail.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=stable@vger.kernel.org \
    /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®