OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 20.1 Legacy Series »
  • Reproducible kernel panic when config is changed
« previous next »
  • Print
Pages: [1]

Author Topic: Reproducible kernel panic when config is changed  (Read 1658 times)

dougmeredith

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Reproducible kernel panic when config is changed
« on: February 26, 2020, 07:31:43 pm »
I thought I was mere hours away from putting my first OPNsense instance into production, but things don't always work out that way. lol

* OPNsense 20.1.1-amd64
* All updates have been applied
* Hyper-V generation 2 VM
* VM host has mirrored disks and ECC RAM
* No problems with any other VMs on the same host

The file good.xml is a /conf/config.xml that works fine. bad.xml is the next iteration, with hardly any changes, that consistently causes a kernel panic. Kernel dump as attached.

I have no experience interpreting kernel dumps, but it seems very unlikely that this is a hardware problem. Any thoughts or advice appreciated.
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6404
  • Karma: 446
    • View Profile
Re: Reproducible kernel panic when config is changed
« Reply #1 on: February 26, 2020, 07:37:21 pm »
Do you have WireGuard installed?
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

dougmeredith

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: Reproducible kernel panic when config is changed
« Reply #2 on: February 26, 2020, 07:42:34 pm »
I have the wireguard and wireguard-go packages installed, but not the plugin.
Logged

dougmeredith

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: Reproducible kernel panic when config is changed
« Reply #3 on: February 26, 2020, 07:44:20 pm »
I had read of past issues with WireGuard, and at one point in my testing I uninstalled the packages, and was still getting the kernel panic. That was before I isolated the config change causing the problem, so I can't claim that that was reproducible.
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6404
  • Karma: 446
    • View Profile
Re: Reproducible kernel panic when config is changed
« Reply #4 on: February 26, 2020, 08:33:15 pm »
Either remove WireGuard or disable shared forwarding to fix the panics
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

dougmeredith

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: Reproducible kernel panic when config is changed
« Reply #5 on: February 26, 2020, 09:24:59 pm »
The help is much appreciated. Can you direct me to some information on the issue? I saw posts about kernel panic problems with WireGuard from several months ago, but had the impression that this had been resolved. Also, despite a web search,  I'm unclear what you mean by "shared forwarding".
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6404
  • Karma: 446
    • View Profile
Re: Reproducible kernel panic when config is changed
« Reply #6 on: February 26, 2020, 09:42:48 pm »
Firewall:Settings:Advanced .. shared forwarding. Try to disable
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

dougmeredith

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: Reproducible kernel panic when config is changed
« Reply #7 on: February 26, 2020, 10:06:47 pm »
I've just tested, and you are quite correct. Removing WireGuard stops the panics, as does disabling shared forwarding. For anyone else encountering this, the problem is described [here][https://github.com/opnsense/src/issues/52]. Thanks for your help!
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 20.1 Legacy Series »
  • Reproducible kernel panic when config is changed
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2