Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    pfSense Kernel Panic: privileged instruction fault

    Virtualization
    3
    6
    107
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gyrex last edited by

      Hi guys,

      I keep getting somewhat random and sporadic kernel panics on my pfSense install and I'm hoping someone might be able to help.

      Intel N5105 CPU with 16GB of RAM
      Running pfSense in a Proxmox v7.3-6 VM (Kernel: Linux 5.19.17-2-pve) - used the instructions here: https://docs.netgate.com/pfsense/en/latest/recipes/virtualize-proxmox-ve.html

      Should I log a bug for this?

      Full debugging output too long for this forum so I've copied and pasted it here: https://pastebin.com/zPvu6iRu

      More relevent excerpt below:

      <6>pid 43009 (ntopng), jid 0, uid 0: exited on signal 11 (core dumped)
      <6>vtnet1: promiscuous mode disabled
      <6>arp: 10.11.12.127 moved from 02:01:a6:4a:c9:69 to 12:01:a6:4a:c9:69 on vtnet1
      <6>arp: 10.11.12.127 moved from 02:01:a6:4a:c9:69 to 12:01:a6:4a:c9:69 on vtnet1
      kernel trap 1 with interrupts disabled
      
      
      Fatal trap 1: privileged instruction fault while in kernel mode
      cpuid = 0; apic id = 00
      instruction pointer	= 0x20:0xffffffff8135ad41
      stack pointer	        = 0x28:0xfffffe002599aae8
      frame pointer	        = 0x28:0xfffffe002599ab70
      code segment		= base 0x0, limit 0xfffff, type 0x1b
      			= DPL 0, pres 1, long 1, def32 0, gran 1
      processor eflags	= resume, IOPL = 0
      current process		= 11 (idle: cpu0)
      trap number		= 1
      panic: privileged instruction fault
      cpuid = 0
      time = 1677918884
      KDB: enter: panic
      �������������������������������������������panic.txt�������������������������������������������������������������������������������������������0600����0�������0�������34����������14400601244�  7130� �����������������������������������������������������������������������������������������������������ustar���root����������������������������wheel������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������privileged instruction fault����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������version.txt�����������������������������������������������������������������������������������������0600����0�������0�������75����������14400601244�  7530� �����������������������������������������������������������������������������������������������������ustar���root����������������������������wheel������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������FreeBSD 12.3-STABLE RELENG_2_6_0-n226742-1285d6d205f pfSense
      �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������	
      
      1 Reply Last reply Reply Quote 0
      • jimp
        jimp Rebel Alliance Developer Netgate last edited by

        We'll need to see the full crash dump to say anything for certain. I tried loading the pastebin link but it says "Error, this is a private paste or is pending moderation. If this paste belongs to you, please login to Pastebin to view it."

        That said, your CPU appears to be a Jasper Lake CPU which has a known issue with Proxmox VE currently.

        https://forum.netgate.com/topic/176957/pfsense-kernel-panic/3

        https://forum.netgate.com/topic/177570/pfsense-crash-under-proxmox-7-3

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        G 1 Reply Last reply Reply Quote 1
        • Moved from General pfSense Questions by  jimp jimp 
        • G
          gyrex @jimp last edited by

          @jimp Thanks for your response. The pastebin is unlisted (not private) and it appears that it's requiring moderation, not sure why.

          I've uploaded a zip file of the kernel dump to this message.KernelDumpInfo.zip

          jimp 1 Reply Last reply Reply Quote 0
          • jimp
            jimp Rebel Alliance Developer Netgate @gyrex last edited by

            @gyrex said in pfSense Kernel Panic: privileged instruction fault:

            @jimp Thanks for your response. The pastebin is unlisted (not private) and it appears that it's requiring moderation, not sure why.

            I've uploaded a zip file of the kernel dump to this message.KernelDumpInfo.zip

            The crash doesn't look familiar and is pretty deep in an area unlikely to crash from software, so I'm inclined to think it's the known Jasper Lake Proxmox VE issue and not a problem with pfSense software itself. There are potential workarounds in the threads I linked, mostly involving loading a different kernel into the Proxmox host.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            G 1 Reply Last reply Reply Quote 1
            • G
              gyrex @jimp last edited by gyrex

              @jimp Apologies, I must have overlooked the links you provided. I'll have a good look over those. I know there's been a lot of issues with the Jasper Lake architecture with some older linux kernels, especially in relation to virtualised environments so I wouldn't be surprised to hear if that's the issue.

              I may change the CPU passthrough from host to virtual and see if this helps and I'll have a good look over those threads too.

              Thanks for your help!

              Edit: I see the proxmox thread is listed in both those links. I was a heavy participant in that thread and one of the first people to notice this issue with the N5105/Jasper Lake CPU and it appears as though it's reared its head again. I can see there's been additional discussion in that thread and a potential fix with some Intel microcode. I'll keep hunting around and if I find a fix, I'll post the solution here.

              1 Reply Last reply Reply Quote 0
              • V
                Viper_Rus last edited by

                I also had such problems with an Intel N5105 minipc if pfsense was running on proxmox. On my other minipc or on Intel N5105 without proxmox (installed pfSense natively) there were no such problems.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post