[Bug 265998] Fatal trap 12: page fault while in kernel mode

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 23 Aug 2022 07:28:28 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265998

            Bug ID: 265998
           Summary: Fatal trap 12: page fault while in kernel mode
           Product: Base System
           Version: 13.1-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: budijanto@studiokaraoke.co.id

Hi,

# uname -a
FreeBSD SERVER 13.1-RELEASE-p1 FreeBSD 13.1-RELEASE-p1 GENERIC amd64

I use pf on ethernet rl0:

# pciconf -lv
re0@pci0:5:0:0: class=0x020000 rev=0x06 hdr=0x00 vendor=0x1186 device=0x4300
subvendor=0x1186 subdevice=0x4b10
    vendor     = 'D-Link System Inc'
    device     = 'DGE-528T Gigabit Ethernet Adapter'
    class      = network
    subclass   = ethernet

This snippet output from /var/log/message:
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.1-RELEASE-p1 GENERIC amd64
FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git
llvmorg-13.0.0-0-gd7b669b3a303)
VT(efifb): resolution 1024x768
CPU: 12th Gen Intel(R) Core(TM) i5-12400 (2496.00-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x90675  Family=0x6  Model=0x97  Stepping=5
 
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=0x7ffafbbf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
  AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
  AMD Features2=0x121<LAHF,ABM,Prefetch>
  Structured Extended
Features=0x239ca7eb<FSGSBASE,TSCADJ,BMI1,AVX2,FDPEXC,SMEP,BMI2,ERMS,INVPCID,NFPUSG,PQE,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,PROCTRACE,SHA>
  Structured Extended
Features2=0x98c007ac<UMIP,PKU,WAITPKG,GFNI,VAES,VPCLMULQDQ,RDPID,MOVDIRI,MOVDIR64B>
  Structured Extended
Features3=0xfc184410<FSRM,MD_CLEAR,IBT,IBPB,STIBP,L1DFL,ARCH_CAP,CORE_CAP,SSBD>
  XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
  IA32_ARCH_CAPS=0xd6b<RDCL_NO,IBRS_ALL,SKIP_L1DFL_VME,MDS_NO,TAA_NO>
  VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID,VID,PostIntr
  TSC: P-state invariant, performance statistics
real memory  = 34359738368 (32768 MB)
avail memory = 33072697344 (31540 MB)

---

Fatal trap 12: page fault while in kernel mode
cpuid = 6; apic id = 06
fault virtual address   = 0x40000000440
fault code              = supervisor read data, page not present
instruction pointer     = 0x20:0xffffffff80bf90ae
stack pointer           = 0x28:0xfffffe0142863e00
frame pointer           = 0x28:0xfffffe0142863e80
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         = 330 (pf purge)
trap number             = 12
panic: page fault
cpuid = 6
time = 1661231102
KDB: stack backtrace:
#0 0xffffffff80c694a5 at kdb_backtrace+0x65
#1 0xffffffff80c1bb5f at vpanic+0x17f
#2 0xffffffff80c1b9d3 at panic+0x43
#3 0xffffffff810afdf5 at trap_fatal+0x385
#4 0xffffffff810afe4f at trap_pfault+0x4f
#5 0xffffffff81087578 at calltrap+0x8
#6 0xffffffff8262bdcc at pf_purge_expired_src_nodes+0x12c
#7 0xffffffff8262ba3a at pf_purge_thread+0x16a
#8 0xffffffff80bd8a9e at fork_exit+0x7e
#9 0xffffffff810885ee at fork_trampoline+0xe
Uptime: 4h9m58s
Dumping 1720 out of 32508
MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91%---<<BOOT>>---



Thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.