Skip to content

bridge: mcast: Fix MDB exhaustion by rejected entries

Ido Schimmel bridge netdev 1 version Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2bridge: mcast: Delete empty MDB entry when port group creation failsnet/bridge/br_mdb.c net/bridge/br_multicast.c net/bridge/br_private.h+23 -30 repliesApplied
2/2selftests: forwarding: bridge_mdb_max: Add a test for rejected MDB entriestools/testing/selftests/net/forwarding/bridge_mdb_max.sh+138 -00 repliesApplied

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.

PatchNikolay AleksandrovGabriel Goller
SeriesT-b R-b
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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