Skip to content

ipv6: Fix two GC issues with permanent routes.

Kuniyuki Iwashima netdev 6 versions – Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest3 patches 3 repliesApplied 3/3
  2. v53 patches 2 repliesSuperseded
  3. v42 patches 3 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v32 patches3 repliesSuperseded
v22 patches1 replySuperseded
v12 patches1 replySuperseded

Changes in v6 from the cover letter

Patch 2: Call fib6_age_exceptions() under RCU

Patches in v6 All 3 applied

#Subject and filesSizeRepliesApplied
1/3ipv6: Remove permanent routes from tb6_gc_hlist when all exceptions expire.net/ipv6/ip6_fib.c+12 -11 replyApplied
2/3ipv6: Don't remove permanent routes with exceptions from tb6_gc_hlist.include/net/ip6_fib.h net/ipv6/addrconf.c net/ipv6/ip6_fib.c +1 more+26 -71 replyApplied
3/3selftest: net: Add GC test for temporary routes with exceptions.tools/testing/selftests/net/fib_tests.sh+58 -31 replyApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchXin LongDavid Ahern
1/3R-b R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 net 0/3] ipv6: Fix two GC issues with permanent routes.

Patch 1 fixes the unbounded growth of tb6_gc_hlist due to permanent routes whose exception routes have all expired.

Patch 2 fixes an issue where exception routes tied to permanent routes are not properly aged.

Patch 3 is a selftest for the issue fixed by Patch 2.

Changes:
v6:
Patch 2: Call fib6_age_exceptions() under RCU

v5: https://lore.kernel.org/netdev/[email protected]/
Add selftest

v4: https://lore.kernel.org/netdev/[email protected]/
Patch 2: s/,/;/ for fib6_gc_args initialisation

v3: https://lore.kernel.org/netdev/[email protected]/
Patch 2: Use IS_ENABLED()

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

    Patch 2: Fix build failure when CONFIG_IPV6=n (no net->ipv6 definition)

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

Kuniyuki Iwashima (3):
ipv6: Remove permanent routes from tb6_gc_hlist when all exceptions
expire.
ipv6: Don't remove permanent routes with exceptions from tb6_gc_hlist.
selftest: net: Add GC test for temporary routes with exceptions.

 include/net/ip6_fib.h                    | 21 +++++++-
 net/ipv6/addrconf.c                      |  4 +-
 net/ipv6/ip6_fib.c                       | 15 +++++-
 net/ipv6/route.c                         |  2 +-
 tools/testing/selftests/net/fib_tests.sh | 61 ++++++++++++++++++++++--
 5 files changed, 94 insertions(+), 9 deletions(-)
Signature · 1 line
2.53.0.959.g497ff81fa9-goog