On 2021/02/22 14:55, Theo de Raadt wrote:
> There are a bunch of problems being caused by some sort of kernel
> memory exhaustion.
> 
> Whatever it is, I think it was introduced back around November

6.8 on mine


> My point is this is unrecoverable.  It seems to happen quite suddenly.
> 
> Jonathan Matthew <jonat...@d14n.org> wrote:
> 
> > On Mon, Feb 22, 2021 at 01:48:01PM +0000, Stuart Henderson wrote:
> > > Not much information on this but it's an unusual one so I thought I'd
> > > post in case it's of interest to anyone. (Re-typed from a screen photo,
> > > it's remote and used by non-technical people, this is all I have).
> > > 
> > > panic: uao_fin_swhash_elt: can't allocate entry
> > 
> > uao_find_swhash_elt():
> > 
> >         /* allocate a new entry for the bucket and init/insert it in */
> >         elt = pool_get(&uao_swhash_elt_pool, PR_NOWAIT | PR_ZERO);
> >         /*
> >          * XXX We cannot sleep here as the hash table might disappear
> >          * from under our feet.  And we run the risk of deadlocking
> >          * the pagedeamon.  In fact this code will only be called by
> >          * the pagedaemon and allocation will only fail if we
> >          * exhausted the pagedeamon reserve.  In that case we're
> >          * doomed anyway, so panic.
> >          */
> >         if (elt == NULL)
> >                 panic("%s: can't allocate entry", __func__);
> > 
> > so it sounds like the machine was so out of memory it couldn't swap.
> > 
> > 
> > > Stopped at db_enter+0x10: popq %rbp
> > > TID       PID     UID     PRFLAGS         PFLAGS  CPU     COMMAND
> > > 387245    23522   1001    0x100000        0       0       sh
> > > *428940   98261   0       0x14000         0x200   1K      pagedaemon
> > > db_enter+0x10
> > > panic+0x12a
> > > uao_set_swslot(fffffd80c1ecc980,150,1f4d1) at uao_set_swslot+0x1a1
> > > uvmpd_scan_inactive(ffffffff82188790) at uvmpd_scan_inactive+0x537
> > > uvmpd_scan+0x9f
> > > uvm_pageout(ffff8000ffff53d0) at uvm_pageout+0x375
> > > end trace frame 0x0, count: 9
> > > 
> > > Happened after about 6 days uptime, running GNOME and chromium.
> > > Nothing in syslog anywhere near the crash. Machine is an haswell nuc
> > > D34010WYK (looks like a system builder has had their paws on the bios ID
> > > strings).
> > > 
> > > OpenBSD 6.8 (GENERIC.MP) #4: Mon Jan 11 10:35:56 MST 2021
> > >     
> > > r...@syspatch-68-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > > real mem = 4169539584 (3976MB)
> > > avail mem = 4028141568 (3841MB)
> > > random: good seed from bootblocks
> > > mpath0 at root
> > > scsibus0 at mpath0: 256 targets
> > > mainbus0 at root
> > > bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xec240 (83 entries)
> > > bios0: vendor Intel Corp. version "WYLPT10H.86A.0054.2019.0902.1752" date 
> > > 09/02/2019
> > > bios0: NOVATECH LTD PC-BX12966
> > > acpi0 at bios0: ACPI 5.0
> > > acpi0: sleep states S0 S3 S4 S5
> > > acpi0: tables DSDT FACP APIC FPDT FIDT SSDT SSDT MCFG HPET SSDT SSDT DMAR 
> > > CSRT MSDM
> > > acpi0: wakeup devices PXSX(S4) PXSX(S4) PXSX(S4) PXSX(S4) PXSX(S4) 
> > > PXSX(S4) PXSX(S4) PXSX(S4) GLAN(S4) EHC1(S4) EHC2(S4) XHC_(S4) HDEF(S4) 
> > > PEG0(S4) PEGP(S4) PWRB(S3)
> > > acpitimer0 at acpi0: 3579545 Hz, 24 bits
> > > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> > > cpu0 at mainbus0: apid 0 (boot processor)
> > > cpu0: Intel(R) Core(TM) i3-4010U CPU @ 1.70GHz, 1696.39 MHz, 06-45-01
> > > cpu0: 
> > > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SRBDS_CTRL,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
> > > cpu0: 256KB 64b/line 8-way L2 cache
> > > cpu0: smt 0, core 0, package 0
> > > mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
> > > cpu0: apic clock running at 99MHz
> > > cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
> > > cpu1 at mainbus0: apid 2 (application processor)
> > > cpu1: Intel(R) Core(TM) i3-4010U CPU @ 1.70GHz, 1696.08 MHz, 06-45-01
> > > cpu1: 
> > > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SRBDS_CTRL,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
> > > cpu1: 256KB 64b/line 8-way L2 cache
> > > cpu1: smt 0, core 1, package 0
> > > cpu2 at mainbus0: apid 1 (application processor)
> > > cpu2: Intel(R) Core(TM) i3-4010U CPU @ 1.70GHz, 1696.08 MHz, 06-45-01
> > > cpu2: 
> > > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SRBDS_CTRL,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
> > > cpu2: 256KB 64b/line 8-way L2 cache
> > > cpu2: smt 1, core 0, package 0
> > > cpu3 at mainbus0: apid 3 (application processor)
> > > cpu3: Intel(R) Core(TM) i3-4010U CPU @ 1.70GHz, 1696.08 MHz, 06-45-01
> > > cpu3: 
> > > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SRBDS_CTRL,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
> > > cpu3: 256KB 64b/line 8-way L2 cache
> > > cpu3: smt 1, core 1, package 0
> > > ioapic0 at mainbus0: apid 8 pa 0xfec00000, version 20, 40 pins
> > > acpimcfg0 at acpi0
> > > acpimcfg0: addr 0xf8000000, bus 0-63
> > > acpihpet0 at acpi0: 14318179 Hz
> > > acpiprt0 at acpi0: bus 0 (PCI0)
> > > acpiprt1 at acpi0: bus -1 (PEG0)
> > > acpiec0 at acpi0: not present
> > > acpipci0 at acpi0 PCI0: 0x00000010 0x00000011 0x00000000
> > > acpicmos0 at acpi0
> > > "NTN0530" at acpi0 not configured
> > > "PNP0C14" at acpi0 not configured
> > > acpibtn0 at acpi0: PWRB
> > > "PNP0C0B" at acpi0 not configured
> > > "PNP0C0B" at acpi0 not configured
> > > "PNP0C0B" at acpi0 not configured
> > > "PNP0C0B" at acpi0 not configured
> > > "PNP0C0B" at acpi0 not configured
> > > acpicpu0 at acpi0: C2(500@67 mwait.1@0x10), C1(1000@1 mwait.1), PSS
> > > acpicpu1 at acpi0: C2(500@67 mwait.1@0x10), C1(1000@1 mwait.1), PSS
> > > acpicpu2 at acpi0: C2(500@67 mwait.1@0x10), C1(1000@1 mwait.1), PSS
> > > acpicpu3 at acpi0: C2(500@67 mwait.1@0x10), C1(1000@1 mwait.1), PSS
> > > acpipwrres0 at acpi0: FN00, resource for FAN0
> > > acpipwrres1 at acpi0: FN01, resource for FAN1
> > > acpipwrres2 at acpi0: FN02, resource for FAN2
> > > acpipwrres3 at acpi0: FN03, resource for FAN3
> > > acpipwrres4 at acpi0: FN04, resource for FAN4
> > > acpitz0 at acpi0: critical temperature is 105 degC
> > > acpitz1 at acpi0: critical temperature is 105 degC
> > > acpivideo0 at acpi0: GFX0
> > > acpivout0 at acpivideo0: DD1F
> > > cpu0: using VERW MDS workaround (except on vmm entry)
> > > cpu0: Enhanced SpeedStep 1696 MHz: speeds: 1700, 1600, 1500, 1400, 1300, 
> > > 1200, 1100, 1000, 900, 800, 782 MHz
> > > pci0 at mainbus0 bus 0
> > > pchb0 at pci0 dev 0 function 0 "Intel Core 4G Host" rev 0x09
> > > inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics" rev 0x09
> > > drm0 at inteldrm0
> > > inteldrm0: msi, HASWELL, gen 7
> > > azalia0 at pci0 dev 3 function 0 "Intel Core 4G HD Audio" rev 0x09: msi
> > > azalia0: No codecs found
> > > xhci0 at pci0 dev 20 function 0 "Intel 8 Series xHCI" rev 0x04: msi, xHCI 
> > > 1.0
> > > usb0 at xhci0: USB revision 3.0
> > > uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 
> > > 3.00/1.00 addr 1
> > > "Intel 8 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
> > > em0 at pci0 dev 25 function 0 "Intel I218-V" rev 0x04: msi, address 
> > > c0:3f:d5:60:c6:bc
> > > azalia1 at pci0 dev 27 function 0 "Intel 8 Series HD Audio" rev 0x04: msi
> > > azalia1: codecs: Realtek/0x0283
> > > audio0 at azalia1
> > > ehci0 at pci0 dev 29 function 0 "Intel 8 Series USB" rev 0x04: apic 8 int 
> > > 23
> > > usb1 at ehci0: USB revision 2.0
> > > uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 
> > > 2.00/1.00 addr 1
> > > pcib0 at pci0 dev 31 function 0 "Intel 8 Series LPC" rev 0x04
> > > ahci0 at pci0 dev 31 function 2 "Intel 8 Series AHCI" rev 0x04: msi, AHCI 
> > > 1.3
> > > ahci0: port 3: 6.0Gb/s
> > > scsibus1 at ahci0: 32 targets
> > > sd0 at scsibus1 targ 3 lun 0: <ATA, SanDisk SD6SF1M1, X231> 
> > > naa.5001b44a20a5a978
> > > sd0: 122104MB, 512 bytes/sector, 250069680 sectors, thin
> > > ichiic0 at pci0 dev 31 function 3 "Intel 8 Series SMBus" rev 0x04: apic 8 
> > > int 18
> > > iic0 at ichiic0
> > > spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-12800 SO-DIMM
> > > isa0 at pcib0
> > > isadma0 at isa0
> > > fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
> > > com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> > > pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> > > pcppi0 at isa0 port 0x61
> > > spkr0 at pcppi0
> > > lpt0 at isa0 port 0x378/4 irq 7
> > > wbsio0 at isa0 port 0x4e/2: NCT6776F rev 0x33
> > > lm1 at wbsio0 port 0xa00/8: NCT6776F
> > > vmm0 at mainbus0: VMX/EPT
> > > uhidev0 at uhub0 port 1 configuration 1 interface 0 "Logitech USB 
> > > Keyboard" rev 1.10/49.00 addr 2
> > > uhidev0: iclass 3/1
> > > ukbd0 at uhidev0: 8 variable keys, 6 key codes
> > > wskbd0 at ukbd0: console keyboard
> > > uhidev1 at uhub0 port 1 configuration 1 interface 1 "Logitech USB 
> > > Keyboard" rev 1.10/49.00 addr 2
> > > uhidev1: iclass 3/0
> > > uhid0 at uhidev1: input=2, output=0, feature=0
> > > uhidev2 at uhub0 port 2 configuration 1 interface 0 "Logitech USB Optical 
> > > Mouse" rev 2.00/72.00 addr 3
> > > uhidev2: iclass 3/1
> > > ums0 at uhidev2: 3 buttons, Z dir
> > > wsmouse0 at ums0 mux 0
> > > fd0 at fdc0 drive 0: density unknown
> > > uhub2 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching 
> > > Hub" rev 2.00/0.04 addr 2
> > > vscsi0 at root
> > > scsibus2 at vscsi0: 256 targets
> > > softraid0 at root
> > > scsibus3 at softraid0: 256 targets
> > > root on sd0a (aba221cde686c95b.a) swap on sd0b dump on sd0b
> > > WARNING: / was not properly unmounted
> > > inteldrm0: 1920x1080, 32bpp
> > > wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using 
> > > wskbd0
> > > wsdisplay0: screen 1-5 added (std, vt100 emulation)
> > > fd1 at fdc0 drive 1: density unknown
> > > 
> > 

Reply via email to