FreeBSD 13-STABLE - Bridge issues and Kernel panic.

From: Santiago Martinez <sm_at_codenetworks.net>
Date: Wed, 29 Jun 2022 13:37:38 UTC
Hi everyone, hope you are doing well..

I been noticing some instabilities with the bridge on 13-STABLE (not 
sure when it started).

Environment is as following:

- kernel:FreeBSD tucho 13.1-STABLE FreeBSD 13.1-STABLE #21 
stable/13-n251571-2ff5f3e7d159:
- bridge0 members : igb0 and vtnet0.1 ( jail with vnet).
- bridge0 no STP/RSTP
- igb0 connect to FBSD based router.
- No PF nor IPFW.

Symptoms:

Bridging: sometimes bridging works as expected, can ping attached router 
on igb0.

Bridging: randomly stop doing any switching. traffic still can be seen 
with tcpdump.

kernel panic: if bridge is delete, got a kernel panic.

The following commands are sufficient to panic the system.

ifconfig bridge create name test
ifconfig test up
ifconfig test addm igb0 addm vnet0.1
ifconfig test stp igb0
ifconfig test 192.168.3.100/24
ping -c4 192.168.3.1
ifconfig test destroy

Still cannot save the panic as the machine reboots and there is not core 
and crash files..

Any recommendations on how to catch it are welcome..

Santi