[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260123162159.2877941-1-mmyangfl@gmail.com>
Date: Sat, 24 Jan 2026 00:21:32 +0800
From: David Yang <mmyangfl@...il.com>
To: netdev@...r.kernel.org
Cc: David Yang <mmyangfl@...il.com>,
Sabrina Dubroca <sd@...asysnail.net>,
Andrew Lunn <andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Nikolay Aleksandrov <razor@...ckwall.org>,
Ido Schimmel <idosch@...dia.com>,
Simon Horman <horms@...nel.org>,
Aaron Conole <aconole@...hat.com>,
Eelco Chaudron <echaudro@...hat.com>,
Ilya Maximets <i.maximets@....org>,
Shigeru Yoshida <syoshida@...hat.com>,
Stanislav Fomichev <sdf@...ichev.me>,
Breno Leitao <leitao@...ian.org>,
Carolina Jubran <cjubran@...dia.com>,
Kuniyuki Iwashima <kuniyu@...gle.com>,
Guillaume Nault <gnault@...hat.com>,
linux-kernel@...r.kernel.org,
bridge@...ts.linux.dev,
dev@...nvswitch.org
Subject: [PATCH net-next v2 0/7] u64_stats: Introduce u64_stats_reads()
On 64bit arches, struct u64_stats_sync is empty and provides no help
against load/store tearing. memcpy() and struct copying should not be
considered tear-free. Use u64_stats_reads() instead.
v1: https://lore.kernel.org/r/20260120092137.2161162-1-mmyangfl@gmail.com
- rename to u64_stats_reads() to clarify data flow direction
- refine the implementation
- add docs
- fix struct copying too
David Yang (7):
u64_stats: Introduce u64_stats_reads()
u64_stats: Doc incorrect usage with plain variables
net: bridge: mcast: fix memcpy with u64_stats
net: openvswitch: fix load tearing with u64_stats
macsec: fix memcpy with u64_stats
mpls: Fix load tearing 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 | 56 ++++++++++++++++++++++++-----
net/bridge/br_multicast.c | 2 +-
net/mpls/af_mpls.c | 2 +-
net/openvswitch/datapath.c | 3 +-
6 files changed, 55 insertions(+), 16 deletions(-)
--
2.51.0
Powered by blists - more mailing lists