bridge: mcast: Fix a possible use-after-free when removing a bridge port
Status from this message: This series was applied to netdev/net.git (main)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | bridge: mcast: Fix a possible use-after-free when removing a bridge portnet/ | +17 | 1 reply | Applied |
| 2/2 | selftests: bridge_vlan_mcast: Test toggling of multicast snoopingtools/ | +29 | 0 replies | Applied |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Nikolay Aleksandrov |
|---|---|
| 1/2 | A-b |
| 2/2 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net 0/2] bridge: mcast: Fix a possible use-after-free when removing a bridge port
Patch #1 fixes a possible use-after-free when removing a bridge port.
Patch #2 adds a test case that triggers the problem.
In net-next we can:
1. Add DEBUG_NET_WARN_ON_ONCE() when a port multicast context is de-initialized while enabled.
2. When de-initializing a port multicast context, synchronously shutdown all the timers that were initialized when the context was initialized.
Ido Schimmel (2):
bridge: mcast: Fix a possible use-after-free when removing a bridge
port
selftests: bridge_vlan_mcast: Test toggling of multicast snooping
net/bridge/br_multicast.c | 22 ++++++++++---- .../net/forwarding/bridge_vlan_mcast.sh | 30 ++++++++++++++++++- 2 files changed, 46 insertions(+), 6 deletions(-)
Signature · 1 line
2.54.0