From: Martin Schiller <ms@dev.tdt.de>
To: Felix Hoffmann <f3lix.dev@gmx.de>
Cc: linux-x25@vger.kernel.org, netdev@vger.kernel.org,
davem@davemloft.net, Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net] net: x25: shut down T20 timer before freeing neighbour
Date: Tue, 24 Nov 2026 08:55:34 +0100 (CET) [thread overview]
Message-ID: <0752bfa788132d988fd1d3028b9d2d89@dev.tdt.de> (raw)
In-Reply-To: <20260731173955.1601698-1-f3lix.dev@gmx.de>
On Fri, 31 Jul 2026, Felix Hoffmann wrote:
> Shut the timer down synchronously in __x25_remove_neigh() before
> dropping the list-owned reference.
The fix is right. The AI review of an unrelated patch has just found
the same use-after-free again [1].
The placement question from Simon's review doesn't matter for the
current callers, which only pass neighbours that are on the list, but
moving the two calls inside the if (nb->node.next) block would match
the comment. As the patch is marked "Changes Requested", it needs a v2
with that change, as a new thread with [PATCH net v2]. Unless you'd
like to send it yourself, I'll post it in a few days, with you as the
author. If you do send it, feel free to add my
Acked-by: Martin Schiller <ms@dev.tdt.de>
The dangling nb->dev the review mentions is a separate issue, which
I'll look into separately.
[1] https://lore.kernel.org/all/179549218277.3135.9518512691383315581@kernel.org/
prev parent reply other threads:[~2026-11-24 7:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-31 17:39 [PATCH net] net: x25: shut down T20 timer before freeing neighbour Felix Hoffmann
2026-08-05 10:12 ` Simon Horman
2026-11-24 7:55 ` 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=0752bfa788132d988fd1d3028b9d2d89@dev.tdt.de \
--to=ms@dev.tdt.de \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--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 \
/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