Re: Linux process causes kernel panic

From: Johannes Lundberg <johalun0_at_gmail.com>
Date: Fri, 3 Aug 2018 21:55:58 +0100
On Fri, Aug 3, 2018 at 9:43 PM Konstantin Belousov <kostikbel_at_gmail.com>
wrote:

> On Fri, Aug 03, 2018 at 09:26:08PM +0100, Johannes Lundberg wrote:
> > Hi
> >
> > After install new kernel+world built from today's checkout I keep getting
> > the same crash over and over. Never had this problem before. The previous
> > kernel was from 3 weeks ago.
> >
> > Looks familiar to anyone?
> >
> > Fatal trap 12: page fault while in kernel mode
> > cpuid = 0; apic id = 00
> > fault virtual address    = 0xfffe665c
> > fault code        = supervisor write data, protection violation
> > instruction pointer    = 0x20:0xffffffff82282db3
> > stack pointer            = 0x0:0xfffffe004c74c8c8
> > frame pointer            = 0x0:0xfffffe004c74c980
> > 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        = 1579 (wcgrid_zika_vina_7.)
> > trap number        = 12
> > panic: page fault
> > cpuid = 0
> > time = 1533327428
> > KDB: stack backtrace:
> > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame
> > 0xfffffe004c74c580
> > vpanic() at vpanic+0x1a3/frame 0xfffffe004c74c5e0
> > panic() at panic+0x43/frame 0xfffffe004c74c640
> > trap_fatal() at trap_fatal+0x35f/frame 0xfffffe004c74c690
> > trap_pfault() at trap_pfault+0x62/frame 0xfffffe004c74c6e0
> > trap() at trap+0x2ba/frame 0xfffffe004c74c7f0
> > calltrap() at calltrap+0x8/frame 0xfffffe004c74c7f0
> > --- trap 0xc, rip = 0xffffffff82282db3, rsp = 0xfffffe004c74c8c8, rbp =
> > 0xfffffe004c74c980 ---
> > futex_xchgl() at futex_xchgl+0x23/frame 0xfffffe004c74c980
> > ia32_syscall() at ia32_syscall+0x29f/frame 0xfffffe004c74cab0
> > int0x80_syscall_common() at int0x80_syscall_common+0x9c/frame 0x4000001
> > Uptime: 7m29s
> > Dumping 411 out of 8056
> MB:..4%..12%..24%..32%..43%..51%..63%..74%..82%..94%
> > Dump complete
>
> Post first 40 lines from the verbose dmesg boot of your machine.
>


Table 'FACP' at 0xd970da80
Table 'APIC' at 0xd970db90
APIC: Found table at 0xd970db90
APIC: Using the MADT enumerator.
Copyright (c) 1992-2018 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 12.0-CURRENT #86 d2391fd58c4(master)-dirty: Fri Aug  3 10:57:46 BST
2018
    root_at_jd:/usr/obj/usr/src/amd64.amd64/sys/JD amd64
FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM
6.0.1)
WARNING: WITNESS option enabled, expect reduced performance.
Table 'FACP' at 0xd970da80
Table 'APIC' at 0xd970db90
Table 'FPDT' at 0xd970dc18
Table 'FIDT' at 0xd970dc60
Table 'MCFG' at 0xd970dd00
Table 'HPET' at 0xd970dd40
Table 'SSDT' at 0xd970dd78
Table 'UEFI' at 0xd970e230
Table 'SSDT' at 0xd970e278
Table 'ASF!' at 0xd970eef8
Table 'SSDT' at 0xd970ef98
Table 'SSDT' at 0xd970f4b8
Table 'SSDT' at 0xd9710030
Table 'SSDT' at 0xd97101f8
Table 'PCCT' at 0xd97105a0
Table 'SSDT' at 0xd9710610
Table 'SSDT' at 0xd97110d8
Table 'SSDT' at 0xd9715288
Table 'SLIC' at 0xd9719790
Table 'MSDM' at 0xd9719908
Table 'DMAR' at 0xd9719960
Table 'BGRT' at 0xd9719a10
ACPI: No SRAT table found
PPIM 0: PA=0xe0000000, VA=0xffffffff81a10000, size=0x7e9000, mode=0x1
VT(efifb): resolution 1920x1080
Preloaded elf kernel "/boot/kernel.JD/kernel" at 0xffffffff8186c000.
Preloaded boot_entropy_cache "/boot/entropy" at 0xffffffff81875e58.
Preloaded elf obj module "/boot/kernel.JD/snd_hda.ko" at 0xffffffff81875eb0.
Preloaded elf obj module "/boot/kernel.JD/ums.ko" at 0xffffffff81876560.
Table 'FACP' at 0xd970da80
FACP: Found table at 0xd970da80
Calibrating TSC clock ... TSC clock: 2194965386 Hz
CPU: Intel(R) Core(TM) i5-5200U CPU _at_ 2.20GHz (2194.97-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x306d4  Family=0x6  Model=0x3d  Stepping=4

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=0x21c27ab<FSGSBASE,TSCADJ,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,NFPUSG,RDSEED,ADX,SMAP,PROCTRACE>
  XSAVE Features=0x1<XSAVEOPT>
  VT-x: Basic Features=0xda0400<SMM,INS/OUTS,TRUE>
        Pin-Based Controls=0x7f<ExtINT,NMI,VNMI,PreTmr>
        Primary Processor
Controls=0xfff9fffe<INTWIN,TSCOff,HLT,INVLPG,MWAIT,RDPMC,RDTSC,CR3-LD,CR3-ST,CR8-LD,CR8-ST,TPR,NMIWIN,MOV-DR,IO,IOmap,MTF,MSRmap,MONITOR,PAUSE>
        Secondary Processor
Controls=0x53cff<APIC,EPT,DT,RDTSCP,x2APIC,VPID,WBINVD,UG,PAUSE-loop,RDRAND,INVPCID,VMFUNC,XSAVES>
        Exit Controls=0xda0400<PAT-LD,EFER-SV,PTMR-SV>
        Entry Controls=0xda0400
        EPT Features=0x6334141<XO,PW4,UC,WB,2M,1G,INVEPT,AD,single,all>
        VPID Features=0xf01<INVVPID,individual,single,all,single-globals>
  TSC: P-state invariant, performance statistics
Data TLB: 2 MByte or 4 MByte pages, 4-way set associative, 32 entries and a
separate array with 1 GByte pages, 4-way set associative, 4 entries
Data TLB: 4 KB pages, 4-way set associative, 64 entries
Instruction TLB: 2M/4M pages, fully associative, 8 entries
Instruction TLB: 4KByte pages, 8-way set associative, 64 entries
64-Byte prefetching
Shared 2nd-Level TLB: 4 KByte /2 MByte pages, 6-way associative, 1536
entries. Also 1GBbyte pages, 4-way, 16 entries
L2 cache: 256 kbytes, 8-way associative, 64 bytes/line
real memory  = 8589934592 (8192 MB)
Physical memory chunk(s):
0x0000000000010000 - 0x0000000000057fff, 294912 bytes (72 pages)
0x0000000000059000 - 0x000000000005efff, 24576 bytes (6 pages)
0x0000000000060000 - 0x000000000009dfff, 253952 bytes (62 pages)
0x0000000000100000 - 0x00000000001fffff, 1048576 bytes (256 pages)
0x0000000001a00000 - 0x00000000bcb65fff, 3138805760 bytes (766310 pages)
0x00000000bcfef000 - 0x00000000d95aefff, 475791360 bytes (116160 pages)
0x00000000d971f000 - 0x00000000d9eb1fff, 7942144 bytes (1939 pages)
0x00000000dbaff000 - 0x00000000dbafffff, 4096 bytes (1 pages)
0x0000000100000000 - 0x0000000211d39fff, 4594049024 bytes (1121594 pages)
avail memory = 8163524608 (7785 MB)
Table 'FACP' at 0xd970da80
Table 'APIC' at 0xd970db90
Table 'FPDT' at 0xd970dc18
Table 'FIDT' at 0xd970dc60
Table 'MCFG' at 0xd970dd00
Table 'HPET' at 0xd970dd40
Table 'SSDT' at 0xd970dd78
Table 'UEFI' at 0xd970e230
Table 'SSDT' at 0xd970e278
Table 'ASF!' at 0xd970eef8
Table 'SSDT' at 0xd970ef98
Table 'SSDT' at 0xd970f4b8
Table 'SSDT' at 0xd9710030
Table 'SSDT' at 0xd97101f8
Table 'PCCT' at 0xd97105a0
Table 'SSDT' at 0xd9710610
Table 'SSDT' at 0xd97110d8
Table 'SSDT' at 0xd9715288
Table 'SLIC' at 0xd9719790
Table 'MSDM' at 0xd9719908
Table 'DMAR' at 0xd9719960
DMAR: Found table at 0xd9719960
x2APIC available but disabled by DMAR table
MADT: Found CPU APIC ID 0 ACPI ID 1: enabled
SMP: Added CPU 0 (AP)
MADT: Found CPU APIC ID 2 ACPI ID 2: enabled
SMP: Added CPU 2 (AP)
MADT: Found CPU APIC ID 1 ACPI ID 3: enabled
SMP: Added CPU 1 (AP)
MADT: Found CPU APIC ID 3 ACPI ID 4: enabled
SMP: Added CPU 3 (AP)
Event timer "LAPIC" quality 600
LAPIC: ipi_wait() us multiplier 46 (r 4708131 tsc 2194965386)
ACPI APIC Table: <DELL   CBX3   >
Package ID shift: 4
L3 cache ID shift: 4
L2 cache ID shift: 1
L1 cache ID shift: 1
Core ID shift: 1
INTR: Adding local APIC 2 as a target
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 hardware threads
Package HW ID = 0
    Core HW ID = 0
        CPU0 (BSP): APIC ID: 0
        CPU1 (AP/HT): APIC ID: 1
    Core HW ID = 1
        CPU2 (AP): APIC ID: 2
        CPU3 (AP/HT): APIC ID: 3
APIC: CPU 0 has ACPI ID 1
APIC: CPU 1 has ACPI ID 3
APIC: CPU 2 has ACPI ID 2
APIC: CPU 3 has ACPI ID 4
x86bios:  IVT 0x000000-0x0004ff at 0xfffff80000000000
x86bios: SSEG 0x059000-0x059fff at 0xfffffe00035c6000
x86bios: EBDA 0x091000-0x09ffff at 0xfffff80000091000
x86bios:  ROM 0x0a0000-0x0fefff at 0xfffff800000a0000
lapic0: CMCI unmasked
Pentium Pro MTRR support enabled
random: read 3840 bytes from preloaded cache
random: unblocking device.
arc4random: read 32 bytes from preloaded cache
VIMAGE (virtualized network stack) enabled
ULE: setup cpu 0
ULE: setup cpu 1
ULE: setup cpu 2
ULE: setup cpu 3
ACPI: RSDP 0x00000000D96F9000 000024 (v02 DELL  )
ACPI: XSDT 0x00000000D96F90A8 0000D4 (v01 DELL   CBX3     01072009 AMI
00010013)
ACPI: FACP 0x00000000D970DA80 00010C (v05 DELL   CBX3     01072009 AMI
00010013)
ACPI: DSDT 0x00000000D96F9210 01486B (v02 DELL   CBX3     01072009 INTL
20120913)
ACPI: FACS 0x00000000DA60FF80 000040
ACPI: APIC 0x00000000D970DB90 000084 (v03 DELL   CBX3     01072009 AMI
00010013)
ACPI: FPDT 0x00000000D970DC18 000044 (v01 DELL   CBX3     01072009 AMI
00010013)
ACPI: FIDT 0x00000000D970DC60 00009C (v01 DELL   CBX3     01072009 AMI
00010013)
ACPI: MCFG 0x00000000D970DD00 00003C (v01 DELL   CBX3     01072009 MSFT
00000097)
ACPI: HPET 0x00000000D970DD40 000038 (v01 DELL   CBX3     01072009 AMI.
00000005)
ACPI: SSDT 0x00000000D970DD78 0004B5 (v01 SataRe SataTabl 00001000 INTL
20120913)
ACPI: UEFI 0x00000000D970E230 000042 (v01                 00000000
00000000)
ACPI: SSDT 0x00000000D970E278 000C7D (v02 Ther_R Ther_Rvp 00001000 INTL
20120913)
ACPI: ASF! 0x00000000D970EEF8 0000A0 (v32 INTEL   HCG     00000001 TFSM
000F4240)
ACPI: SSDT 0x00000000D970EF98 00051F (v02 PmRef  Cpu0Ist  00003000 INTL
20120913)
ACPI: SSDT 0x00000000D970F4B8 000B74 (v02 CpuRef CpuSsdt  00003000 INTL
20120913)
ACPI: SSDT 0x00000000D9710030 0001C7 (v02 PmRef  LakeTiny 00003000 INTL
20120913)
ACPI: SSDT 0x00000000D97101F8 0003A5 (v02 CppcTa CppcTabl 00001000 INTL
20120913)
ACPI: PCCT 0x00000000D97105A0 00006E (v05 PcctTa PcctTabl 00001000 INTL
20120913)
ACPI: SSDT 0x00000000D9710610 000AC4 (v02 Cpc_Ta Cpc_Tabl 00001000 INTL
20120913)
ACPI: SSDT 0x00000000D97110D8 0041AC (v02 SaSsdt SaSsdt   00003000 INTL
20120913)
ACPI: SSDT 0x00000000D9715288 004508 (v01 DptfTa DptfTabl 00001000 INTL
20120913)
ACPI: SLIC 0x00000000D9719790 000176 (v03 DELL   CBX3     01072009 MSFT
00010013)
ACPI: MSDM 0x00000000D9719908 000055 (v03 DELL   CBX3     06222004 AMI
00010013)
ACPI: DMAR 0x00000000D9719960 0000B0 (v01 INTEL  BDW      00000001 INTL
00000001)
ACPI: BGRT 0x00000000D9719A10 000038 (v00 ??              01072009 AMI
00010013)
MADT: Found IO APIC ID 2, Interrupt 0 at 0xfec00000
ioapic0: ver 0x20 maxredir 0x27
ioapic0: Routing external 8259A's -> intpin 0
lapic0: Routing NMI -> LINT1
lapic0: LINT1 trigger: level
lapic0: LINT1 polarity: low
lapic2: Routing NMI -> LINT1
lapic2: LINT1 trigger: edge
lapic2: LINT1 polarity: low
lapic1: Routing NMI -> LINT0
WARNING: Bogus Interrupt Trigger Mode. Assume CONFORMS.
lapic1: LINT0 trigger: edge
lapic1: LINT0 polarity: high
lapic3: Routing NMI -> LINT1
lapic3: LINT1 trigger: edge
lapic3: LINT1 polarity: low
MADT: Interrupt override: source 0, irq 2
ioapic0: Routing IRQ 0 -> intpin 2
MADT: Interrupt override: source 9, irq 9
ioapic0: intpin 9 trigger: level
ioapic0 <Version 2.0> irqs 0-39 on motherboard
lapic0: Forcing LINT1 to edge trigger
lapic: Divisor 2, Frequency 49885584 Hz
lapic: deadline tsc mode, Frequency 2194965386 Hz
cpu0 BSP:
     ID: 0x00000000   VER: 0x01060015 LDR: 0x00000000 DFR: 0xffffffff
x2APIC: 0
  lint0: 0x00010700 lint1: 0x00002400 TPR: 0x00000000 SVR: 0x000011ff
  timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 pmc: 0x00010400
   cmci: 0x000000f2
SMP: AP CPU #1 Launched!
cpu1 AP:
     ID: 0x01000000   VER: 0x01060015 LDR: 0x00000000 DFR: 0xffffffff
x2APIC: 0
  lint0: 0x00000400 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000011ff
  timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 pmc: 0x00010400
   cmci: 0x000100f2
lapic3: CMCI unmasked
SMP: AP CPU #3 Launched!
cpu3 AP:
     ID: 0x03000000   VER: 0x01060015 LDR: 0x00000000 DFR: 0xffffffff
x2APIC: 0
  lint0: 0x00010700 lint1: 0x00002400 TPR: 0x00000000 SVR: 0x000011ff
  timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 pmc: 0x00010400
   cmci: 0x000000f2
SMP: AP CPU #2 Launched!
cpu2 AP:
     ID: 0x02000000   VER: 0x01060015 LDR: 0x00000000 DFR: 0xffffffff
x2APIC: 0
  lint0: 0x00010700 lint1: 0x00002400 TPR: 0x00000000 SVR: 0x000011ff
  timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 pmc: 0x00010400
   cmci: 0x000100f2
SMP: passed TSC synchronization test
TSC timecounter discards lower 1 bit(s)
Timecounter "TSC-low" frequency 1097482693 Hz quality 1000
wlan: <802.11 Link Layer>


>
> I have a guess what is going on, I need the dmesg to confirm.
> If my guess is correct, you can use a workaround by setting the
> "hw.cpu_stdext_disable=0x00100000" tunable at the loader prompt for now.
>

thanks I'll try that
Received on Fri Aug 03 2018 - 18:56:38 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:17 UTC