Skip to content

net: add data-race annotations around dst fields

Eric Dumazet netdev 2 versions – 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 · linked by author and title

  1. v2 Latest10 patches 0 repliesApplied 10/10
  2. v110 patches 10 repliesSuperseded

Patches in v2 All 10 applied

#Subject and filesSizeRepliesApplied
1/10net: dst: annotate data-races around dst->obsoleteinclude/net/dst.h net/core/dst.c net/core/dst_cache.c +9 more+25 -240 repliesApplied
2/10net: dst: annotate data-races around dst->expiresinclude/net/dst.h include/net/ip.h net/ipv4/route.c +1 more+16 -140 repliesApplied
3/10net: dst: annotate data-races around dst->lastuseinclude/net/dst.h net/core/rtnetlink.c net/ipv6/route.c+7 -40 repliesApplied
4/10net: dst: annotate data-races around dst->inputinclude/net/dst.h include/net/lwtunnel.h net/core/dst.c +1 more+5 -50 repliesApplied
5/10net: dst: annotate data-races around dst->outputinclude/net/dst.h include/net/lwtunnel.h net/core/dst.c +1 more+5 -50 repliesApplied
6/10net: dst: add four helpers to annotate data-races around dst->devinclude/net/dst.h net/core/dst.c net/core/sock.c+26 -60 repliesApplied
7/10ipv4: adopt dst_dev, skb_dst_dev and skb_dst_dev_net[_rcu]include/net/inet_hashtables.h include/net/ip.h include/net/route.h +11 more+43 -380 repliesApplied
8/10ipv6: adopt dst_dev() helperinclude/net/ip6_route.h net/ipv6/exthdrs.c net/ipv6/icmp.c +14 more+60 -470 repliesApplied
9/10ipv6: adopt skb_dst_dev() and skb_dst_dev_net[_rcu]() helpersinclude/net/inet6_hashtables.h include/net/ip6_tunnel.h net/ipv6/exthdrs.c +13 more+41 -370 repliesApplied
10/10ipv6: ip6_mc_input() and ip6_mr_input() cleanupsnet/ipv6/ip6_input.c net/ipv6/ip6mr.c+15 -230 repliesApplied

Reviews trailers per patch

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

PatchKuniyuki Iwashima
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10R-b

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

Read the v2 thread

Cover letter [PATCH v2 net-next 00/10] net: add data-race annotations around dst fields

Add annotations around various dst fields, which can change under us.

Add four helpers to prepare better dst->dev protection, and start using them. More to come later.

v2: fix one typo (Reported-by: kernel test robot <[email protected]>)
v1: https://lore.kernel.org/netdev/[email protected]/

Eric Dumazet (10):
net: dst: annotate data-races around dst->obsolete
net: dst: annotate data-races around dst->expires
net: dst: annotate data-races around dst->lastuse
net: dst: annotate data-races around dst->input
net: dst: annotate data-races around dst->output
net: dst: add four helpers to annotate data-races around dst->dev
ipv4: adopt dst_dev, skb_dst_dev and skb_dst_dev_net[_rcu]
ipv6: adopt dst_dev() helper
ipv6: adopt skb_dst_dev() and skb_dst_dev_net[_rcu]() helpers
ipv6: ip6_mc_input() and ip6_mr_input() cleanups

 include/net/dst.h                   | 38 +++++++++++++++++-----
 include/net/inet6_hashtables.h      |  2 +-
 include/net/inet_hashtables.h       |  2 +-
 include/net/ip.h                    | 13 ++++----
 include/net/ip6_route.h             |  4 +--
 include/net/ip6_tunnel.h            |  2 +-
 include/net/lwtunnel.h              |  8 ++---
 include/net/route.h                 |  2 +-
 net/core/dst.c                      | 10 +++---
 net/core/dst_cache.c                |  2 +-
 net/core/neighbour.c                |  3 +-
 net/core/rtnetlink.c                |  4 ++-
 net/core/sock.c                     | 12 +++----
 net/ipv4/datagram.c                 |  2 +-
 net/ipv4/icmp.c                     | 24 +++++++-------
 net/ipv4/igmp.c                     |  2 +-
 net/ipv4/ip_fragment.c              |  2 +-
 net/ipv4/ip_output.c                |  6 ++--
 net/ipv4/ip_vti.c                   |  4 +--
 net/ipv4/netfilter.c                |  4 +--
 net/ipv4/route.c                    | 34 ++++++++++----------
 net/ipv4/tcp_fastopen.c             |  4 ++-
 net/ipv4/tcp_ipv4.c                 |  2 +-
 net/ipv4/tcp_metrics.c              |  8 ++---
 net/ipv4/xfrm4_output.c             |  2 +-
 net/ipv6/datagram.c                 |  2 +-
 net/ipv6/exthdrs.c                  | 10 +++---
 net/ipv6/icmp.c                     |  4 ++-
 net/ipv6/ila/ila_lwt.c              |  2 +-
 net/ipv6/ioam6.c                    | 17 +++++-----
 net/ipv6/ioam6_iptunnel.c           |  4 +--
 net/ipv6/ip6_gre.c                  |  8 +++--
 net/ipv6/ip6_input.c                | 33 +++++++++----------
 net/ipv6/ip6_output.c               | 24 +++++++-------
 net/ipv6/ip6_tunnel.c               |  6 ++--
 net/ipv6/ip6_udp_tunnel.c           |  2 +-
 net/ipv6/ip6_vti.c                  |  4 +--
 net/ipv6/ip6mr.c                    |  9 +++---
 net/ipv6/ndisc.c                    |  6 ++--
 net/ipv6/netfilter.c                |  4 +--
 net/ipv6/netfilter/nf_dup_ipv6.c    |  2 +-
 net/ipv6/netfilter/nf_reject_ipv6.c |  2 +-
 net/ipv6/output_core.c              |  4 +--
 net/ipv6/reassembly.c               | 10 +++---
 net/ipv6/route.c                    | 49 +++++++++++++++--------------
 net/ipv6/rpl_iptunnel.c             |  4 +--
 net/ipv6/seg6_iptunnel.c            | 26 ++++++++-------
 net/ipv6/seg6_local.c               |  2 +-
 net/ipv6/tcp_ipv6.c                 |  4 +--
 net/ipv6/xfrm6_output.c             |  2 +-
 net/netfilter/ipvs/ip_vs_xmit.c     |  2 +-
 net/sctp/transport.c                |  2 +-
 net/xfrm/xfrm_policy.c              |  4 +--
 53 files changed, 242 insertions(+), 202 deletions(-)
Signature · 1 line
2.50.0.727.gbf7dc18ff4-goog