Greetings. I'm testing 6.4-beta on a system that uses a few mfs
mounts, and am regularly seeing a panic at shutdown/reboot, always
with the same line 751 assertion. The easiest way to reproduce seems
to be with an mfs-mounted /var (presumably due to the number of
processes with files open at shutdown time?).
Steps to reproduce:
- cp -PpR /var /var.gold
- echo 'swap /var mfs rw,noatime,nodev,noexec,-P/var.gold,-s256m 0 0'
>> /etc/fstab
- comment existing /var in /etc/fstab
- reboot once to enable mfs /var
- `reboot` or `shutdown -p now`. It may take a couple tries.
panic:
-----
panic: kernel diagnostic assertion "vp->v_uvcount == 0" failed: file
"/usr/src/sys/kern/kern_unveil.c", line 751
Stopped at db_enter+0x12: popq %r11
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*234542 55272 0 0 0 1K mount_mfs
475292 42706 0 0x14000 0x200 2 reaper
db_enter() at db_enter+0x12
panic() at panic+0x120
__assert(ffffffff8147e334,ffff80001aee05a0,0,ffffff0052814010) at __assert+0x24
unveil_removevnode(3a65f3061018b4c5) at unveil_removevnode+0xf2
dounmount_leaf(18615aae5f8cb8c4,ffff80000036a400,0) at dounmount_leaf+0x69
dounmount(9e40f02736e5969a,ffff80000036a400,ffff8000ffff84a8) at dounmount+0xfa
mfs_start(3d14b3f603023238,ffff80000036a400,ffffff0053980b00) at mfs_start+0xf9
sys_mount(4cf5628a95493848,150,ffff8000ffff84a8) at sys_mount+0x5b5
syscall(2178f7174f982f96) at syscall+0x32a
Xsyscall(6,15,7f7ffffe2bf0,15,7f7ffffe308c,7f7ffffe3576) at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffe33e0, count: 5
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{1}>
-----
dmesg:
-----
OpenBSD 6.4-beta (GENERIC.MP) #198: Sat Aug 11 00:40:38 MDT 2018
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1593769984 (1519MB)
avail mem = 1536331776 (1465MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xe1000 (10 entries)
bios0: vendor innotek GmbH version "VirtualBox" date 12/01/2006
bios0: innotek GmbH VirtualBox
acpi0 at bios0: rev 2
acpi0: sleep states S0 S5
acpi0: tables DSDT FACP APIC SSDT
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz, 2295.14 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,SSSE3,CX16,PCID,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,RDRAND,HV,NXE,RDTSCP,LONG,LAHF,ITSC,FSGSBASE,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: CPU supports MTRRs but not enabled by BIOS
cpu0: apic clock running at 999MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz, 2294.94 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,SSSE3,CX16,PCID,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,RDRAND,HV,NXE,RDTSCP,LONG,LAHF,ITSC,FSGSBASE,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz, 2319.47 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,SSSE3,CX16,PCID,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,RDRAND,HV,NXE,RDTSCP,LONG,LAHF,ITSC,FSGSBASE,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 0, package 1
ioapic0 at mainbus0: apid 3 pa 0xfec00000, version 20, 24 pins
, remapped to apid 3
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C1(@1 halt!)
acpicpu1 at acpi0: C1(@1 halt!)
acpicpu2 at acpi0: C1(@1 halt!)
acpibat0 at acpi0: BAT0 model "1" serial 0 type VBOX oem "innotek"
acpiac0 at acpi0: AC unit online
acpivideo0 at acpi0: GFX0
pvbus0 at mainbus0: KVM
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
vga1 at pci0 dev 2 function 0 "InnoTek VirtualBox Graphics Adapter" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
em0 at pci0 dev 3 function 0 "Intel 82540EM" rev 0x02: apic 3 int 19,
address 08:00:27:b4:cc:17
"InnoTek VirtualBox Guest Service" rev 0x00 at pci0 dev 4 function 0
not configured
piixpm0 at pci0 dev 7 function 0 "Intel 82371AB Power" rev 0x08: apic 3 int 23
iic0 at piixpm0
ahci0 at pci0 dev 13 function 0 "Intel 82801HBM AHCI" rev 0x02: apic 3
int 21, AHCI 1.1
ahci0: device on port 0 didn't come ready, TFD: 0x171<ERR>
ahci0: port 0: 3.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, VBOX HARDDISK, 1.0> SCSI3 0/direct
fixed t10.ATA_VBOX_HARDDISK_VB47b41006-605213d6_
sd0: 14336MB, 512 bytes/sector, 29360128 sectors
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (003ecd7288e6b97e.a) swap on sd0b dump on sd0b
WARNING: / was not properly unmounted
-----
Brian Conway