Netdev List
 help / color / mirror / Atom feed
* [PATCH net 0/2] bridge: mcast: Fix MDB exhaustion by rejected entries
@ 2026-10-16 10:14 Ido Schimmel
  2026-10-16 10:14 ` [PATCH net 1/2] bridge: mcast: Delete empty MDB entry when port group creation fails Ido Schimmel
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ido Schimmel @ 2026-10-16 10:14 UTC (permalink / raw)
  To: netdev, bridge
  Cc: davem, kuba, pabeni, edumazet, razor, horms, petrm, yunlong_ma,
	Ido Schimmel

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(-)

-- 
2.56.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-10-16 15:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-16 10:14 [PATCH net 0/2] bridge: mcast: Fix MDB exhaustion by rejected entries Ido Schimmel
2026-10-16 10:14 ` [PATCH net 1/2] bridge: mcast: Delete empty MDB entry when port group creation fails Ido Schimmel
2026-10-16 10:14 ` [PATCH net 2/2] selftests: forwarding: bridge_mdb_max: Add a test for rejected MDB entries Ido Schimmel
2026-10-16 15:51 ` [PATCH net 0/2] bridge: mcast: Fix MDB exhaustion by rejected entries Gabriel Goller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox