Skip to content

net: bonding: Apply several bug fixes

Kevin Berry stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7Revert "net: bonding: fix use-after-free in bond_xmit_broadcast()"drivers/net/bonding/bond_main.c+4 -80 replies
2/7net: bonding: add broadcast_neighbor option for 802.3adDocumentation/networking/bonding.rst drivers/net/bonding/bond_main.c drivers/net/bonding/bond_options.c +2 more+112 -60 replies
3/7bonding: add support for per-port LACP actor priorityDocumentation/networking/bonding.rst drivers/net/bonding/bond_3ad.c drivers/net/bonding/bond_netlink.c +4 more+68 -00 replies
4/7bonding: print churn state via netlinkdrivers/net/bonding/bond_netlink.c include/uapi/linux/if_link.h+11 -00 replies
5/7bonding: 3ad: implement proper RCU rules for port->aggregatordrivers/net/bonding/bond_3ad.c drivers/net/bonding/bond_main.c drivers/net/bonding/bond_netlink.c +3 more+89 -660 replies
6/7net: bonding: fix use-after-free in bond_xmit_broadcast()drivers/net/bonding/bond_main.c+1 -10 replies
7/7bonding: fix NULL pointer dereference in actor_port_prio settingdrivers/net/bonding/bond_options.c+1 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 6.12 0/7] net: bonding: Apply several bug fixes

This series applies three bug fixes:

2884bf72fb8f ("net: bonding: fix use-after-free in bond_xmit_broadcast()") c4f050ce06c5 ("bonding: 3ad: implement proper RCU rules for port->aggregator") 067bf016e99a ("bonding: fix NULL pointer dereference in actor_port_prio setting")

These have already been applied to the 6.1 and 6.6 stable trees, but the data race fix c4f050ce06c5 ("bonding: 3ad: implement proper RCU rules for port->aggregator") was omitted for 6.12 because it has a dependency which conflicts with the version of 2884bf72fb8f ("net:
bonding: fix use-after-free in bond_xmit_broadcast()") that was applied to 6.12. This series reverts the conflicting version of the UAF fix, applies the required series for c4f050ce06c5, and then applies the simpler, original version of the UAF fix that was applied to the other stable trees.

It is also necessary to take 067bf016e99a ("bonding: fix NULL pointer dereference in actor_port_prio setting") since it fixes a bug introduced in 6b6dc81ee7e8 ("bonding: add support for per-port LACP actor priority"), one of the stable deps of c4f050ce06c5 ("bonding: 3ad:
implement proper RCU rules for port->aggregator").

Tested by compiling.

Eric Dumazet (1):
bonding: 3ad: implement proper RCU rules for port->aggregator

Hangbin Liu (3):
bonding: add support for per-port LACP actor priority
bonding: print churn state via netlink
bonding: fix NULL pointer dereference in actor_port_prio setting

Kevin Berry (1):
Revert "net: bonding: fix use-after-free in bond_xmit_broadcast()"

Tonghao Zhang (1):
net: bonding: add broadcast_neighbor option for 802.3ad

Xiang Mei (1):
net: bonding: fix use-after-free in bond_xmit_broadcast()

 Documentation/networking/bonding.rst   |  15 ++++
 drivers/net/bonding/bond_3ad.c         | 113 ++++++++++++++-----------
 drivers/net/bonding/bond_main.c        |  66 +++++++++++++--
 drivers/net/bonding/bond_netlink.c     |  37 +++++++-
 drivers/net/bonding/bond_options.c     |  71 ++++++++++++++++
 drivers/net/bonding/bond_procfs.c      |   3 +-
 drivers/net/bonding/bond_sysfs_slave.c |  17 ++--
 include/net/bond_3ad.h                 |   3 +-
 include/net/bond_options.h             |   2 +
 include/net/bonding.h                  |   3 +
 include/uapi/linux/if_link.h           |   3 +
 11 files changed, 265 insertions(+), 68 deletions(-)

base-commit: 1d3a00d3bacff25652c96e1527610c69e91f7c38

Signature · 1 line
2.54.0.1136.gdb2ca164c4-goog