OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: arnog on April 19, 2023, 10:08:39 PM

Title: Kernel panic and boot loop when setting a vlan's parent to itself
Post by: arnog on April 19, 2023, 10:08:39 PM
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.
Title: Re: Kernel panic and boot loop when setting a vlan's parent to itself
Post by: Patrick M. Hausen on April 19, 2023, 10:18:21 PM
Please open an issue on github.
Title: Re: Kernel panic and boot loop when setting a vlan's parent to itself
Post by: arnog on April 19, 2023, 10:30:34 PM
Done.
Title: Re: Kernel panic and boot loop when setting a vlan's parent to itself
Post by: franco on April 20, 2023, 09:55:10 AM
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
Title: Re: Kernel panic and boot loop when setting a vlan's parent to itself
Post by: Cristian on April 21, 2023, 11:36:10 AM
Thanks
Cristian
Title: Re: Kernel panic and boot loop when setting a vlan's parent to itself
Post by: Cristian on April 21, 2023, 11:47:55 AM
Hello,
I have install the patch but I optain the same result (crasch).
Ihave to do any other operation for fix it.
Thanks
Cristian
Title: Re: Kernel panic and boot loop when setting a vlan's parent to itself
Post by: franco on April 21, 2023, 02:56:00 PM
But why make it crash in the first place after someone reported (for the first time) that it would do so?


Cheers,
Franco