Stable kernel panic of FreeBSD 13.3 in wg kmod

Hello.
I got kernel panic while trying to use wireguard on my router.
Now it runs FreeBSD 13.3-STABLE stable/13-n257547-2a04785cafe5 (just upgraded).
A day before it was 13.2-STABLE, and it had the same problem.

sh:
# service wireguard onestart

[#] ifconfig wg create name wg0

[#] wg setconf wg0 /dev/stdin



Fatal trap 12: page fault while in kernel mode

cpuid = 1; apic id = 02

fault virtual address    = 0x0

fault code        = supervisor write data, page not present

instruction pointer    = 0x20:0xffffffff81b2402d

stack pointer            = 0x28:0xfffffe00ed8aba90

frame pointer            = 0x28:0xfffffe00ed8abaa0

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        = 1551 (wg)

trap number        = 12

panic: page fault

cpuid = 1

time = 1709514005

KDB: stack backtrace:

#0 0xffffffff80986185 at kdb_backtrace+0x65

#1 0xffffffff8093a242 at vpanic+0x152

#2 0xffffffff8093a0e3 at panic+0x43

#3 0xffffffff80ce29bd at trap_fatal+0x38d

#4 0xffffffff80ce2a0f at trap_pfault+0x4f

#5 0xffffffff80cbb898 at calltrap+0x8

#6 0xffffffff81b220eb at wg_ioctl+0x12cb

#7 0xffffffff80a5fc17 at ifioctl+0x957

#8 0xffffffff809a58f5 at kern_ioctl+0x255

#9 0xffffffff809a5634 at sys_ioctl+0x114

#10 0xffffffff80ce3290 at amd64_syscall+0x110

#11 0xffffffff80cbc1ab at fast_syscall_common+0xf8

Uptime: 12m43s

Automatic reboot in 15 seconds - press a key on the console to abort

Beginning of my dmesg:
Code:
Copyright (c) 1992-2021 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 13.3-STABLE stable/13-n257547-2a04785cafe5 KGB amd64
FreeBSD clang version 17.0.6 (https://github.com/llvm/llvm-project.git llvmorg-17.0.6-0-g6009708b4367)
CPU: Intel(R) Celeron(R) CPU 847 @ 1.10GHz (1097.57-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x206a7  Family=0x6  Model=0x2a  Stepping=7
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0xdbae3bf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,TSCDLT,XSAVE,OSXSAVE>
  AMD Features=0x28100800<SYSCALL,NX,RDTSCP,LM>
  AMD Features2=0x1<LAHF>
  XSAVE Features=0x1<XSAVEOPT>
  VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID
  TSC: P-state invariant, performance statistics
real memory  = 17179869184 (16384 MB)
avail memory = 16528457728 (15762 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <Shuttl Shuttle >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)

Any guidance on how to debug this issue?
Thank YOU.
 
Back
Top