Skip to contentSkip to conversation

ipv6: validate cached dsts against the netns route generation

PATCH Ralf Lici 2 participants 2 messages Nov 25 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

Ralf Lici

author
#1 lore raw
In reply to a message not in the archive

I'm not sure what happened here but it seems like you've sent this series with envelope sender [email protected]. My server took it with a spam score of 12.9; lore says the message-ids are unknown, and patchwork doesn't have it (vger very likely rejected it). So, only the people on Cc have it, and patch 02/11 never reached even my mailbox.

Quoted 3 lines · David Ahern

rebound under the global fnhe_lock (rt_bind_exception()). Narrowing the invalidation back to subtrees would bring back the cookie race the series removes. If the exception refresh shows up under churn, a

That's not the case: my v5 [1] keeps the per-node scope and closes the race by sampling the node's serial during the lookup. Invalidating the whole netns is a matter of preference, not a requirement.

[1] https://lore.kernel.org/netdev/[email protected]/

Quoted 5 lines

David Ahern (11):
ipv6: allocate the exception entry before removing the one it replaces
ipv6: keep a superseded pcpu dst working until its holders notice
ipv6: don't insert a PMTU exception whose MTU could not be stored
ipv6: invalidate the failing dst in ip6_link_failure()

Quoted 9 lines

ipv6: tell route dumps about exception inserts with a table sequence
ipv6: validate dsts against the netns route generation
ipv6: make rt_genid_bump_ipv6() a plain counter increment
nexthop: factor out nh_has_f6i()
nexthop: bump the IPv6 route generation on group changes
ipv6: stamp dsts with the generation sampled before the FIB lookup
selftests: net: pmtu: check that a deleted cached exception stays
deleted

When you resend, please add Reported-by tags where the series fixes issues I reported in this thread: the reuse of a rebuilt pcpu dst (10/11), stale exceptions treated as misses (6/11), superseded pcpu dsts released with dst_dev_put (2/11) and, if the series addresses it, the bundle-child release.

Signature · 2 lines
Ralf Lici
Mandelbit Srl
#2 lore raw
Quoted 6 lines · Ralf Lici

I'm not sure what happened here but it seems like you've sent this series with envelope sender [email protected]. My server took it with a spam score of 12.9; lore says the message-ids are unknown, and patchwork doesn't have it (vger very likely rejected it). So, only the people on Cc have it, and patch 02/11 never reached even my mailbox.

sigh. botched attempt from the corporate laptop. will send the next version from personal laptop. thanks for the heads up.

Quoted 9 lines · David Ahern
Quoted 3 lines

rebound under the global fnhe_lock (rt_bind_exception()). Narrowing the invalidation back to subtrees would bring back the cookie race the series removes. If the exception refresh shows up under churn, a

That's not the case: my v5 [1] keeps the per-node scope and closes the race by sampling the node's serial during the lookup. Invalidating the whole netns is a matter of preference, not a requirement.

That comment describes how IPv4 works. Your series is for IPv6; not sure what you mean with your comment.

Quoted 18 lines

[1] https://lore.kernel.org/netdev/[email protected]/

Quoted 5 lines

David Ahern (11):
ipv6: allocate the exception entry before removing the one it replaces
ipv6: keep a superseded pcpu dst working until its holders notice
ipv6: don't insert a PMTU exception whose MTU could not be stored
ipv6: invalidate the failing dst in ip6_link_failure()

Quoted 9 lines

ipv6: tell route dumps about exception inserts with a table sequence
ipv6: validate dsts against the netns route generation
ipv6: make rt_genid_bump_ipv6() a plain counter increment
nexthop: factor out nh_has_f6i()
nexthop: bump the IPv6 route generation on group changes
ipv6: stamp dsts with the generation sampled before the FIB lookup
selftests: net: pmtu: check that a deleted cached exception stays
deleted

Quoted 6 lines

When you resend, please add Reported-by tags where the series fixes issues I reported in this thread: the reuse of a rebuilt pcpu dst (10/11), stale exceptions treated as misses (6/11), superseded pcpu dsts released with dst_dev_put (2/11) and, if the series addresses it, the bundle-child release.

Done.