net: bridge: fix two MST bugs
Status from this message: This series was applied to netdev/net.git (main)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 2 repliesApplied 2/2
- v12 patches 5 repliesSuperseded
Patches in v2 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | net: bridge: fix use-after-free due to MST port state bypassnet/ net/ net/ | +8 | 1 reply | Applied |
| 2/2 | net: bridge: fix MST static key usagenet/ net/ net/ | +14 | 1 reply | Applied |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Ido Schimmel |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net v2 0/2] net: bridge: fix two MST bugs
Hi,
Patch 01 fixes a race condition that exists between expired fdb deletion and port deletion when MST is enabled. Learning can happen after the port's state has been changed to disabled which could lead to that port's memory being used after it's been freed. The issue was reported by syzbot, more information in patch 01. Patch 02 fixes an issue with MST's static key which Ido spotted, we can have multiple bridges with MST and a single bridge can erroneously disable it for all.
v2: dropped the selftest as it is useless with the new fix
patch 01 - new fix approach relying on port's vlan group patch 02 - new patch fixing an issue with MST's static key
Thanks,
Nik
Nikolay Aleksandrov (2):
net: bridge: fix use-after-free due to MST port state bypass
net: bridge: fix MST static key usage
net/bridge/br_forward.c | 2 +- net/bridge/br_if.c | 1 + net/bridge/br_input.c | 4 ++-- net/bridge/br_mst.c | 10 ++++++++-- net/bridge/br_private.h | 13 ++++++++++--- 5 files changed, 22 insertions(+), 8 deletions(-)
Signature · 1 line
2.51.0