Skip to content

ip: Fix route leak and unregister_netdevice() stuck.

Kuniyuki Iwashima netdev 1 version 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

  1. v1 Latest3 patches 1 replyApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3ipv6: Flush exception route while replacing nexthop.net/ipv6/route.c+4 -20 repliesApplied
2/3ipv6: Flush rt->from in rt6_uncached_list_flush_dev().net/ipv6/route.c+14 -00 repliesApplied
3/3ipv4: Call rt_add_uncached_list() if !do_cache in ip_route_input_slow().net/ipv4/route.c+2 -00 repliesApplied

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchIdo Schimmel
SeriesR-b
1/3
2/3
3/3

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

Read the v1 thread

Cover letter [PATCH v1 net 0/3] ip: Fix route leak and unregister_netdevice() stuck.

Jason Zhang fed commit 0346ec2f080b ("ipv6: Prevent rt6_insert_exception() for dying fib6_info.") to LLM to find tricks to cause the same symptom:

unregister_netdevice: waiting for gre6 to become free. Usage count = 4
ref_tracker: netdev@000000009652f190 has 1/3 users at

       dst_alloc+0x14b/0x490
       ip6_rt_cache_alloc+0x27b/0x670
       __ip6_rt_update_pmtu+0x572/0x850

This series treats them.

Kuniyuki Iwashima (3):
ipv6: Flush exception route while replacing nexthop.
ipv6: Flush rt->from in rt6_uncached_list_flush_dev().
ipv4: Call rt_add_uncached_list() if !do_cache in

    ip_route_input_slow().
 net/ipv4/route.c |  2 ++
 net/ipv6/route.c | 20 ++++++++++++++++++--
 2 files changed, 20 insertions(+), 2 deletions(-)
Signature · 1 line
2.56.0.317.g454f8302e1-goog