1
24.7 Production Series / Re: Update to 24.7.2 results in kernel panic
« on: August 26, 2024, 10:08:41 pm »
Hello all, sorry I'm a bit late to the party. Had same error as OP. Read entire thread to help troubleshoot. Tried the "set hint.agp.0.disabled=1" and got unknown variable error. I'm running Opnsense on a Checkpoint 2200 (more than one to be exact) and all have had this issue. Neither of these have VGA capabilities. Also have one running on a Vsphere VM on a Dell R330 and has the same issue. Attached is the info I could pull when booting from a console as a "single user" and from troubleshooting on the Checkpoint.
Ultimate fix for me:
System is back up and so far is stable.
*UPDATE*
So, my VM did not go down, only the 2 CheckPoint Serial devices. So, it does only affect the devices that are serial only. Issue with my VM is a remote administration issue, something else to fix for me.....
Kernel panic and attempt to disable agp (I did try many different variations of this, not just the one below)
Single User boot and trying to discover what was using agp
Ultimate fix for me:
- Download new Serial image from website and install using ZFS (same as before)
- Restore configs and access router via SSH and web GUI
- Run opnsense-update -zkr 24.7.2 from shell
- Reboot and run update from web GUI
System is back up and so far is stable.
*UPDATE*
So, my VM did not go down, only the 2 CheckPoint Serial devices. So, it does only affect the devices that are serial only. Issue with my VM is a remote administration issue, something else to fix for me.....
Kernel panic and attempt to disable agp (I did try many different variations of this, not just the one below)
Code: [Select]
Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address = 0x0
fault code = supervisor read data, page not present
instruction pointer = 0x20:0xffffffff804d7de7
stack pointer = 0x28:0xfffffe007b1e3b20
frame pointer = 0x28:0xfffffe007b1e3b40
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 30 (zpool)
rdi: fffff800035d9400 rsi: 0000000000020005 rdx: 000000000000000b
rcx: fffff80003797900 r8: 0000000000000001 r9: 0000000000000000
rax: 0000000000000000 rbx: fffff800035d9400 rbp: fffffe007b1e3b40
r10: 0000000000000016 r11: fffff80005d7ec60 r12: 0000000000002000
r13: 0000000000020005 r14: fffff80003761900 r15: fffff80003761a00
trap number = 12
panic: page fault
cpuid = 0
time = 1724695959
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe007b1e3810
vpanic() at vpanic+0x131/frame 0xfffffe007b1e3940
panic() at panic+0x43/frame 0xfffffe007b1e39a0
trap_fatal() at trap_fatal+0x40b/frame 0xfffffe007b1e3a00
trap_pfault() at trap_pfault+0x46/frame 0xfffffe007b1e3a50
calltrap() at calltrap+0x8/frame 0xfffffe007b1e3a50
--- trap 0xc, rip = 0xffffffff804d7de7, rsp = 0xfffffe007b1e3b20, rbp = 0xfffffe007b1e3b40 ---
agp_close() at agp_close+0x57/frame 0xfffffe007b1e3b40
giant_close() at giant_close+0x68/frame 0xfffffe007b1e3b90
devfs_close() at devfs_close+0x4b3/frame 0xfffffe007b1e3c00
VOP_CLOSE_APV() at VOP_CLOSE_APV+0x1d/frame 0xfffffe007b1e3c20
vn_close1() at vn_close1+0x14c/frame 0xfffffe007b1e3c90
vn_closefile() at vn_closefile+0x3d/frame 0xfffffe007b1e3ce0
devfs_close_f() at devfs_close_f+0x2a/frame 0xfffffe007b1e3d10
_fdrop() at _fdrop+0x11/frame 0xfffffe007b1e3d30
closef() at closef+0x24a/frame 0xfffffe007b1e3dc0
closefp_impl() at closefp_impl+0x58/frame 0xfffffe007b1e3e00
amd64_syscall() at amd64_syscall+0x100/frame 0xfffffe007b1e3f30
fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe007b1e3f30
--- syscall (6, FreeBSD ELF64, close), rip = 0x2123944fb2ba, rsp = 0x2123994a4d88, rbp = 0x2123994a4da0 ---
KDB: enter: panic
[ thread pid 30 tid 100220 ]
Stopped at kdb_enter+0x33: movq $0,0xfd9962(%rip)
db> set hint.agp.0.disabled=1
Unknown variable
db>
Single User boot and trying to discover what was using agp
Code: [Select]
root@:/ # dmesg | grep agp
agp0: <Intel Pineview SVGA controller> on vgapci0
WARNING: Device "agp" is Giant locked and may be deleted before FreeBSD 15.0.
agp0: aperture size is 256M, detected 8188k stolen memory
agp0: <Intel Pineview SVGA controller> on vgapci0
WARNING: Device "agp" is Giant locked and may be deleted before FreeBSD 15.0.
agp0: aperture size is 256M, detected 8188k stolen memory
agp_close() at agp_close+0x57/frame 0xfffffe007b1efb40
agp0: <Intel Pineview SVGA controller> on vgapci0
WARNING: Device "agp" is Giant locked and may be deleted before FreeBSD 15.0.
agp0: aperture size is 256M, detected 8188k stolen memory