bridge: mcast: Fix MDB exhaustion by rejected entries
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: Delete empty MDB entry when port group creation failsnet/ net/ net/ | +23 | 0 replies | Applied |
| 2/2 | selftests: forwarding: bridge_mdb_max: Add a test for rejected MDB entriestools/ | +138 | 0 replies | Applied |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Nikolay Aleksandrov | Gabriel Goller |
|---|---|---|
| Series | T-b R-b | |
| 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 MDB exhaustion by rejected entries
When the bridge fails to create a port group for a new MDB entry, the entry is left behind with no ports and is never deleted, but it is still counted towards mcast_hash_max. Since the introduction of mcast_max_groups, a host behind a port that reached its maximum can use this to exhaust the MDB and disable multicast snooping.
Patch #1 fixes the problem by deleting the entry upon failure.
Patch #2 adds a selftest.
Ido Schimmel (2):
bridge: mcast: Delete empty MDB entry when port group creation fails
selftests: forwarding: bridge_mdb_max: Add a test for rejected MDB
entries
net/bridge/br_mdb.c | 16 +- net/bridge/br_multicast.c | 9 ++ net/bridge/br_private.h | 1 + .../net/forwarding/bridge_mdb_max.sh | 138 ++++++++++++++++++ 4 files changed, 161 insertions(+), 3 deletions(-)
Signature · 1 line
2.56.0