From: Ralf Lici <ralf@mandelbit.com>
To: David Ahern <dsahern@kernel.org>
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 00/13] ipv6: validate cached dsts against the netns route generation
Date: Fri, 27 Nov 2026 11:47:41 +0100 [thread overview]
Message-ID: <20261127104742.333777-1-ralf@mandelbit.com> (raw)
In-Reply-To: <cover.1795642432.git.dahern@nvidia.com>
I ran my reproducers on this series (on net-next eb6d6c80d354, VM with
lockdep and PROVE_RCU). The races are widened with debug-only delays
after the lookup, between route selection and the pcpu dst lookup, and
before xfrm bundle creation:
- an xfrm policy inserted while a TCP or UDP lookup is in flight: no
plaintext once the policy is in place
- a blackhole added while a lookup is in flight, with and without
nexthop objects, and a pcpu dst rebuilt by another socket in that
window: nothing sent past the blackhole
- a block policy inserted between policy selection and bundle creation:
nothing sent
- a PMTU exception across a route change in its subtree and elsewhere:
the learned MTU is kept
- a corked UDP datagram across a pcpu dst replacement: sent
The issues I reported on the RFC no longer reproduce. fib_tests
ipv6_nh_pcpu_stale and pmtu_ipv6_cached_del pass, no warnings in dmesg.
The reproducers don't cover one lifetime issue in 06/13, which I'll
describe there.
Tested-by: Ralf Lici <ralf@mandelbit.com>
--
Ralf Lici
Mandelbit Srl
prev parent reply other threads:[~2026-11-27 10:48 UTC|newest]
Thread overview: 15+ 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-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 ` Ralf Lici [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=20261127104742.333777-1-ralf@mandelbit.com \
--to=ralf@mandelbit.com \
--cc=dahern@nvidia.com \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--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 \
/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