Kernel panic and boot loop when setting a vlan's parent to itself

Started by arnog, April 19, 2023, 10:08:39 PM

Previous topic - Next topic
Hi all,

during a lab session my students created a new VLAN with parent set to LAN. Then they modified the VLAN settings and chose the VLAN itself as the VLAN's parent. When clicking "Apply" OPNsense crashes immediately with a kernel panic and reboots after some time.

Since the configuration has been saved, OPNsense now crashes on each subsequent reboot causing a boot loop and making OPNsense unusable. I had to boot into single user mode and replace the configuration with a known good one to be able to get it back up and running.

This is on a Deciso DEC2685 running OPNsense 23.1.5_2-amd64.

Thanks
Arno

P.S.: I know that this setting doesn't make sense and probably not a lot of people tried that before, but since my students ran into it, it makes sense to me to report this issue.

Please open an issue on github.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)


Thanks, fix is https://github.com/opnsense/core/commit/e9dc6875532f

# opnsense-patch e9dc6875532f

Too late for today's 23.1.6 but will be in 23.1.7.


Cheers,
Franco

Thanks
Cristian

Hello,
I have install the patch but I optain the same result (crasch).
Ihave to do any other operation for fix it.
Thanks
Cristian

But why make it crash in the first place after someone reported (for the first time) that it would do so?


Cheers,
Franco