Skip to content

net: add rcu safety to dst->dev

Eric Dumazet netdev 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 8 repliesApplied 8/8

Patches in v1 All 8 applied

#Subject and filesSizeRepliesApplied
1/8net: dst: introduce dst->dev_rcuinclude/net/dst.h net/core/dst.c net/ipv4/route.c+14 -81 replyApplied
2/8ipv6: start using dst_dev_rcu()net/ipv6/anycast.c net/ipv6/icmp.c net/ipv6/mcast.c +3 more+14 -131 replyApplied
3/8ipv6: use RCU in ip6_xmit()net/ipv6/ip6_output.c+21 -141 replyApplied
4/8ipv6: use RCU in ip6_output()net/ipv6/ip6_output.c+15 -141 replyApplied
5/8net: use dst_dev_rcu() in sk_setup_caps()include/net/ip.h include/net/ip6_route.h include/net/route.h +1 more+16 -101 replyApplied
6/8tcp_metrics: use dst_dev_net_rcu()net/ipv4/tcp_metrics.c+3 -31 replyApplied
7/8tcp: use dst_dev_rcu() in tcp_fastopen_active_disable_ofo_check()net/ipv4/tcp_fastopen.c+4 -31 replyApplied
8/8ipv4: start using dst_dev_rcu()net/ipv4/icmp.c net/ipv4/ip_fragment.c net/ipv4/ipmr.c +1 more+12 -101 replyApplied

Reviews trailers per patch

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

PatchDavid Ahern
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

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 net-next 0/8] net: add rcu safety to dst->dev

Followup of commit 88fe14253e18 ("net: dst: add four helpers to annotate data-races around dst->dev").

Use lockdep enabled helpers to convert our unsafe dst->dev uses one at a time.

More to come...

Eric Dumazet (8):
net: dst: introduce dst->dev_rcu
ipv6: start using dst_dev_rcu()
ipv6: use RCU in ip6_xmit()
ipv6: use RCU in ip6_output()
net: use dst_dev_rcu() in sk_setup_caps()
tcp_metrics: use dst_dev_net_rcu()
tcp: use dst_dev_rcu() in tcp_fastopen_active_disable_ofo_check()
ipv4: start using dst_dev_rcu()

 include/net/dst.h       | 16 +++++++----
 include/net/ip.h        |  6 ++--
 include/net/ip6_route.h |  2 +-
 include/net/route.h     |  2 +-
 net/core/dst.c          |  2 +-
 net/core/sock.c         | 16 +++++++----
 net/ipv4/icmp.c         |  6 ++--
 net/ipv4/ip_fragment.c  |  6 ++--
 net/ipv4/ipmr.c         |  6 ++--
 net/ipv4/route.c        |  8 +++---
 net/ipv4/tcp_fastopen.c |  7 +++--
 net/ipv4/tcp_metrics.c  |  6 ++--
 net/ipv6/anycast.c      |  2 +-
 net/ipv6/icmp.c         |  6 ++--
 net/ipv6/ip6_output.c   | 64 +++++++++++++++++++++++------------------
 net/ipv6/mcast.c        |  2 +-
 net/ipv6/ndisc.c        |  2 +-
 net/ipv6/output_core.c  |  8 ++++--
 net/ipv6/route.c        |  7 ++---
 19 files changed, 99 insertions(+), 75 deletions(-)
Signature · 1 line
2.51.0.318.gd7df087d1a-goog