Hey there,

I'm running OpenBSD 7.5 as a domU on top of Xen 4.18. After updating the dom0 
(from NetBSD 9.3 to 10.0), xnf in the OpenBSD domU now panics on boot 
consistently (I can still get into the system if I disable xnf via boot -c). I 
tried reinstalling the kernel+sets in case something got corrupted, but that 
made no difference.

Here are the logs, let me know if providing any more info or trying anything 
different would be useful!

>> OpenBSD/amd64 BOOT 3.65
boot>
Passphrase:
booting sr0a:/bsd: 17823573+4281352+417824+0+1232896 
[1553940+128+1394592+1090945]=0x1a847c0
entry point at 0xffffffff81001000
[ using 4040640 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2024 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 7.5 (GENERIC.MP) #82: Wed Mar 20 15:48:40 MDT 2024
    [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1048567808 (999MB)
avail mem = 995897344 (949MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xfc100000 (12 entries)
bios0: vendor Xen version "4.18.0_20231116nb0" date 07/08/2024
bios0: Xen HVM domU
acpi0 at bios0: ACPI 4.0
acpi0: sleep states S3 S4 S5
acpi0: tables DSDT FACP APIC HPET WAET SSDT SSDT
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 11, 48 pins, remapped
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU E3-1225 v5 @ 3.30GHz, 3312.10 MHz, 06-5e-03
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,SSE3,PCLMUL,SSSE3,FMA3,CX16,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,HV,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,CLFLUSHOPT,RSBA,GDS_NO,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB 64b/line 
4-way L2 cache, 8MB 64b/line 16-way L3 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 100MHz
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Xeon(R) CPU E3-1225 v5 @ 3.30GHz, 3312.13 MHz, 06-5e-03
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,SSE3,PCLMUL,SSSE3,FMA3,CX16,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,HV,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,CLFLUSHOPT,RSBA,GDS_NO,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu1: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB 64b/line 
4-way L2 cache, 8MB 64b/line 16-way L3 cache
cpu1: smt 0, core 1, package 0
acpihpet0 at acpi0: 62500000 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpipci0 at acpi0 PCI0
acpicmos0 at acpi0
com0 at acpi0 UAR1 addr 0x3f8/0x8 irq 4: ns16550a, 16 byte fifo
com0: console
"ACPI0007" at acpi0 not configured
"ACPI0007" at acpi0 not configured
acpicpu0 at acpi0: C1(@1 halt!)
acpicpu1 at acpi0: C1(@1 halt!)
cpu0: using Skylake AVX MDS workaround
pvbus0 at mainbus0: Xen 4.18
xen0 at pvbus0: features 0xd2705, 64 grant table frames, event channel 1
xbf0 at xen0 backend 0 channel 6: disk
scsibus1 at xbf0: 1 targets
sd0 at scsibus1 targ 0 lun 0: <Xen, phy hda 768, 0000>
sd0: 64496MB, 512 bytes/sector, 132087808 sectors
xbf1 at xen0 backend 0 channel 7: disk
scsibus2 at xbf1: 1 targets
sd1 at scsibus2 targ 0 lun 0: <Xen, phy hdb 832, 0000>
sd1: 664MB, 512 bytes/sector, 1360832 sectors
"vkbd" at xen0: device/vkbd/0 not configured
xnf0 at xen0 backend 0 channel 8: address 00:16:3e:0a:a2:70
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
pciide0 at pci0 dev 1 function 1 "Intel 82371SB IDE" rev 0x00: DMA, channel 0 
wired to compatibility, channel 1 wired to compatibility
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 disabled (no drives)
piixpm0 at pci0 dev 1 function 3 "Intel 82371AB Power" rev 0x03: SMBus disabled
xspd0 at pci0 dev 2 function 0 "XenSource Platform Device" rev 0x01
vga1 at pci0 dev 3 function 0 "Cirrus Logic CL-GD5446" rev 0x00
wsdisplay at vga1 not configured
ahci0 at pci0 dev 5 function 0 "Intel 82801I AHCI" rev 0x02: msi, AHCI 1.0
ahci0: port 0: 1.5Gb/s
ahci0: port 1: 1.5Gb/s
scsibus3 at ahci0: 32 targets
sd2 at scsibus3 targ 0 lun 0: <ATA, QEMU HARDDISK, 2.5+> 
t10.ATA_QEMU_HARDDISK_QM00005_
sd2: 64496MB, 512 bytes/sector, 132087808 sectors, thin
sd3 at scsibus3 targ 1 lun 0: <ATA, QEMU HARDDISK, 2.5+> 
t10.ATA_QEMU_HARDDISK_QM00007_
sd3: 664MB, 512 bytes/sector, 1360832 sectors, thin
isa0 at pcib0
isadma0 at isa0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0 mux 1
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vscsi0 at root
scsibus4 at vscsi0: 256 targets
softraid0 at root
scsibus5 at softraid0: 256 targets
softraid0: found duplicate chunk 0 for volume 0 on device sd0b
softraid0: sd4 was not shutdown properly
sd4 at scsibus5 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006>
sd4: 64487MB, 512 bytes/sector, 132070896 sectors
root on sd4a (6b863d2bccbc7bff.a) swap on sd4b dump on sd4b
WARNING: / was not properly unmounted
Automatic boot in progress: starting file system checks.
/dev/sd4a (6b863d2bccbc7bff.a): FREE BLK COUNT(S) WRONG IN SUPERBLK (SALVAGED)
/dev/sd4a (6b863d2bccbc7bff.a): SUMMARY INFORMATION BAD (SALVAGED)
/dev/sd4a (6b863d2bccbc7bff.a): BLK(S) MISSING IN BIT MAPS (SALVAGED)
/dev/sd4a (6b863d2bccbc7bff.a): 2202 files, 86224 used, 418487 free (207 frags, 
52285 blocks, 0.0% fragmentation)
/dev/sd4a (6b863d2bccbc7bff.a): MARKING FILE SYSTEM CLEAN
fd0 at fdc0 drive 1: density unknown
/dev/sd4k (6b863d2bccbc7bff.k): 97400 files, 2608856 used, 10469702 free (1422 
frags, 1308535 blocks, 0.0% fragmentation)
/dev/sd4k (6b863d2bccbc7bff.k): MARKING FILE SYSTEM CLEAN
/dev/sd4d (6b863d2bccbc7bff.d): INCORRECT BLOCK COUNT I=3 (4 should be 0) 
(CORRECTED)
/dev/sd4d (6b863d2bccbc7bff.d): UNREF FILE I=3  OWNER=root MODE=100600
/dev/sd4d: SIZE=0 MTIME=Aug 18 15:20 2024  (CLEARED)
/dev/sd4d (6b863d2bccbc7bff.d): 8 files, 7 used, 2028720 free (56 frags, 253583 
blocks, 0.0% fragmentation)
/dev/sd4d (6b863d2bccbc7bff.d): MARKING FILE SYSTEM CLEAN
/dev/sd4f (6b863d2bccbc7bff.f): FREE BLK COUNT(S) WRONG IN SUPERBLK (SALVAGED)
/dev/sd4f (6b863d2bccbc7bff.f): SUMMARY INFORMATION BAD (SALVAGED)
/dev/sd4f (6b863d2bccbc7bff.f): BLK(S) MISSING IN BIT MAPS (SALVAGED)
/dev/sd4f (6b863d2bccbc7bff.f): 17950 files, 758478 used, 2638265 free (3241 
frags, 329378 blocks, 0.1% fragmentation)
/dev/sd4f (6b863d2bccbc7bff.f): MARKING FILE SYSTEM CLEAN
/dev/sd4g (6b863d2bccbc7bff.g): 6014 files, 154898 used, 349813 free (925 
frags, 43611 blocks, 0.2% fragmentation)
/dev/sd4g (6b863d2bccbc7bff.g): MARKING FILE SYSTEM CLEAN
/dev/sd4h (6b863d2bccbc7bff.h): 53240 files, 1392097 used, 3094862 free (3390 
frags, 386434 blocks, 0.1% fragmentation)
/dev/sd4h (6b863d2bccbc7bff.h): MARKING FILE SYSTEM CLEAN
/dev/sd4j (6b863d2bccbc7bff.j): 1 files, 1 used, 3044750 free (14 frags, 380592 
blocks, 0.0% fragmentation)
/dev/sd4j (6b863d2bccbc7bff.j): MARKING FILE SYSTEM CLEAN
/dev/sd4i (6b863d2bccbc7bff.i): 1 files, 1 used, 1273526 free (14 frags, 159189 
blocks, 0.0% fragmentation)
/dev/sd4i (6b863d2bccbc7bff.i): MARKING FILE SYSTEM CLEAN
/dev/sd4e (6b863d2bccbc7bff.e): FREE BLK COUNT(S) WRONG IN SUPERBLK (SALVAGED)
/dev/sd4e (6b863d2bccbc7bff.e): SUMMARY INFORMATION BAD (SALVAGED)
/dev/sd4e (6b863d2bccbc7bff.e): BLK(S) MISSING IN BIT MAPS (SALVAGED)
/dev/sd4e (6b863d2bccbc7bff.e): 4264 files, 121060 used, 2899107 free (1011 
frags, 362262 blocks, 0.0% fragmentation)
/dev/sd4e (6b863d2bccbc7bff.e): MARKING FILE SYSTEM CLEAN
pf enabled
starting network
panic: kernel diagnostic assertion "m != NULL" failed: file "/usr/src/sys/dev/p
v/if_xnf.c", line 789
Stopped at      db_enter+0x14:  popq    %rbp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
* 28284  39590      0   0x8000003          0    0  ifconfig
  77261  42009      0     0x14000      0x200    1  xnf0
db_enter() at db_enter+0x14
panic(ffffffff821ff75f) at panic+0xc3
__assert(ffffffff821bb722,ffffffff8213704c,315,ffffffff8213619a) at __assert+0x
29
xnf_rxeof(ffff80000012f000) at xnf_rxeof+0x334
xnf_ioctl(ffff80000012f120,8020690c,ffff800000177d00) at xnf_ioctl+0xd6
in_ifinit(ffff80000012f120,ffff800000177d00,ffff80001c72b9a0,1) at in_ifinit+0x
f4
in_ioctl_change_ifaddr(8040691a,ffff80001c72b990,ffff80000012f120) at in_ioctl_
change_ifaddr+0x373
ifioctl(fffffd803a80fd70,8040691a,ffff80001c72b990,ffff80001c70f2b8) at ifioctl
+0x8ce
sys_ioctl(ffff80001c70f2b8,ffff80001c72bb50,ffff80001c72bac0) at sys_ioctl+0x2a
f
syscall(ffff80001c72bb50) at syscall+0x55b
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x74d4bfb2ca80, count: 4
https://www.openbsd.org/ddb.html describes the minimum info required in bug
reports.  Insufficient info makes it difficult to find and fix bugs.
ddb{0}> mach ddbcpu 1
Stopped at      x86_ipi_db+0x16:        leave
x86_ipi_db(ffff80001c527ff0) at x86_ipi_db+0x16
x86_ipi_handler() at x86_ipi_handler+0x80
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27
msleep_nsec(ffff800000108680,ffff800000108698,0,ffff80001c69f1e8,246) at msleep
_nsec+0x9
taskq_next_work(ffff800000108680,ffff80001c69f240) at taskq_next_work+0x61
taskq_thread(ffff800000108680) at taskq_thread+0xeb
end trace frame: 0x0, count: 9
ddb{1}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 39590   28284   1646      0  7   0x8000003                ifconfig
 15743  130112      0      0  3     0x14200  bored         wg_crypt
 93763  492373      0      0  3     0x14200  bored         wg_crypt
 63627  172822      0      0  3     0x14200  bored         wg_handshake
 78317  157222      0      0  3     0x14200  bored         wg_handshake
  1646  230161  56145      0  3   0x810008b  sigsusp       sh
 13191  225265      1      0  3  0x18100080  kqread        resolvd
 67809   91154  32159      0  3   0x8100083  nanoslp       sleep
 32159  181047      1      0  3   0x8100089  sigsusp       ksh
 98308  382068  88389     77  3  0x18100092  kqread        dhcpleased
 59084  487370  88389     77  3  0x18100092  kqread        dhcpleased
 88389  311866      1      0  3  0x18000080  kqread        dhcpleased
 41092   50925  65340      0  3   0x8100083  nanoslp       sleep
 65340  352350      1      0  3   0x8100089  sigsusp       ksh
 61549   35269  78789      0  2  0x18000003                ar
 78789  290081   7347      0  3   0x8100089  sigsusp       sh
   499  162852  68888    115  3  0x18100092  kqread        slaacd
 11013  336100  68888    115  3  0x18100092  kqread        slaacd
 68888  522048      1      0  3  0x18100080  kqread        slaacd
 81648    2471  20817      0  3   0x8100083  nanoslp       sleep
 20817  153258      1      0  3   0x8100089  sigsusp       ksh
  7347  219302  56145      0  3   0x8100089  sigsusp       sh
 56145  357178      1      0  3   0x810008b  sigsusp       sh
 69711   91656      0      0  3     0x14200  bored         smr
 65635    7512      0      0  3     0x14200  pgzero        zerothread
 20324   53720      0      0  3     0x14200  aiodoned      aiodoned
 89216  234086      0      0  3     0x14200  syncer        update
 36076  367567      0      0  3     0x14200  cleaner       cleaner
  1576   90257      0      0  3     0x14200  reaper        reaper
 14457  342922      0      0  3     0x14200  pgdaemon      pagedaemon
 23491  195436      0      0  3     0x14200  bored         sensors
 88004  425926      0      0  3     0x14200  bored         srdis
*42009   77261      0      0  7     0x14200                xnf0
 75227  212490      0      0  3     0x14200  bored         xbf1
 21059   94665      0      0  3     0x14200  bored         xbf0
 56050  236918      0      0  3     0x14200  bored         xenwatch
 56301  326485      0      0  3     0x14200  bored         xen0
 29589  520854      0      0  3  0x40014200  acpi0         acpi0
 42162  347071      0      0  3  0x40014200                idle1
 90219  387519      0      0  3     0x14200  bored         softnet3
 67133  330950      0      0  3     0x14200  bored         softnet2
 75589  189287      0      0  3     0x14200  bored         softnet1
 96611   21685      0      0  3     0x14200  bored         softnet0
  1293  258925      0      0  3     0x14200  bored         systqmp
 28127  442272      0      0  3     0x14200  bored         systq
 83055  399342      0      0  3     0x14200  tmoslp        softclockmp
 84255  383966      0      0  3  0x40014200  tmoslp        softclock
 30550  450391      0      0  3  0x40014200                idle0
     1  316372      0      0  3   0x8000082  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper

-- 
All emails sent by me are cryptographically signed.
Trust signed mail normally, trust unsigned mail little.
Get key: `gpg --locate-keys [email protected]'

Attachment: signature.asc
Description: PGP signature

Reply via email to