Skip to content

ipv6: f6i->fib6_siblings and rt->fib6_nsiblings fixes

Eric Dumazet 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 Latest4 patches 1 replyApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4ipv6: add a retry logic in net6_rt_notify()net/ipv6/route.c+10 -50 repliesApplied
2/4ipv6: prevent infinite loop in rt6_nlmsg_size()net/ipv6/ip6_fib.c net/ipv6/route.c+20 -180 repliesApplied
3/4ipv6: fix possible infinite loop in fib6_info_uses_dev()net/ipv6/route.c+11 -60 repliesApplied
4/4ipv6: annotate data-races around rt->fib6_nsiblingsnet/ipv6/ip6_fib.c net/ipv6/route.c+16 -90 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/4] ipv6: f6i->fib6_siblings and rt->fib6_nsiblings fixes

Series based on an internal syzbot report with a repro.

After fixing (in the first patch) the original minor issue, I found that syzbot repro was able to trigger a second more serious bug in rt6_nlmsg_size().

Code review then led to the two final patches.

I have not released the syzbot bug, because other issues still need investigations.

Eric Dumazet (4):
ipv6: add a retry logic in net6_rt_notify()
ipv6: prevent infinite loop in rt6_nlmsg_size()
ipv6: fix possible infinite loop in fib6_info_uses_dev()
ipv6: annotate data-races around rt->fib6_nsiblings

 net/ipv6/ip6_fib.c | 24 ++++++++++------
 net/ipv6/route.c   | 71 +++++++++++++++++++++++++++-------------------
 2 files changed, 57 insertions(+), 38 deletions(-)
Signature · 1 line
2.50.1.470.g6ba607880d-goog