Netdev List
 help / color / mirror / Atom feed
From: David Ahern <dsahern@kernel.org>
To: Ralf Lici <ralf@mandelbit.com>
Cc: netdev@vger.kernel.org, idosch@nvidia.com, davem@davemloft.net,
	edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com,
	horms@kernel.org, ja@ssi.bg, David Ahern <dahern@nvidia.com>
Subject: Re: [PATCH net-next v2 06/13] ipv6: validate dsts against the netns route generation
Date: Tue, 1 Dec 2026 10:42:55 -0700	[thread overview]
Message-ID: <b4cf5c46-68c3-43aa-8477-f23f2ac393bd@kernel.org> (raw)
In-Reply-To: <20261201083252.37868-1-ralf@mandelbit.com>

On 12/1/26 1:32 AM, Ralf Lici wrote:
> 
> Ok but the objection is not about the eviction itself. The issue is how
> the slot's reference is dropped: lookups with RT6_LOOKUP_F_DST_NOREF
> rely on RCU to keep the pcpu dst alive, and dropping the slot's
> reference right away breaks that when the only other reference is an
> xfrm bundle's child, since dst_destroy releases the child with
> dst_release_immediate. Dropping the slot's reference after a grace
> period, from a call_rcu callback, would fix it for both kinds of
> nexthops, and in fib6_nh_release_dsts as well.
> 

ok, I missed that point. v3 has a deferred release for dst in patch 6.

  reply	other threads:[~2026-12-01 17:42 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  1:33 [PATCH net-next v2 00/13] ipv6: validate cached dsts against the netns route generation David Ahern
2026-11-26  1:33 ` [PATCH net-next v2 01/13] ipv6: allocate the exception entry before removing the one it replaces David Ahern
2026-11-26  1:33 ` [PATCH net-next v2 02/13] ipv6: keep a superseded pcpu dst working until its holders notice David Ahern
2026-11-26  1:33 ` [PATCH net-next v2 03/13] ipv6: don't insert a PMTU exception whose MTU could not be stored David Ahern
2026-11-26  1:33 ` [PATCH net-next v2 04/13] ipv6: invalidate the failing dst in ip6_link_failure() David Ahern
2026-11-26  1:33 ` [PATCH net-next v2 05/13] ipv6: tell route dumps about exception inserts with a table sequence David Ahern
2026-11-26  1:33 ` [PATCH net-next v2 06/13] ipv6: validate dsts against the netns route generation David Ahern
2026-11-27 11:03   ` Ralf Lici
2026-11-30 19:31     ` David Ahern
2026-12-01  8:32       ` Ralf Lici
2026-12-01 17:42         ` David Ahern [this message]
2026-11-26  1:33 ` [PATCH net-next v2 07/13] ipv6: make rt_genid_bump_ipv6() a plain counter increment David Ahern
2026-11-26  1:33 ` [PATCH net-next v2 08/13] nexthop: factor out nh_has_f6i() David Ahern
2026-11-26  1:33 ` [PATCH net-next v2 09/13] nexthop: bump the IPv6 route generation on group changes David Ahern
2026-11-26  1:33 ` [PATCH net-next v2 10/13] ipv6: stamp dsts with the generation sampled before the FIB lookup David Ahern
2026-11-26  1:33 ` [PATCH net-next v2 11/13] selftests: net: pmtu: check that a deleted cached exception stays deleted David Ahern
2026-11-26  1:33 ` [PATCH net-next v2 12/13] selftests: net: fib_tests: Add stale pcpu test David Ahern
2026-11-27 10:47 ` [PATCH net-next v2 00/13] ipv6: validate cached dsts against the netns route generation Ralf Lici

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=b4cf5c46-68c3-43aa-8477-f23f2ac393bd@kernel.org \
    --to=dsahern@kernel.org \
    --cc=dahern@nvidia.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=idosch@nvidia.com \
    --cc=ja@ssi.bg \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=ralf@mandelbit.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