From: Ido Schimmel <idosch@nvidia.com>
To: Kyuwon Cho <kyuwoncho18@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
David Ahern <dsahern@kernel.org>,
Kuniyuki Iwashima <kuniyu@google.com>,
Jiayuan Chen <jiayuan.chen@linux.dev>,
Willem de Bruijn <willemb@google.com>,
Simon Horman <horms@kernel.org>,
netdev@vger.kernel.org
Subject: Re: [PATCH net] ipv6: anycast: delete the anycast route under idev->lock
Date: Thu, 26 Nov 2026 11:20:20 +0200 [thread overview]
Message-ID: <20261126092020.GA608373@shredder> (raw)
In-Reply-To: <179552107133.1345245.9532670970901182620@gmail.com>
On Tue, Nov 24, 2026 at 10:32:26PM +0900, Kyuwon Cho wrote:
> IPV6_LEAVE_ANYCAST no longer holds RTNL, so a join of the same address
> can run between the two halves of its last leave. __ipv6_dev_ac_dec()
> unlinks the aca from idev->ac_list under idev->lock but deletes its
> anycast route only after dropping the lock. A join in that window finds
> no aca and creates a new one, and its ip6_ins_rt() fails with -EEXIST
> because the old route is still in the table. __ipv6_dev_ac_inc()
> ignores that error, the leave then deletes the old route, and the
> address stays joined without an anycast route in the local table.
>
> Delete the route before dropping idev->lock.
>
> Fixes: f7fdf13bf103 ("ipv6: anycast: Don't hold RTNL for IPV6_LEAVE_ANYCAST and IPV6_ADDRFORM.")
> Signed-off-by: Kyuwon Cho <kyuwoncho18@gmail.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Note that:
"Avoid having more than 15 patches, across all series, outstanding for
review on the mailing list for a single tree. In other words, a maximum
of 15 patches under review on net, and a maximum of 15 patches under
review on net-next."
https://docs.kernel.org/next/process/maintainer-netdev.html#limit-patches-outstanding-on-mailing-list
And according to patchwork you already have 17 patches under review for
net.
prev parent reply other threads:[~2026-11-26 9:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 13:32 [PATCH net] ipv6: anycast: delete the anycast route under idev->lock Kyuwon Cho
2026-11-26 9:20 ` Ido Schimmel [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=20261126092020.GA608373@shredder \
--to=idosch@nvidia.com \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=jiayuan.chen@linux.dev \
--cc=kuba@kernel.org \
--cc=kuniyu@google.com \
--cc=kyuwoncho18@gmail.com \
--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