NetBSD Problem Report #55561

From wiz@gatalith.at  Tue Aug 11 17:12:34 2020
Return-Path: <wiz@gatalith.at>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id D8D661A9239
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 11 Aug 2020 17:12:34 +0000 (UTC)
Message-Id: <20200811145200.10CB3390A54@gatalith.at>
Date: Tue, 11 Aug 2020 16:52:00 +0200 (CEST)
From: wiz@NetBSD.org
Reply-To: wiz@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: virtio panic on shutdown
X-Send-Pr-Version: 3.95

>Number:         55561
>Category:       kern
>Synopsis:       virtio panic on shutdown
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 11 17:15:00 +0000 2020
>Last-Modified:  Sun Aug 16 13:00:01 +0000 2020
>Originator:     wiz@NetBSD.org
>Release:        NetBSD 9.0
>Organization:

>Environment:


NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
On a recent reboot of a newly installed NetBSD 9.0/amd64 I saw a panic:

/netbsd: [ 425.9816243] uvm_fault(0xffffceeb5b6b2a20, 0x0, 1) -> e
/netbsd: [ 425.9816243] fatal page fault in supervisor mode
/netbsd: [ 425.9816243] trap type 6 code 0 rip 0xffffffff80240fb0 cs 0x8 rflags 0x10246 cr2 0x41 ilevel 0 rsp 0xffffda80b02fed70
/netbsd: [ 425.9816243] curlwp 0xffffceeb58a62080 pid 72.1 lowest kstack 0xffffda80b02fc2c0
/netbsd: [ 425.9816243] Skipping crash dump on recursive panic
/netbsd: [ 425.9816243] panic: trap
/netbsd: [ 425.9893443] cpu0: Begin traceback...
/netbsd: [ 425.9893443] vpanic() at netbsd:vpanic+0x160
/netbsd: [ 425.9893443] snprintf() at netbsd:snprintf
/netbsd: [ 425.9893443] startlwp() at netbsd:startlwp
/netbsd: [ 425.9893443] alltraps() at netbsd:alltraps+0xbb
/netbsd: [ 425.9992299] virtio_pci_free_interrupts() at netbsd:virtio_pci_free_interrupts+0x3c
/netbsd: [ 426.0220926] virtio_child_detach() at netbsd:virtio_child_detach+0x61
/netbsd: [ 426.0220926] vioscsi_detach() at netbsd:vioscsi_detach+0x9d
/netbsd: [ 426.0292585] config_detach() at netbsd:config_detach+0x85
/netbsd: [ 426.0292585] config_detach_all() at netbsd:config_detach_all+0x9f
/netbsd: [ 426.0292585] cpu_reboot() at netbsd:cpu_reboot+0x137
/netbsd: [ 426.0292585] sys_reboot() at netbsd:sys_reboot+0x75
/netbsd: [ 426.0292585] syscall() at netbsd:syscall+0x157
/netbsd: [ 426.0392749] --- syscall (number 208) ---
/netbsd: [ 426.0392749] 7af270242f5a:
/netbsd: [ 426.0392749] cpu0: End traceback...
/netbsd: [ 426.0392749] rebooting...

Two other reboots worked fine.

Here's the dmesg:

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
    2018, 2019, 2020 The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020
	mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC
total memory = 8191 MB
avail memory = 7930 MB
cpu_rng: RDSEED
rnd: seeded with 256 bits
timecounter: Timecounters tick every 10.000 msec
Kernelized RAIDframe activated
running cgd selftest aes-xts-256 aes-xts-512 done
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
netcup KVM Server (RS 1000 G9)
mainbus0 (root)
ACPI: RSDP 0x00000000000F58C0 000014 (v00 BOCHS )
ACPI: RSDT 0x00000000BFFE1544 00002C (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 0x00000000BFFE1450 000074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 0x00000000BFFE0040 001410 (v01 BOCHS  BXPCDSDT 00000001 BXPC 00000001)
ACPI: FACS 0x00000000BFFE0000 000040
ACPI: APIC 0x00000000BFFE14C4 000080 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: 1 ACPI AML tables successfully acquired and loaded
ioapic0 at mainbus0 apid 0: pa 0xfec00000, version 0x11, 24 pins
cpu0 at mainbus0 apid 0
cpu0: AMD EPYC 7702P 64-Core Processor               , id 0x830f10
cpu0: package 0, core 0, smt 0
cpu1 at mainbus0 apid 1
cpu1: AMD EPYC 7702P 64-Core Processor               , id 0x830f10
cpu1: package 0, core 1, smt 0
acpi0 at mainbus0: Intel ACPICA 20190405
acpi0: X/RSDT: OemId <BOCHS ,BXPCRSDT,00000001>, AslId <BXPC,00000001>
LNKS: ACPI: Found matching pin for 0.1.INTA at func 3: 9
LNKD: ACPI: Found matching pin for 0.1.INTD at func 2: 11
LNKC: ACPI: Found matching pin for 0.3.INTA at func 0: 11
LNKD: ACPI: Found matching pin for 0.4.INTA at func 0: 11
LNKA: ACPI: Found matching pin for 0.5.INTA at func 0: 10
acpi0: SCI interrupting at int 9
acpi0: fixed power button present
timecounter: Timecounter "ACPI-Safe" frequency 3579545 Hz quality 900
pckbc1 at acpi0 (KBD, PNP0303) (kbd port): io 0x60,0x64 irq 1
pckbc2 at acpi0 (MOU, PNP0F13) (aux port): irq 12
FDC0 (PNP0700) at acpi0 not configured
qemufwcfg0 at acpi0 (FWCF, QEMU0002): io 0x510-0x51b
qemufwcfg0: <QEMU>
ACPI: Enabled 2 GPEs in block 00 to 0F
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc1 (aux slot)
pckbc1: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0: vendor 8086 product 1237 (rev. 0x02)
pcib0 at pci0 dev 1 function 0: vendor 8086 product 7000 (rev. 0x00)
piixide0 at pci0 dev 1 function 1: Intel 82371SB IDE Interface (PIIX3) (rev. 0x00)
piixide0: bus-master DMA support present
piixide0: primary channel wired to compatibility mode
piixide0: primary channel interrupting at ioapic0 pin 14
atabus0 at piixide0 channel 0
piixide0: secondary channel wired to compatibility mode
piixide0: secondary channel interrupting at ioapic0 pin 15
atabus1 at piixide0 channel 1
uhci0 at pci0 dev 1 function 2: vendor 8086 product 7020 (rev. 0x01)
uhci0: interrupting at ioapic0 pin 11
usb0 at uhci0: USB revision 1.0
piixpm0 at pci0 dev 1 function 3: vendor 8086 product 7113 (rev. 0x03)
timecounter: Timecounter "piixpm0" frequency 3579545 Hz quality 1000
piixpm0: 24-bit timer
piixpm0: interrupting at ioapic0 pin 9
iic0 at piixpm0 port 0: I2C bus
vga0 at pci0 dev 2 function 0: vendor 1234 product 1111 (rev. 0x02)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
drm at vga0 not configured
virtio0 at pci0 dev 3 function 0
virtio0: Virtio Network Device (rev. 0x00)
vioif0 at virtio0: Features: 0x11070020<INDIRECT_DESC,NOTIFY_ON_EMPTY,CTRL_RX,CTRL_VQ,STATUS,MAC>
vioif0: Ethernet address 0a:15:67:68:14:29
virtio0: allocated 12288 byte for virtqueue 0 for rx0, size 256
virtio0: allocated 81920 byte for virtqueue 1 for tx0, size 256
virtio0: using 69632 byte (4352 entries) indirect descriptors
virtio0: allocated 8192 byte for virtqueue 2 for control, size 64
virtio0: config interrupting at msix0 vec 0
virtio0: queues interrupting at msix0 vec 1
virtio1 at pci0 dev 4 function 0
virtio1: Virtio SCSI Device (rev. 0x00)
vioscsi0 at virtio1: Features: 0x10000000<INDIRECT_DESC>
virtio1: allocated 45056 byte for virtqueue 0 for control, size 128
virtio1: using 36864 byte (2304 entries) indirect descriptors
virtio1: allocated 45056 byte for virtqueue 1 for event, size 128
virtio1: using 36864 byte (2304 entries) indirect descriptors
virtio1: allocated 45056 byte for virtqueue 2 for request, size 128
virtio1: using 36864 byte (2304 entries) indirect descriptors
vioscsi0: cmd_per_lun 128 qsize 128 seg_max 126 max_target 255 max_lun 16383
virtio1: config interrupting at msix1 vec 0
virtio1: queues interrupting at msix1 vec 1
scsibus0 at vioscsi0: 16 targets, 1024 luns per target
virtio2 at pci0 dev 5 function 0
virtio2: Virtio Console Device (rev. 0x00)
virtio2: autoconfiguration error: no matching child driver; not configured
isa0 at pcib0
attimer0 at isa0 port 0x40-0x43
pcppi0 at isa0 port 0x61
spkr0 at pcppi0: PC Speaker
wsbell at spkr0 not configured
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
attimer0: attached to pcppi0
acpicpu0 at cpu0: ACPI CPU
acpicpu0: C1: HLT, lat   0 us, pow     0 mW
acpicpu1 at cpu1: ACPI CPU
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
sd0 at scsibus0 target 1 lun 0: <QEMU, QEMU HARDDISK, 2.5+> disk fixed
sd0: 160 GB, 16383 cyl, 16 head, 1280 sec, 512 bytes/sect x 335544320 sectors
sd0: GPT GUID: 2b943bdb-6b02-4cee-be60-c17a2d8713c6
dk0 at sd0: "9a464653-ee78-4348-a0a1-09fa6e439d88", 318767037 blocks at 2048, type: ffs
dk1 at sd0: "e393e85a-61ea-47b3-8bfe-c5246c290870", 16775135 blocks at 318769152, type: swap
sd0: async, 8-bit transfers, tagged queueing
IPsec: Initialized Security Association Processing.
uhub0 at usb0: NetBSD (0000) UHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhidev0 at uhub0 port 1 configuration 1 interface 0
uhidev0: QEMU (0x627) QEMU USB Tablet (0x01), rev 2.00/0.00, addr 2, iclass 3/0
ums0 at uhidev0: 3 buttons and Z dir
wsmouse1 at ums0 mux 0
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <QEMU DVD-ROM, QM00003, 2.5+> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
cd0(piixide0:1:0): using PIO mode 4, DMA mode 2 (using DMA)
WARNING: 1 error while detecting hardware; check system log.
boot device: sd0
root on dk0 dumps on dk1
root file system type: ffs
kern.module.path=/stand/amd64/9.0/modules
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
syncing disks... done
unmounted procfs on /proc type procfs
unmounted ptyfs on /dev/pts type ptyfs
unmounted kernfs on /kern type kernfs
cd0: detached
sysbeep0: detached
midi0: detached
atapibus0: detached
iic0: detached
atabus1: detached
atabus0: detached
virtio2: detached
pchb0: detached
dk1 at sd0 (e393e85a-61ea-47b3-8bfe-c5246c290870) deleted
dk1: detached
forcefully unmounted /dev/dk0 on / type ffs
dk0 at sd0 (9a464653-ee78-4348-a0a1-09fa6e439d88) deleted
sd0: detached
scsibus0: detached
vioscsi0: detached
virtio1: detached
rebooting...
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
    2018, 2019, 2020 The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020
	mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC
total memory = 8191 MB
avail memory = 7930 MB
cpu_rng: RDSEED
rnd: seeded with 256 bits
timecounter: Timecounters tick every 10.000 msec
Kernelized RAIDframe activated
running cgd selftest aes-xts-256 aes-xts-512 done
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
netcup KVM Server (RS 1000 G9)
mainbus0 (root)
ACPI: RSDP 0x00000000000F58C0 000014 (v00 BOCHS )
ACPI: RSDT 0x00000000BFFE1544 00002C (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 0x00000000BFFE1450 000074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 0x00000000BFFE0040 001410 (v01 BOCHS  BXPCDSDT 00000001 BXPC 00000001)
ACPI: FACS 0x00000000BFFE0000 000040
ACPI: APIC 0x00000000BFFE14C4 000080 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: 1 ACPI AML tables successfully acquired and loaded
ioapic0 at mainbus0 apid 0: pa 0xfec00000, version 0x11, 24 pins
cpu0 at mainbus0 apid 0
cpu0: AMD EPYC 7702P 64-Core Processor               , id 0x830f10
cpu0: package 0, core 0, smt 0
cpu1 at mainbus0 apid 1
cpu1: AMD EPYC 7702P 64-Core Processor               , id 0x830f10
cpu1: package 0, core 1, smt 0
acpi0 at mainbus0: Intel ACPICA 20190405
acpi0: X/RSDT: OemId <BOCHS ,BXPCRSDT,00000001>, AslId <BXPC,00000001>
LNKS: ACPI: Found matching pin for 0.1.INTA at func 3: 9
LNKD: ACPI: Found matching pin for 0.1.INTD at func 2: 11
LNKC: ACPI: Found matching pin for 0.3.INTA at func 0: 11
LNKD: ACPI: Found matching pin for 0.4.INTA at func 0: 11
LNKA: ACPI: Found matching pin for 0.5.INTA at func 0: 10
acpi0: SCI interrupting at int 9
acpi0: fixed power button present
timecounter: Timecounter "ACPI-Safe" frequency 3579545 Hz quality 900
pckbc1 at acpi0 (KBD, PNP0303) (kbd port): io 0x60,0x64 irq 1
pckbc2 at acpi0 (MOU, PNP0F13) (aux port): irq 12
FDC0 (PNP0700) at acpi0 not configured
qemufwcfg0 at acpi0 (FWCF, QEMU0002): io 0x510-0x51b
qemufwcfg0: <QEMU>
ACPI: Enabled 2 GPEs in block 00 to 0F
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc1 (aux slot)
pckbc1: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0: vendor 8086 product 1237 (rev. 0x02)
pcib0 at pci0 dev 1 function 0: vendor 8086 product 7000 (rev. 0x00)
piixide0 at pci0 dev 1 function 1: Intel 82371SB IDE Interface (PIIX3) (rev. 0x00)
piixide0: bus-master DMA support present
piixide0: primary channel wired to compatibility mode
piixide0: primary channel interrupting at ioapic0 pin 14
atabus0 at piixide0 channel 0
piixide0: secondary channel wired to compatibility mode
piixide0: secondary channel interrupting at ioapic0 pin 15
atabus1 at piixide0 channel 1
uhci0 at pci0 dev 1 function 2: vendor 8086 product 7020 (rev. 0x01)
uhci0: interrupting at ioapic0 pin 11
usb0 at uhci0: USB revision 1.0
piixpm0 at pci0 dev 1 function 3: vendor 8086 product 7113 (rev. 0x03)
timecounter: Timecounter "piixpm0" frequency 3579545 Hz quality 1000
piixpm0: 24-bit timer
piixpm0: interrupting at ioapic0 pin 9
iic0 at piixpm0 port 0: I2C bus
vga0 at pci0 dev 2 function 0: vendor 1234 product 1111 (rev. 0x02)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
drm at vga0 not configured
virtio0 at pci0 dev 3 function 0
virtio0: Virtio Network Device (rev. 0x00)
vioif0 at virtio0: Features: 0x11070020<INDIRECT_DESC,NOTIFY_ON_EMPTY,CTRL_RX,CTRL_VQ,STATUS,MAC>
vioif0: Ethernet address 0a:15:67:68:14:29
virtio0: allocated 12288 byte for virtqueue 0 for rx0, size 256
virtio0: allocated 81920 byte for virtqueue 1 for tx0, size 256
virtio0: using 69632 byte (4352 entries) indirect descriptors
virtio0: allocated 8192 byte for virtqueue 2 for control, size 64
virtio0: config interrupting at msix0 vec 0
virtio0: queues interrupting at msix0 vec 1
virtio1 at pci0 dev 4 function 0
virtio1: Virtio SCSI Device (rev. 0x00)
vioscsi0 at virtio1: Features: 0x10000000<INDIRECT_DESC>
virtio1: allocated 45056 byte for virtqueue 0 for control, size 128
virtio1: using 36864 byte (2304 entries) indirect descriptors
virtio1: allocated 45056 byte for virtqueue 1 for event, size 128
virtio1: using 36864 byte (2304 entries) indirect descriptors
virtio1: allocated 45056 byte for virtqueue 2 for request, size 128
virtio1: using 36864 byte (2304 entries) indirect descriptors
vioscsi0: cmd_per_lun 128 qsize 128 seg_max 126 max_target 255 max_lun 16383
virtio1: config interrupting at msix1 vec 0
virtio1: queues interrupting at msix1 vec 1
scsibus0 at vioscsi0: 16 targets, 1024 luns per target
virtio2 at pci0 dev 5 function 0
virtio2: Virtio Console Device (rev. 0x00)
virtio2: autoconfiguration error: no matching child driver; not configured
isa0 at pcib0
attimer0 at isa0 port 0x40-0x43
pcppi0 at isa0 port 0x61
spkr0 at pcppi0: PC Speaker
wsbell at spkr0 not configured
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
attimer0: attached to pcppi0
acpicpu0 at cpu0: ACPI CPU
acpicpu0: C1: HLT, lat   0 us, pow     0 mW
acpicpu1 at cpu1: ACPI CPU
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
sd0 at scsibus0 target 1 lun 0: <QEMU, QEMU HARDDISK, 2.5+> disk fixed
sd0: 160 GB, 16383 cyl, 16 head, 1280 sec, 512 bytes/sect x 335544320 sectors
sd0: GPT GUID: 2b943bdb-6b02-4cee-be60-c17a2d8713c6
dk0 at sd0: "9a464653-ee78-4348-a0a1-09fa6e439d88", 318767037 blocks at 2048, type: ffs
dk1 at sd0: "e393e85a-61ea-47b3-8bfe-c5246c290870", 16775135 blocks at 318769152, type: swap
sd0: async, 8-bit transfers, tagged queueing
IPsec: Initialized Security Association Processing.
uhub0 at usb0: NetBSD (0000) UHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhidev0 at uhub0 port 1 configuration 1 interface 0
uhidev0: QEMU (0x627) QEMU USB Tablet (0x01), rev 2.00/0.00, addr 2, iclass 3/0
ums0 at uhidev0: 3 buttons and Z dir
wsmouse1 at ums0 mux 0
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <QEMU DVD-ROM, QM00003, 2.5+> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
cd0(piixide0:1:0): using PIO mode 4, DMA mode 2 (using DMA)
WARNING: 1 error while detecting hardware; check system log.
boot device: sd0
root on dk0 dumps on dk1
root file system type: ffs
kern.module.path=/stand/amd64/9.0/modules
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
syncing disks... done
unmounted procfs on /proc type procfs
unmounted ptyfs on /dev/pts type ptyfs
unmounted kernfs on /kern type kernfs
cd0: detached
sysbeep0: detached
midi0: detached
atapibus0: detached
iic0: detached
atabus1: detached
atabus0: detached
virtio2: detached
pchb0: detached
dk1 at sd0 (e393e85a-61ea-47b3-8bfe-c5246c290870) deleted
dk1: detached
forcefully unmounted /dev/dk0 on / type ffs
dk0 at sd0 (9a464653-ee78-4348-a0a1-09fa6e439d88) deleted
sd0: detached
scsibus0: detached
uvm_fault(0xffffceeb5b6b2a20, 0x0, 1) -> e
fatal page fault in supervisor mode
trap type 6 code 0 rip 0xffffffff80240fb0 cs 0x8 rflags 0x10246 cr2 0x41 ilevel 0 rsp 0xffffda80b02fed70
curlwp 0xffffceeb58a62080 pid 72.1 lowest kstack 0xffffda80b02fc2c0
Skipping crash dump on recursive panic
panic: trap
cpu0: Begin traceback...
vpanic() at netbsd:vpanic+0x160
snprintf() at netbsd:snprintf
startlwp() at netbsd:startlwp
alltraps() at netbsd:alltraps+0xbb
virtio_pci_free_interrupts() at netbsd:virtio_pci_free_interrupts+0x3c
virtio_child_detach() at netbsd:virtio_child_detach+0x61
vioscsi_detach() at netbsd:vioscsi_detach+0x9d
config_detach() at netbsd:config_detach+0x85
config_detach_all() at netbsd:config_detach_all+0x9f
cpu_reboot() at netbsd:cpu_reboot+0x137
sys_reboot() at netbsd:sys_reboot+0x75
syscall() at netbsd:syscall+0x157
--- syscall (number 208) ---
7af270242f5a:
cpu0: End traceback...
rebooting...
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
    2018, 2019, 2020 The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020
	mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC
total memory = 8191 MB
avail memory = 7930 MB
cpu_rng: RDSEED
rnd: seeded with 256 bits
timecounter: Timecounters tick every 10.000 msec
Kernelized RAIDframe activated
running cgd selftest aes-xts-256 aes-xts-512 done
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
netcup KVM Server (RS 1000 G9)
mainbus0 (root)
ACPI: RSDP 0x00000000000F58C0 000014 (v00 BOCHS )
ACPI: RSDT 0x00000000BFFE1544 00002C (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 0x00000000BFFE1450 000074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 0x00000000BFFE0040 001410 (v01 BOCHS  BXPCDSDT 00000001 BXPC 00000001)
ACPI: FACS 0x00000000BFFE0000 000040
ACPI: APIC 0x00000000BFFE14C4 000080 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: 1 ACPI AML tables successfully acquired and loaded
ioapic0 at mainbus0 apid 0: pa 0xfec00000, version 0x11, 24 pins
cpu0 at mainbus0 apid 0
cpu0: AMD EPYC 7702P 64-Core Processor               , id 0x830f10
cpu0: package 0, core 0, smt 0
cpu1 at mainbus0 apid 1
cpu1: AMD EPYC 7702P 64-Core Processor               , id 0x830f10
cpu1: package 0, core 1, smt 0
acpi0 at mainbus0: Intel ACPICA 20190405
acpi0: X/RSDT: OemId <BOCHS ,BXPCRSDT,00000001>, AslId <BXPC,00000001>
LNKS: ACPI: Found matching pin for 0.1.INTA at func 3: 9
LNKD: ACPI: Found matching pin for 0.1.INTD at func 2: 11
LNKC: ACPI: Found matching pin for 0.3.INTA at func 0: 11
LNKD: ACPI: Found matching pin for 0.4.INTA at func 0: 11
LNKA: ACPI: Found matching pin for 0.5.INTA at func 0: 10
acpi0: SCI interrupting at int 9
acpi0: fixed power button present
timecounter: Timecounter "ACPI-Safe" frequency 3579545 Hz quality 900
pckbc1 at acpi0 (KBD, PNP0303) (kbd port): io 0x60,0x64 irq 1
pckbc2 at acpi0 (MOU, PNP0F13) (aux port): irq 12
FDC0 (PNP0700) at acpi0 not configured
qemufwcfg0 at acpi0 (FWCF, QEMU0002): io 0x510-0x51b
qemufwcfg0: <QEMU>
ACPI: Enabled 2 GPEs in block 00 to 0F
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc1 (aux slot)
pckbc1: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0: vendor 8086 product 1237 (rev. 0x02)
pcib0 at pci0 dev 1 function 0: vendor 8086 product 7000 (rev. 0x00)
piixide0 at pci0 dev 1 function 1: Intel 82371SB IDE Interface (PIIX3) (rev. 0x00)
piixide0: bus-master DMA support present
piixide0: primary channel wired to compatibility mode
piixide0: primary channel interrupting at ioapic0 pin 14
atabus0 at piixide0 channel 0
piixide0: secondary channel wired to compatibility mode
piixide0: secondary channel interrupting at ioapic0 pin 15
atabus1 at piixide0 channel 1
uhci0 at pci0 dev 1 function 2: vendor 8086 product 7020 (rev. 0x01)
uhci0: interrupting at ioapic0 pin 11
usb0 at uhci0: USB revision 1.0
piixpm0 at pci0 dev 1 function 3: vendor 8086 product 7113 (rev. 0x03)
timecounter: Timecounter "piixpm0" frequency 3579545 Hz quality 1000
piixpm0: 24-bit timer
piixpm0: interrupting at ioapic0 pin 9
iic0 at piixpm0 port 0: I2C bus
vga0 at pci0 dev 2 function 0: vendor 1234 product 1111 (rev. 0x02)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
drm at vga0 not configured
virtio0 at pci0 dev 3 function 0
virtio0: Virtio Network Device (rev. 0x00)
vioif0 at virtio0: Features: 0x11070020<INDIRECT_DESC,NOTIFY_ON_EMPTY,CTRL_RX,CTRL_VQ,STATUS,MAC>
vioif0: Ethernet address 0a:15:67:68:14:29
virtio0: allocated 12288 byte for virtqueue 0 for rx0, size 256
virtio0: allocated 81920 byte for virtqueue 1 for tx0, size 256
virtio0: using 69632 byte (4352 entries) indirect descriptors
virtio0: allocated 8192 byte for virtqueue 2 for control, size 64
virtio0: config interrupting at msix0 vec 0
virtio0: queues interrupting at msix0 vec 1
virtio1 at pci0 dev 4 function 0
virtio1: Virtio SCSI Device (rev. 0x00)
vioscsi0 at virtio1: Features: 0x10000000<INDIRECT_DESC>
virtio1: allocated 45056 byte for virtqueue 0 for control, size 128
virtio1: using 36864 byte (2304 entries) indirect descriptors
virtio1: allocated 45056 byte for virtqueue 1 for event, size 128
virtio1: using 36864 byte (2304 entries) indirect descriptors
virtio1: allocated 45056 byte for virtqueue 2 for request, size 128
virtio1: using 36864 byte (2304 entries) indirect descriptors
vioscsi0: cmd_per_lun 128 qsize 128 seg_max 126 max_target 255 max_lun 16383
virtio1: config interrupting at msix1 vec 0
virtio1: queues interrupting at msix1 vec 1
scsibus0 at vioscsi0: 16 targets, 1024 luns per target
virtio2 at pci0 dev 5 function 0
virtio2: Virtio Console Device (rev. 0x00)
virtio2: autoconfiguration error: no matching child driver; not configured
isa0 at pcib0
attimer0 at isa0 port 0x40-0x43
pcppi0 at isa0 port 0x61
spkr0 at pcppi0: PC Speaker
wsbell at spkr0 not configured
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
attimer0: attached to pcppi0
acpicpu0 at cpu0: ACPI CPU
acpicpu0: C1: HLT, lat   0 us, pow     0 mW
acpicpu1 at cpu1: ACPI CPU
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
sd0 at scsibus0 target 1 lun 0: <QEMU, QEMU HARDDISK, 2.5+> disk fixed
sd0: 160 GB, 16383 cyl, 16 head, 1280 sec, 512 bytes/sect x 335544320 sectors
sd0: GPT GUID: XXX
dk0 at sd0: "XXX", 318767037 blocks at 2048, type: ffs
dk1 at sd0: "XXX", 16775135 blocks at 318769152, type: swap
sd0: async, 8-bit transfers, tagged queueing
IPsec: Initialized Security Association Processing.
uhub0 at usb0: NetBSD (0000) UHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhidev0 at uhub0 port 1 configuration 1 interface 0
uhidev0: QEMU (0x627) QEMU USB Tablet (0x01), rev 2.00/0.00, addr 2, iclass 3/0
ums0 at uhidev0: 3 buttons and Z dir
wsmouse1 at ums0 mux 0
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <QEMU DVD-ROM, QM00003, 2.5+> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
cd0(piixide0:1:0): using PIO mode 4, DMA mode 2 (using DMA)
WARNING: 1 error while detecting hardware; check system log.
boot device: sd0
root on dk0 dumps on dk1
root file system type: ffs
kern.module.path=/stand/amd64/9.0/modules
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
>How-To-Repeat:
shutdown -r now
>Fix:


>Audit-Trail:
From: =?UTF-8?B?SmFyb23DrXIgRG9sZcSNZWs=?= <jaromir.dolecek@gmail.com>
To: "gnats-bugs@NetBSD.org" <gnats-bugs@netbsd.org>
Cc: 
Subject: Re: kern/55561: virtio panic on shutdown
Date: Sun, 16 Aug 2020 14:31:32 +0200

 Can you please check in dmesg which virtio device is being detached
 when the panic happens during shutdown? i.e. please include the 'XXX:
 detached' also for the panic case.

From: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: jaromir.dolecek@gmail.com
Subject: Re: kern/55561: virtio panic on shutdown
Date: Sun, 16 Aug 2020 14:50:26 +0200

 On Sun, Aug 16, 2020 at 12:35:01PM +0000, Jaromír Doleček wrote:
 >  Can you please check in dmesg which virtio device is being detached
 >  when the panic happens during shutdown? i.e. please include the 'XXX:
 >  detached' also for the panic case.

 Here are the lines before the panic:

 [ 176.1202650] syncing disks... done
 [ 176.1202650] unmounted procfs on /proc type procfs
 [ 176.1202650] unmounted ptyfs on /dev/pts type ptyfs
 [ 176.1202650] unmounted kernfs on /kern type kernfs
 [ 176.1802791] cd0: detached
 [ 176.1802791] sysbeep0: detached
 [ 176.1802791] midi0: detached
 [ 176.1802791] atapibus0: detached
 [ 176.1802791] iic0: detached
 [ 176.1802791] atabus1: detached
 [ 176.1802791] atabus0: detached
 [ 176.1802791] virtio2: detached
 [ 176.1802791] pchb0: detached
 [ 176.1802791] dk1 at sd0 (e393e85a-61ea-47b3-8bfe-c5246c290870) deleted
 [ 176.1802791] dk1: detached
 [ 176.1902770] forcefully unmounted /dev/dk0 on / type ffs
 [ 176.1902770] dk0 at sd0 (9a464653-ee78-4348-a0a1-09fa6e439d88) deleted
 [ 176.1902770] sd0: detached
 [ 176.1902770] scsibus0: detached
 [ 176.1902770] uvm_fault(0xffffbd210b241178, 0x0, 1) -> e
 [ 176.2003048] fatal page fault in supervisor mode
 [ 176.2103757] trap type 6 code 0 rip 0xffffffff80240fb0 cs 0x8 rflags 0x10246 cr2 0x41 ilevel 0 rsp 0xffff9600b0782d70
 [ 176.2103757] curlwp 0xffffbd20f6820540 pid 528.1 lowest kstack 0xffff9600b07802c0
 [ 176.2103757] Skipping crash dump on recursive panic
 [ 176.2103757] panic: trap


 Is that what you're looking for?
  Thomas

From: =?UTF-8?B?SmFyb23DrXIgRG9sZcSNZWs=?= <jaromir.dolecek@gmail.com>
To: "gnats-bugs@NetBSD.org" <gnats-bugs@netbsd.org>
Cc: 
Subject: Re: kern/55561: virtio panic on shutdown
Date: Sun, 16 Aug 2020 14:55:56 +0200

 Le dim. 16 ao=C3=BBt 2020 =C3=A0 14:50, Thomas Klausner <wiz@netbsd.org> a =
 =C3=A9crit :
 > Is that what you're looking for?
 >  Thomas

 Yes, that's it.
 Jaromir

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.