net: bridge: take care of p->flags accesses
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
- v3 Latest5 patches 1 replyApplied 5/5
- v25 patches 8 repliesSuperseded
- v15 patches 4 repliesSuperseded
Patches in v3 All 5 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | bridge: use atomic ops to read/change p->flags in sysfsnet/ | +32 | 0 replies | Applied |
| 2/5 | bridge: use atomic ops to read/change p->flags in br_netlink.cnet/ | +51 | 1 reply | Applied |
| 3/5 | net: bridge: use atomic ops to read/change p->flags (I)net/ net/ net/ | +16 | 0 replies | Applied |
| 4/5 | net: bridge: use atomic ops to read/change p->flags (II)net/ net/ net/ +1 more | +21 | 0 replies | Applied |
| 5/5 | net: bridge: use atomic ops to read/change p->flags (III)net/ net/ net/ +3 more | +12 | 0 replies | Applied |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by.
| Patch | Nikolay Aleksandrov |
|---|---|
| 1/5 | A-b |
| 2/5 | A-b |
| 3/5 | A-b |
| 4/5 | A-b |
| 5/5 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 net-next 0/5] net: bridge: take care of p->flags accesses
(struct net_bridge_port)->flags can be read/written locklessly, and thus can fire KCSAN warnings, or real bugs.
Prefer atomic operations (test_bit(), clear_bit(), set_bit()) and use READ_ONCE() for the remaining uses.
v3: addressed Sashiko's feddback on patch 2.
v2: addressed Nikolay's feedback on patches 3 & 4.
Eric Dumazet (5):
bridge: use atomic ops to read/change p->flags in sysfs
bridge: use atomic ops to read/change p->flags in br_netlink.c
net: bridge: use atomic ops to read/change p->flags (I)
net: bridge: use atomic ops to read/change p->flags (II)
net: bridge: use atomic ops to read/change p->flags (III)
net/bridge/br_arp_nd_proxy.c | 22 +++------ net/bridge/br_fdb.c | 2 +- net/bridge/br_forward.c | 15 +++--- net/bridge/br_if.c | 2 +- net/bridge/br_input.c | 12 ++--- net/bridge/br_mrp.c | 20 ++++---- net/bridge/br_mrp_netlink.c | 8 ++-- net/bridge/br_multicast.c | 5 +- net/bridge/br_netlink.c | 93 ++++++++++++++++++++---------------- net/bridge/br_stp.c | 4 +- net/bridge/br_stp_bpdu.c | 2 +- net/bridge/br_switchdev.c | 8 ++-- net/bridge/br_sysfs_if.c | 60 ++++++++++++----------- net/bridge/br_vlan_options.c | 2 +- 14 files changed, 132 insertions(+), 123 deletions(-)
Signature · 1 line
2.54.0.1136.gdb2ca164c4-goog