Skip to content

u64_stats: Introduce u64_stats_copy()

David Yang bridge lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4u64_stats: Introduce u64_stats_copy()include/linux/u64_stats_sync.h+15 -04 replies
2/4net: bridge: mcast: fix memcpy with u64_statsnet/bridge/br_multicast.c+1 -10 replies
3/4macsec: fix memcpy with u64_statsdrivers/net/macsec.c+3 -30 replies
4/4vxlan: vnifilter: fix memcpy with u64_statsdrivers/net/vxlan/vxlan_vnifilter.c+1 -10 replies

Reviews trailers per patch

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

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

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/4] u64_stats: Introduce u64_stats_copy()

On 64bit arches, struct u64_stats_sync is empty and provides no help against load/store tearing. memcpy() should not be considered atomic against u64 values. Use u64_stats_copy() instead.

David Yang (4):
u64_stats: Introduce u64_stats_copy()
net: bridge: mcast: fix memcpy with u64_stats
macsec: fix memcpy with u64_stats
vxlan: vnifilter: fix memcpy with u64_stats

 drivers/net/macsec.c                |  6 +++---
 drivers/net/vxlan/vxlan_vnifilter.c |  2 +-
 include/linux/u64_stats_sync.h      | 15 +++++++++++++++
 net/bridge/br_multicast.c           |  2 +-
 4 files changed, 20 insertions(+), 5 deletions(-)
Signature · 1 line
2.51.0