HomeFreeBSD

bridge: do not allow a bridge SVI in a bridge

Description

bridge: do not allow a bridge SVI in a bridge

Disallow this:

ifconfig bridge0 create
ifconfig bridge0.1 create
ifconfig bridge0 addm bridge0.1

Also disallow this:

ifconfig vlan1 create
ifconfig bridge0 create
ifconfig bridge0 addm vlan1
ifconfig vlan1 vlan 1 vlandev bridge0

Firstly, this panics due to trying to take BRIDGE_LOCK recursively.
Secondly, even if it worked, it could cause packet forwarding loops.

Reviewed by: des
Differential Revision: https://reviews.freebsd.org/D51310

Details

Provenance
ivyAuthored on Jul 28 2025, 5:38 PM
Reviewer
des
Differential Revision
D51310: bridge: do not allow a bridge SVI in a bridge
Parents
rG4d281507f5f1: bridge: be consistent about PVID terminology
Branches
Unknown
Tags
Unknown