>Synopsis: panic: ffs_blkfree: freeing free frag >Category: kernel >Environment: System : OpenBSD 7.6 Details : OpenBSD 7.6-current (GENERIC.MP) #497: Fri Jan 3 10:21:33 MST 2025 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Architecture: OpenBSD.amd64 Machine : amd64 >Description: Nothing special; just happened. Booted my laptop as normal and hit the panic right about when xenodm is about to start or right after it. It happened quick enough that I didn't manage to see if it started or not. The important part is that it happened after the system fully booted, and in particular after the filesystems were mounted. I have the pictures so I can provide the functions arguments on demand. 896c24ed99968092.b none swap sw 896c24ed99968092.a / ffs rw 1 1 896c24ed99968092.l /home ffs rw,nodev,nosuid 1 2 896c24ed99968092.d /tmp ffs rw,nodev,nosuid 1 2 896c24ed99968092.f /usr ffs rw,nodev 1 2 896c24ed99968092.g /usr/X11R6 ffs rw,nodev 1 2 896c24ed99968092.h /usr/local ffs rw,wxallowed,nodev 1 2 896c24ed99968092.k /usr/obj ffs rw,nodev,nosuid 1 2 896c24ed99968092.m /usr/ports ffs rw,nodev,nosuid 1 2 896c24ed99968092.n /usr/ports/pobj ffs rw,wxallowed,nodev,nosuid 1 2 896c24ed99968092.j /usr/src ffs rw,nodev,nosuid 1 2 896c24ed99968092.e /var ffs rw,nodev,nosuid 1 2 panic: ffs_blkfree: freeing free frag stopped at db_enter (syslog on proc) db_enter at 0x14 panic at 0xdd ffs_blkfree at 0x7ac ffs_realloccg at 0x542 ffs2_balloc at 0x309 ffs_write at 0x20d VOP_WRITE at 0x45 vn_write at 0xd9 dofilewritev at 0x171 sys_writev at 0xe2 syscall at 0x5ec Xsyscall at 0x128 show uvm: Current UVM status: pagesize=4096 (0x1000), pagemask=0xfff, pageshift=12 3989946 VM pages: 617018 active, 28755 inacttive, 105410 wires, 3035137 free (49894 zero) freemin=132998, free-target=177330, inactive-target=383938, wired-max=1329982 faults=49572197, traps=52482548, intrs=6700333, ctxswitch=70656405 fpuswitch=0 softint=9194048, syscalls=231756364, kmapent=47 fault counts: noram=0, noanon=0, noamap=0, pgwait=0, pgrele=0 ok relocks(total)=811052(822725), anget(retries)=29396453(0), amapcopy=6331822 neighbor anon/obj pg=5533572/21800950, gets(lock/unlock)=7739425/823552 cases: anon=27887785, anoncow=1509768, obj=6353216, prcopy=1373709, przer=12399787 daemon and swap counts: woke=15, revs=0, scans=0, obscans=0, anscans=0 busy=0, freed=0, reactivate=0, deactivate=0 pageouts=0, pending=0, nswget=0, nswapdev=1, swpages=4183918, swpginuse=0, swpgonly=0 paging=0 kernel pointers: objs(kern)=0xffffffff828e8e20 show bcstats Current Buffer Cache status: numbufs 1526 busymapped 6, delwri 53 kvaslots 6553 aval kva slots 6547 bufpages 6164, dmapages 6164, dirtypages 220 pendingreads 2, pendingwrites 1 highflips 1053967, highflops 0, dmaflips 124574 >How-To-Repeat: n/a >Fix: n/a dmesg: OpenBSD 7.6-current (GENERIC.MP) #497: Fri Jan 3 10:21:33 MST 2025 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 16868896768 (16087MB) avail mem = 16333918208 (15577MB) random: good seed from bootblocks mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 3.2 @ 0x90cae000 (63 entries) bios0: vendor LENOVO version "N35ET59W (1.59 )" date 07/16/2024 bios0: LENOVO 20WLS03M00 efi0 at bios0: UEFI 2.7 efi0: Lenovo rev 0x1590 acpi0 at bios0: ACPI 6.1 acpi0: sleep states S0ix S4 S5 acpi0: tables DSDT FACP SSDT SSDT SSDT SSDT TPM2 ECDT HPET APIC SSDT SSDT SSDT NHLT SSDT SSDT SSDT LPIT WSMT SSDT DBGP DBG2 MSDM SSDT BATB DMAR MCFG SSDT PTDT UEFI FPDT acpi0: wakeup devices PEG0(S4) PEGP(S4) PEGP(S4) PEGP(S4) GLAN(S4) XHCI(S3) XDCI(S4) HDAS(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 24 bits acpiec0 at acpi0 acpihpet0 at acpi0: 19200000 Hz acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz, 2693.80 MHz, 06-8c-01, patch 000000b8 cpu0: cpuid 1 edx=bfebfbff<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> ecx=77fafbbf<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> cpu0: cpuid 6 eax=17eff7<SENSOR,ARAT> ecx=9<EFFFREQ> cpu0: cpuid 7.0 ebx=f3bfa7eb<FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,AVX512F,AVX512DQ,RDSEED,ADX,SMAP,AVX512IFMA,CLFLUSHOPT,CLWB,PT,AVX512CD,SHA,AVX512BW,AVX512VL> ecx=18c05fce<AVX512VBMI,UMIP,PKU> edx=fc100710<SRBDS_CTRL,MD_CLEAR,IBT,IBRS,IBPB,STIBP,L1DF,SSBD> cpu0: cpuid a vers=5, gp=8, gpwidth=48, ff=4, ffwidth=48 cpu0: cpuid d.1 eax=f<XSAVEOPT,XSAVEC,XGETBV1,XSAVES> cpu0: cpuid 80000001 edx=2c100800<NXE,PAGE1GB,RDTSCP,LONG> ecx=121<LAHF,ABM,3DNOWP> cpu0: cpuid 80000007 edx=100<ITSC> cpu0: msr 10a=a005c6b<IBRS_ALL,SKIP_L1DFL,MDS_NO,IF_PSCHANGE,MISC_PKG_CT,ENERGY_FILT,DOITM,FBSDP_NO,GDS_CTRL,RFDS_NO> cpu0: 48KB 64b/line 12-way D-cache, 32KB 64b/line 8-way I-cache, 1MB 64b/line 20-way L2 cache, 12MB 64b/line 12-way L3 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges cpu0: apic clock running at 38MHz cpu0: mwait min=64, max=64, C-substates=0.2.0.1.2.1.1.1, IBE cpu1 at mainbus0: apid 2 (application processor) cpu1: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz, 2693.79 MHz, 06-8c-01, patch 000000b8 cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 4 (application processor) cpu2: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz, 2693.79 MHz, 06-8c-01, patch 000000b8 cpu2: smt 0, core 2, package 0 cpu3 at mainbus0: apid 6 (application processor) cpu3: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz, 2693.79 MHz, 06-8c-01, patch 000000b8 cpu3: smt 0, core 3, package 0 ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 120 pins acpimcfg0 at acpi0 acpimcfg0: addr 0xc0000000, bus 0-121 acpiprt0 at acpi0: bus 0 (PC00) acpiprt1 at acpi0: bus 4 (PEG0) acpiprt2 at acpi0: bus 8 (RP01) acpiprt3 at acpi0: bus -1 (RP02) acpiprt4 at acpi0: bus -1 (RP03) acpiprt5 at acpi0: bus -1 (RP04) acpiprt6 at acpi0: bus 9 (RP05) acpiprt7 at acpi0: bus -1 (RP06) acpiprt8 at acpi0: bus -1 (RP07) acpiprt9 at acpi0: bus -1 (RP08) acpiprt10 at acpi0: bus -1 (RP09) acpiprt11 at acpi0: bus -1 (RP10) acpiprt12 at acpi0: bus -1 (RP11) acpiprt13 at acpi0: bus -1 (RP12) acpiprt14 at acpi0: bus -1 (RP13) acpiprt15 at acpi0: bus -1 (RP14) acpiprt16 at acpi0: bus -1 (RP15) acpiprt17 at acpi0: bus -1 (RP16) acpiprt18 at acpi0: bus -1 (RP17) acpiprt19 at acpi0: bus -1 (RP18) acpiprt20 at acpi0: bus -1 (RP19) acpiprt21 at acpi0: bus -1 (RP20) acpiprt22 at acpi0: bus -1 (RP21) acpiprt23 at acpi0: bus -1 (RP22) acpiprt24 at acpi0: bus -1 (RP23) acpiprt25 at acpi0: bus -1 (RP24) acpiprt26 at acpi0: bus 32 (TRP1) acpiprt27 at acpi0: bus 80 (TRP2) acpipci0 at acpi0 PC00: 0x00000000 0x00000011 0x00000001 acpithinkpad0 at acpi0: version 2.0 acpiac0 at acpi0: AC unit online acpibat0 at acpi0: BAT0 model "5B10W51825" serial 21110 type LiP oem "Sunwoda" "LEN0111" at acpi0 not configured "LEN0100" at acpi0 not configured "INTC1043" at acpi0 not configured "INTC1043" at acpi0 not configured "LEN0130" at acpi0 not configured "LEN0112" at acpi0 not configured "ACPI000E" at acpi0 not configured pchgpio0 at acpi0 GPI0 addr 0xfd6e0000/0x10000 0xfd6d0000/0x10000 0xfd6a0000/0x10000 0xfd690000/0x10000 irq 14, 360 pins acpibtn0 at acpi0: SLPB(wakeup) "PNP0C14" at acpi0 not configured "PNP0C14" at acpi0 not configured intelpmc0 at acpi0: PEPD state 0: 0x7f:1:2:0x00:0x0000000000000060 counter: 0x7f:64:0:0x00:0x0000000000000632 frequency: 0 state 1: 0x7f:1:2:0x00:0x0000000000000060 counter: 0x00:32:0:0x03:0x00000000fe00193c frequency: 8197 "INTC1051" at acpi0 not configured acpibtn1 at acpi0: LID_(wakeup) "PNP0C14" at acpi0 not configured "PNP0C14" at acpi0 not configured "PNP0C14" at acpi0 not configured "PNP0C14" at acpi0 not configured "PNP0C14" at acpi0 not configured "PNP0C14" at acpi0 not configured "INTC1040" at acpi0 not configured tpm0 at acpi0 TPM_ 2.0 (TIS) addr 0xfed40000/0x5000, device 0x00fc1050 rev 0x1 "USBC000" at acpi0 not configured acpipwrres0 at acpi0: PXP_, resource for PEG0 acpipwrres1 at acpi0: PUBS, resource for XHCI acpipwrres2 at acpi0: BTRT acpipwrres3 at acpi0: MRST acpipwrres4 at acpi0: DRST acpipwrres5 at acpi0: PXP_, resource for RP01 acpipwrres6 at acpi0: WRST acpipwrres7 at acpi0: DRST acpipwrres8 at acpi0: V0PR acpipwrres9 at acpi0: V1PR acpipwrres10 at acpi0: V2PR acpipwrres11 at acpi0: WRST acpipwrres12 at acpi0: TBT0, resource for TDM0, TRP0, TRP1 acpipwrres13 at acpi0: TBT1, resource for TDM1, TRP2, TRP3 acpipwrres14 at acpi0: D3C_, resource for TXHC, TDM0, TDM1, TRP0, TRP1, TRP2, TRP3 acpicpu0 at acpi0: C3(200@1048 mwait.1@0x60), C2(200@253 mwait.1@0x31), C1(1000@1 mwait.1), PSS acpicpu1 at acpi0: C3(200@1048 mwait.1@0x60), C2(200@253 mwait.1@0x31), C1(1000@1 mwait.1), PSS acpicpu2 at acpi0: C3(200@1048 mwait.1@0x60), C2(200@253 mwait.1@0x31), C1(1000@1 mwait.1), PSS acpicpu3 at acpi0: C3(200@1048 mwait.1@0x60), C2(200@253 mwait.1@0x31), C1(1000@1 mwait.1), PSS acpitz0 at acpi0: critical temperature is 128 degC acpipwrres15 at acpi0: PIN_ acpipwrres16 at acpi0: PINP acpivideo0 at acpi0: GFX0 acpivout0 at acpivideo0: DD1F acpivout1 at acpivideo0: DD2F cpu0: Enhanced SpeedStep 2693 MHz: speeds: 2701, 2700, 2600, 2500, 2300, 2100, 1900, 1700, 1600, 1400, 1200, 1100, 900, 700, 600, 400 MHz pci0 at mainbus0 bus 0 0:31:5: mem address conflict 0xfe010000/0x1000 pchb0 at pci0 dev 0 function 0 "Intel Core 11G Host" rev 0x01 inteldrm0 at pci0 dev 2 function 0 "Intel Xe Graphics" rev 0x01 drm0 at inteldrm0 inteldrm0: msi, TIGERLAKE, gen 12 "Intel Core 11G DTT" rev 0x01 at pci0 dev 4 function 0 not configured ppb0 at pci0 dev 6 function 0 "Intel Core 11G PCIE" rev 0x01: msi pci1 at ppb0 bus 4 nvme0 at pci1 dev 0 function 0 vendor "SK hynix", unknown product 0x174a rev 0x00: msix, NVMe 1.3 nvme0: SKHynix_HFS512GDE9X081N, firmware 41730C20, serial FYB4N013011804A6C scsibus1 at nvme0: 2 targets, initiator 0 sd0 at scsibus1 targ 1 lun 0: <NVMe, SKHynix_HFS512GD, 4173> sd0: 488386MB, 512 bytes/sector, 1000215216 sectors ppb1 at pci0 dev 7 function 0 "Intel Core 11G PCIE" rev 0x01: msi pci2 at ppb1 bus 32 ppb2 at pci0 dev 7 function 2 "Intel Core 11G PCIE" rev 0x01: msi pci3 at ppb2 bus 80 "Intel Core 11G GNA" rev 0x01 at pci0 dev 8 function 0 not configured xhci0 at pci0 dev 13 function 0 "Intel Core 11G xHCI" rev 0x01: msi, xHCI 1.20 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 Core 11G TBT" rev 0x01 at pci0 dev 13 function 2 not configured "Intel Core 11G TBT" rev 0x01 at pci0 dev 13 function 3 not configured xhci1 at pci0 dev 20 function 0 "Intel 500 Series xHCI" rev 0x20: msi, xHCI 1.20 usb1 at xhci1: USB revision 3.0 uhub1 at usb1 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 addr 1 "Intel 500 Series Shared SRAM" rev 0x20 at pci0 dev 20 function 2 not configured dwiic0 at pci0 dev 21 function 0 "Intel 500 Series I2C" rev 0x20: apic 2 int 27 iic0 at dwiic0 dwiic1 at pci0 dev 21 function 1 "Intel 500 Series I2C" rev 0x20: apic 2 int 40 iic1 at dwiic1 "Intel 500 Series HECI" rev 0x20 at pci0 dev 22 function 0 not configured ppb3 at pci0 dev 28 function 0 "Intel 500 Series PCIE" rev 0x20: msi pci4 at ppb3 bus 8 ppb4 at pci0 dev 28 function 4 "Intel 500 Series PCIE" rev 0x20: msi pci5 at ppb4 bus 9 iwx0 at pci5 dev 0 function 0 "Intel Wi-Fi 6 AX210" rev 0x1a, msix pcib0 at pci0 dev 31 function 0 "Intel 500 Series eSPI" rev 0x20 azalia0 at pci0 dev 31 function 3 "Intel 500 Series HD Audio" rev 0x20: msi azalia0: codecs: Realtek ALC257, Intel/0x2812, using Realtek ALC257 audio0 at azalia0 ichiic0 at pci0 dev 31 function 4 "Intel 500 Series SMBus" rev 0x20: apic 2 int 16 iic2 at ichiic0 "Intel 500 Series SPI" rev 0x20 at pci0 dev 31 function 5 not configured em0 at pci0 dev 31 function 6 "Intel I219-V" rev 0x20: msi, address 6c:24:08:7d:d4:9a isa0 at pcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 irq 1 irq 12 pckbd0 at pckbc0 (kbd slot) wskbd0 at pckbd0: console keyboard pms0 at pckbc0 (aux slot) wsmouse0 at pms0 mux 0 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 vmm0 at mainbus0: VMX/EPT efifb at mainbus0 not configured ugen0 at uhub1 port 3 "Synaptics product 0x00f9" rev 2.00/0.00 addr 2 uvideo0 at uhub1 port 4 configuration 1 interface 0 "Chicony Electronics Co.,Ltd. Integrated Camera" rev 2.01/27.31 addr 3 video0 at uvideo0 uhidev0 at uhub1 port 7 configuration 1 interface 1 "Nitrokey Nitrokey 3" rev 2.10/1.07 addr 4 uhidev0: iclass 3/0 fido0 at uhidev0: input=64, output=64, feature=0 ugen1 at uhub1 port 7 configuration 1 "Nitrokey Nitrokey 3" rev 2.10/1.07 addr 4 vscsi0 at root scsibus2 at vscsi0: 256 targets softraid0 at root scsibus3 at softraid0: 256 targets softraid0: sd1 was not shutdown properly sd1 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> sd1: 488126MB, 512 bytes/sector, 999682111 sectors root on sd1a (896c24ed99968092.a) swap on sd1b dump on sd1b inteldrm0: 1920x1200, 32bpp wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0 wsdisplay0: screen 1-5 added (std, vt100 emulation) iwx0: hw rev 0x420, fw 77.f92b5fed.0, pnvm ce1a5094, address f4:46:37:cf:bb:83 usbdevs: Controller /dev/usb0: addr 01: 8086:0000 Intel, xHCI root hub super speed, self powered, config 1, rev 1.00 driver: uhub0 Controller /dev/usb1: addr 01: 8086:0000 Intel, xHCI root hub super speed, self powered, config 1, rev 1.00 driver: uhub1 addr 02: 06cb:00f9 Synaptics, product 0x00f9 full speed, power 100 mA, config 1, rev 0.00, iSerial 231f1a6d1e05 driver: ugen0 addr 03: 04f2:b70f Chicony Electronics Co.,Ltd., Integrated Camera high speed, power 500 mA, config 1, rev 27.31, iSerial 0001 driver: uvideo0 addr 04: 20a0:42b2 Nitrokey, Nitrokey 3 full speed, power 100 mA, config 1, rev 1.07 driver: uhidev0 driver: ugen1