From: Martin Schiller <ms@dev.tdt.de>
To: Felix Hoffmann <f3lix.dev@gmx.de>
Cc: linux-x25@vger.kernel.org, netdev@vger.kernel.org,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>,
linux-kernel@vger.kernel.org,
Willem de Bruijn <willemb@google.com>
Subject: Re: [PATCH net v3] net: x25: shut down T20 timer before freeing neighbour
Date: Fri, 27 Nov 2026 07:33:25 +0100 (CET) [thread overview]
Message-ID: <680c69bd08e0481f7ddb16b64501ed24@dev.tdt.de> (raw)
In-Reply-To: <20261125103153.53012-1-f3lix.dev@gmx.de>
On Wed, 25 Nov 2026 11:31:53 +0100, Felix Hoffmann wrote:
> Purge queued frames when the last neighbour reference is dropped.
Thanks, that addresses the review.
The AI review of v3 [1] adds that the use-after-free does not even
need a race: x25_exit() frees the neighbours before the netdev notifier
is unregistered, so unloading the module while a link is in state 2
always frees a neighbour with an armed T20 timer, and
NETDEV_PRE_TYPE_CHANGE also skips x25_link_terminated(). The patch
covers both, and as it is already Cc'd to stable, I don't think the
commit message needs a respin for this.
The dangling nb->dev the review also mentions is a separate,
pre-existing issue, which I'll look into separately.
Acked-by: Martin Schiller <ms@dev.tdt.de>
[1] https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261125103153.53012-1-f3lix.dev%40gmx.de
prev parent reply other threads:[~2026-11-27 6:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 10:31 [PATCH net v3] net: x25: shut down T20 timer before freeing neighbour Felix Hoffmann
2026-11-27 6:33 ` Martin Schiller [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=680c69bd08e0481f7ddb16b64501ed24@dev.tdt.de \
--to=ms@dev.tdt.de \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=f3lix.dev@gmx.de \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-x25@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=willemb@google.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