🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by memoriaru Thu, 22 Oct 2026 20:04
[PATCH net 0/2] net: dsa: mxl862xx: bound FDB dump walk and reject bridge_id 0
#6596
Author: memoriaru
Date: Thu, 22 Oct 2026 20:04
34 lines
10331 bytes
From: Zhang Hewei <memoriaru@foxmail.com>

Hi,

Two robustness fixes for the mxl862xx DSA driver, both hardening the
driver against unvalidated device-controlled responses:

Patch 1 bounds the MAC table walk in mxl862xx_port_fdb_dump() by a
conservative upper bound. The loop currently exits only on the
device-driven "last" flag, so a device (or its firmware) that stops
setting it keeps the driver looping forever with RTNL held.

Patch 2 rejects bridge_id == 0 in the BRIDGE_ALLOC response. The API
header documents id 0 as unused; accepting it verbatim collides with
MXL862XX_DEFAULT_BRIDGE (the CPU port) and merges the port's filtering
domain with the CPU port's.

Both were found while auditing the driver's handling of
device-controlled state; thanks to Daniel Golle, Andrew Lunn and Johan
Hovold for the discussion that steered these towards a plain
robustness fix.

Base-commit: f47d223627f80cb7a1eb14c585fe6cb35de5e984 (mainline)

Zhang Hewei (2):
  net: dsa: mxl862xx: bound FDB dump walk by table capacity
  net: dsa: mxl862xx: reject bridge_id 0 from BRIDGE_ALLOC

 drivers/net/dsa/mxl862xx/mxl862xx.c | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

-- 
2.39.5 (Apple Git-154)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads