NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/58335 (Kernel panic when shutting down a virtual machine with Virtio devices)



The following reply was made to PR kern/58335; it has been noted by GNATS.

From: =?UTF-8?Q?Roddy_Gonz=C3=A1lez?= <roddy.gonzalez.89%gmail.com@localhost>
To: Taylor R Campbell <campbell%mumble.net@localhost>
Cc: gnats-bugs%netbsd.org@localhost, kern-bug-people%netbsd.org@localhost,
 netbsd-bugs%netbsd.org@localhost, gnats-admin%netbsd.org@localhost
Subject: Re: kern/58335 (Kernel panic when shutting down a virtual machine
 with Virtio devices)
Date: Fri, 28 Jun 2024 12:26:43 +0200

 Hi! Thanks!
 
 I applied the patch and rebuilt. Same results.
 
 This is with kern.detachall = 0
 
 
 ```
    \\-__,------,___.
     \\        __,---`  NetBSD/x86 EFI Boot (x64)
      \\       `---,_.  Revision 1.2 (Thu Jun 27 16:24:39 UTC 2024)
       \\-,_____,.---`
        \\
         \\
          \\
 
  > boot
 21697920+795008+1302144 [967040+1416528+1038924]=0x1b44418
 Loading /stand/amd64/10.99.10/modules/cd9660/cd9660.kmod
 [   1.0000000] cpu_rng: rdrand/rdseed
 [   1.0000000] entropy: ready
 [   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
 [   1.0000000]     2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 
 2013,
 [   1.0000000]     2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 
 2023,
 [   1.0000000]     2024
 [   1.0000000]     The NetBSD Foundation, Inc.  All rights reserved.
 [   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
 [   1.0000000]     The Regents of the University of California.  All 
 rights reserved.
 
 [   1.0000000] NetBSD 10.99.10 (GENERIC) #0: Thu Jun 27 20:02:04 CEST 2024
 [   1.0000000] 	roddy@apollo:/home/roddy/obj/sys/arch/amd64/compile/GENERIC
 [   1.0000000] total memory = 2043 MB
 [   1.0000000] avail memory = 1948 MB
 [   1.0000000] WARNING: module error: module `cd9660' pushed by boot 
 loader already exists
 [   1.0000040] efi: systbl at pa 7f9ed018
 [   1.0000040] mainbus0 (root)
 [   1.0000040] ACPI: RSDP 0x000000007FB7D014 000024 (v02 BOCHS )
 [   1.0000040] ACPI: XSDT 0x000000007FB7C0E8 000044 (v01 BOCHS  BXPC 
 00000001      01000013)
 [   1.0000040] ACPI: FACP 0x000000007FB79000 000074 (v01 BOCHS  BXPC 
 00000001 BXPC 00000001)
 [   1.0000040] ACPI: DSDT 0x000000007FB7A000 001792 (v01 BOCHS  BXPC 
 00000001 BXPC 00000001)
 [   1.0000040] ACPI: FACS 0x000000007FBDC000 000040
 [   1.0000040] ACPI: APIC 0x000000007FB78000 000090 (v01 BOCHS  BXPC 
 00000001 BXPC 00000001)
 [   1.0000040] ACPI: WAET 0x000000007FB77000 000028 (v01 BOCHS  BXPC 
 00000001 BXPC 00000001)
 [   1.0000040] ACPI: BGRT 0x000000007FB76000 000038 (v01 INTEL  EDK2 
 00000002      01000013)
 [   1.0000040] ACPI: 1 ACPI AML tables successfully acquired and loaded
 [   1.0000040] ioapic0 at mainbus0 apid 0
 [   1.0000040] cpu0 at mainbus0 apid 0
 [   1.0000040] cpu0: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz, id 0x906ea
 [   1.0000040] cpu0: node 0, package 0, core 0, smt 0
 [   1.0000040] cpu1 at mainbus0 apid 1
 [   1.0000040] cpu1: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz, id 0x906ea
 [   1.0000040] cpu1: node 0, package 1, core 0, smt 0
 [   1.0000040] cpu2 at mainbus0 apid 2
 [   1.0000040] cpu2: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz, id 0x906ea
 [   1.0000040] cpu2: node 0, package 2, core 0, smt 0
 [   1.0000040] cpu3 at mainbus0 apid 3
 [   1.0000040] cpu3: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz, id 0x906ea
 [   1.0000040] cpu3: node 0, package 3, core 0, smt 0
 [   1.0000040] acpi0 at mainbus0: Intel ACPICA 20230628
 [   1.0000040] LNKS: BIOS IRQ 10 for 0.1.INTA is invalid
 [   1.0000040] acpi0: fixed power button present
 [   1.0168883] com0 at acpi0 (COM2, PNP0501-2): io 0x2f8-0x2ff irq 3
 [   1.0168883] com0: ns16550a, 16-byte FIFO
 [   1.0168883] com1 at acpi0 (COM1, PNP0501-1): io 0x3f8-0x3ff irq 4
 [   1.0168883] com1: ns16550a, 16-byte FIFO
 [   1.0168883] com1: console
 [   1.0168883] pckbc1 at acpi0 (KBD, PNP0303) (kbd port): io 0x60,0x64 irq 1
 [   1.0168883] pckbc2 at acpi0 (MOU, PNP0F13) (aux port): irq 12
 [   1.0168883] fdc0 at acpi0 (FDC0, PNP0700): io 0x3f2-0x3f5,0x3f7 irq 6 
 drq 2
 [   1.0168883] qemufwcfg0 at acpi0 (FWCF, QEMU0002): io 0x510-0x51b
 [   1.0168883] ACPI: Enabled 2 GPEs in block 00 to 0F
 [   1.0168883] pckbd0 at pckbc1 (kbd slot)
 [   1.0168883] pckbc1: using irq 1 for kbd slot
 [   1.0168883] wskbd0 at pckbd0 mux 1
 [   1.0168883] pms0 at pckbc1 (aux slot)
 [   1.0168883] pckbc1: using irq 12 for aux slot
 [   1.0168883] wsmouse0 at pms0 mux 0
 [   1.0168883] pci0 at mainbus0 bus 0: configuration mode 1
 [   1.0168883] pchb0 at pci0 dev 0 function 0: Intel 82441FX (PMC) PCI 
 and Memory Controller (rev. 0x02)
 [   1.0168883] pcib0 at pci0 dev 1 function 0: Intel 82371SB (PIIX3) 
 PCI-ISA Bridge (rev. 0x00)
 [   1.0168883] piixide0 at pci0 dev 1 function 1: Intel 82371SB IDE 
 Interface (PIIX3) (rev. 0x00)
 [   1.0168883] piixide0: primary channel interrupting at ioapic0 pin 14
 [   1.0168883] atabus0 at piixide0 channel 0
 [   1.0168883] piixide0: secondary channel ignored (disabled)
 [   1.0168883] piixpm0 at pci0 dev 1 function 3: Intel 82371AB (PIIX4) 
 Power Management Controller (rev. 0x03)
 [   1.0168883] piixpm0: 24-bit timer
 [   1.0168883] piixpm0: interrupting at ioapic0 pin 9
 [   1.0168883] iic0 at piixpm0 port 0: I2C bus
 [   1.0168883] virtio0 at pci0 dev 2 function 0
 [   1.0168883] virtio0: Unknown device (id 16, rev. 0x01)
 [   1.0168883] virtio0: no matching child driver; not configured
 [   1.0168883] wm0 at pci0 dev 3 function 0: Intel i82540EM 1000BASE-T 
 Ethernet (rev. 0x03)
 [   1.0168883] wm0: interrupting at ioapic0 pin 11
 [   1.0168883] wm0: Ethernet address 52:54:00:e7:05:1f
 [   1.0168883] makphy0 at wm0 phy 1: Marvell 88E1011 Gigabit PHY, rev. 0
 [   1.0168883] makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 
 1000baseT, 1000baseT-FDX, auto
 [   1.0168883] hdaudio0 at pci0 dev 4 function 0: HD Audio Controller
 [   1.0168883] hdaudio0: interrupting at msi0 vec 0
 [   1.0168883] hdaudio0: HDA ver. 1.0, OSS 4, ISS 4, BSS 0, SDO 1, 64-bit
 [   1.0168883] hdafg0 at hdaudio0: vendor 1af4 product 0022
 [   1.0168883] hdafg0: DAC00 2ch: Speaker [Jack]
 [   1.0168883] hdafg0: ADC01 2ch: Line In [Jack]
 [   1.0168883] hdafg0: 2ch/2ch 16000Hz 22050Hz 32000Hz 44100Hz 48000Hz 
 88200Hz 96000Hz PCM16
 [   1.0168883] audio0 at hdafg0: playback, capture, full duplex, independent
 [   1.0168883] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) 
 for playback
 [   1.0168883] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) 
 for recording
 [   1.0168883] spkr0 at audio0: PC Speaker (synthesized)
 [   1.0168883] wsbell at spkr0 not configured
 [   1.0168883] uhci0 at pci0 dev 5 function 0: Intel 82801I USB UHCI 
 Controller (rev. 0x03)
 [   1.0168883] uhci0: interrupting at ioapic0 pin 10
 [   1.0168883] usb0 at uhci0: USB revision 1.0
 [   1.0168883] uhci1 at pci0 dev 5 function 1: Intel 82801I USB UHCI 
 Controller (rev. 0x03)
 [   1.0168883] uhci1: interrupting at ioapic0 pin 10
 [   1.0168883] usb1 at uhci1: USB revision 1.0
 [   1.0168883] uhci2 at pci0 dev 5 function 2: Intel 82801I USB UHCI 
 Controller (rev. 0x03)
 [   1.0168883] uhci2: interrupting at ioapic0 pin 11
 [   1.0168883] usb2 at uhci2: USB revision 1.0
 [   1.0168883] ehci0 at pci0 dev 5 function 7: Intel 82801I USB EHCI 
 Controller (rev. 0x03)
 [   1.0168883] ehci0: interrupting at ioapic0 pin 11
 [   1.0168883] ehci0: 3 companion controllers, 2 ports each: uhci0 uhci1 
 uhci2
 [   1.0168883] ehci0: Using DMA subregion for control data structures
 [   1.0168883] usb3 at ehci0: USB revision 2.0
 [   1.0168883] virtio1 at pci0 dev 6 function 0
 [   1.0168883] virtio1: console device (id 3, rev. 0x00)
 [   1.0168883] virtio1: no matching child driver; not configured
 [   1.0168883] virtio2 at pci0 dev 7 function 0
 [   1.0168883] virtio2: memory balloon device (id 5, rev. 0x00)
 [   1.0168883] viomb0 at virtio2: features: 0x10000000<INDIRECT_DESC>
 [   1.0168883] virtio2: interrupting at ioapic0 pin 11
 [   1.0168883] isa0 at pcib0
 [   1.0168883] attimer0 at isa0 port 0x40-0x43
 [   1.0168883] pcppi0 at isa0 port 0x61
 [   1.0168883] spkr1 at pcppi0: PC Speaker
 [   1.0168883] wsbell at spkr1 not configured
 [   1.0168883] midi0 at pcppi0: PC speaker
 [   1.0168883] sysbeep0 at pcppi0
 [   1.0168883] attimer0: attached to pcppi0
 [   1.0168883] acpicpu0 at cpu0: ACPI CPU
 [   1.0168883] acpicpu1 at cpu1: ACPI CPU
 [   1.0168883] acpicpu2 at cpu2: ACPI CPU
 [   1.0168883] acpicpu3 at cpu3: ACPI CPU
 [   1.6401901] atapibus0 at atabus0: 2 targets
 [   1.6511211] cd0 at atapibus0 drive 1: <QEMU DVD-ROM, QM00002, 2.5+> 
 cdrom removable
 [   1.6618814] uhub0 at usb0: NetBSD (0x0000) UHCI root hub (0x0000), 
 class 9/0, rev 1.00/1.00, addr 1
 [   1.6727652] uhub1 at usb1: NetBSD (0x0000) UHCI root hub (0x0000), 
 class 9/0, rev 1.00/1.00, addr 1
 [   1.6836037] uhub2 at usb3: NetBSD (0x0000) EHCI root hub (0x0000), 
 class 9/0, rev 2.00/1.00, addr 1
 [   1.6943934] uhub3 at usb2: NetBSD (0x0000) UHCI root hub (0x0000), 
 class 9/0, rev 1.00/1.00, addr 1
 [   1.7100007] wd0 at atabus0 drive 0
 [   1.7100007] wd0: <QEMU HARDDISK>
 [   1.7161933] wd0: 20480 MB, 41610 cyl, 16 head, 63 sec, 512 bytes/sect 
 x 41943040 sectors
 [   1.7485961] dk0 at wd0: "EFI", 262144 blocks at 4096, type: msdos
 [   1.7485961] dk1 at wd0: "NetBSD", 16777216 blocks at 266240, type: ffs
 [   1.7595366] dk2 at wd0: "syscgd", 24895488 blocks at 17043456, type: cgd
 [   2.9305348] uhidev0 at uhub2 port 1 configuration 1 interface 0
 [   2.9413273] uhidev0: QEMU (0x0627) QEMU USB Tablet (0x0001), rev 
 2.00/0.00, addr 2, iclass 3/0
 [   2.9629767] ums0 at uhidev0: 3 buttons and Z dir
 [   2.9629767] wsmouse1 at ums0 mux 0
 [   2.9738353] swwdog0: software watchdog initialized
 [   3.0063266] WARNING: 2 errors while detecting hardware; check system log.
 [   3.0063266] boot device: cd0
 [   3.0497265] root on cd0a dumps on cd0b
 [   3.0930370] root file system type: cd9660
 [   3.1071073] kern.module.path=/stand/amd64/10.99.10/modules
 Created tmpfs /dev (1835008 byte, 3552 inodes)
 
 
 You are using a serial console, we do not know your terminal emulation.
 Please select one, typical values are:
 
          vt100
          ansi
          xterm
 
 Terminal type (just hit ENTER for 'vt220'): xterm
 # uname -a
 NetBSD  10.99.10 NetBSD 10.99.10 (GENERIC) #0: Thu Jun 27 20:02:04 CEST 
 2024  roddy@apollo:/home/roddy/obj/sys/arch/amd64/compile/GENERIC amd64
 # sysctl kern.detachall
 kern.detachall = 0
 # shutdown -r now
 Shutdown NOW!
 shutdown: [pid 507]
 # wall: You have write permission turned off; no reply possible
 wall: Cannot stat `/var/run/utmp': No such file or directory
 shutdown: reboot by root:
 
 System shutdown time has arrived
 
 About to run shutdown hooks...
 cron not running? (check /var/run/cron.pid).
 inetd not running? (check /var/run/inetd.pid).
 Saved entropy to /var/db/entropy-file.
 Forcibly unmounting /tmp
 Forcibly unmounting /var
 Forcibly unmounting /etc
 Removing block-type swap devices
 Fri Jun 28 10:10:54 UTC 2024
 
 Done running shutdown hooks.
 init: can't add utmpx record for `runlevel': Bad file descriptor
 init: can't add utmpx record for `runlevel': Bad file descriptor
 init: can't add utmpx record for `console': Bad file descriptor
 [  86.3064332] syncing disks... done
 [  86.3931285] sysbeep0: detached
 [  86.3931285] midi0: detached
 [  86.4039573] dk2 at wd0 (syscgd) deleted
 [  86.4039573] dk1 at wd0 (NetBSD) deleted
 [  86.4039573] dk0 at wd0 (EFI) deleted
 [  86.4148699] wd0: detached
 [  86.4148699] uhub3: detached
 [  86.4148699] uhub1: detached
 [  86.4257710] uhub0: detached
 [  86.4257710] usb2: detached
 [  86.4257710] usb1: detached
 [  86.4377982] usb0: detached
 [  86.4377982] iic0: detached
 [  86.4377982] virtio1: detached
 [  86.4474575] uhci2: detached
 [  86.4474575] uhci1: detached
 [  86.4583100] uhci0: detached
 [  86.4691167] makphy0: detached
 [  86.4798988] wm0: detached
 [  86.4798988] virtio0: detached
 [  86.4798988] pchb0: detached
 [  86.5015733] cd0: detached
 [  86.5015733] atapibus0: detached
 [  86.5015733] atabus0: detached
 [  86.5124443] rebooting...
 ```
 
 And this is with kern.detachall = 1
 
 
 ```
    \\-__,------,___.
     \\        __,---`  NetBSD/x86 EFI Boot (x64)
      \\       `---,_.  Revision 1.2 (Thu Jun 27 16:24:39 UTC 2024)
       \\-,_____,.---`
        \\
         \\
          \\
 
  > boot
 21697920+795008+1302144 [967040+1416528+1038924]=0x1b44418
 Loading /stand/amd64/10.99.10/modules/cd9660/cd9660.kmod
 [   1.0000000] cpu_rng: rdrand/rdseed
 [   1.0000000] entropy: ready
 [   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
 [   1.0000000]     2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 
 2013,
 [   1.0000000]     2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 
 2023,
 [   1.0000000]     2024
 [   1.0000000]     The NetBSD Foundation, Inc.  All rights reserved.
 [   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
 [   1.0000000]     The Regents of the University of California.  All 
 rights reserved.
 
 [   1.0000000] NetBSD 10.99.10 (GENERIC) #0: Thu Jun 27 20:02:04 CEST 2024
 [   1.0000000] 	roddy@apollo:/home/roddy/obj/sys/arch/amd64/compile/GENERIC
 [   1.0000000] total memory = 2043 MB
 [   1.0000000] avail memory = 1948 MB
 [   1.0000000] WARNING: module error: module `cd9660' pushed by boot 
 loader already exists
 [   1.0000040] efi: systbl at pa 7f9ed018
 [   1.0000040] mainbus0 (root)
 [   1.0000040] ACPI: RSDP 0x000000007FB7D014 000024 (v02 BOCHS )
 [   1.0000040] ACPI: XSDT 0x000000007FB7C0E8 000044 (v01 BOCHS  BXPC 
 00000001      01000013)
 [   1.0000040] ACPI: FACP 0x000000007FB79000 000074 (v01 BOCHS  BXPC 
 00000001 BXPC 00000001)
 [   1.0000040] ACPI: DSDT 0x000000007FB7A000 001792 (v01 BOCHS  BXPC 
 00000001 BXPC 00000001)
 [   1.0000040] ACPI: FACS 0x000000007FBDC000 000040
 [   1.0000040] ACPI: APIC 0x000000007FB78000 000090 (v01 BOCHS  BXPC 
 00000001 BXPC 00000001)
 [   1.0000040] ACPI: WAET 0x000000007FB77000 000028 (v01 BOCHS  BXPC 
 00000001 BXPC 00000001)
 [   1.0000040] ACPI: BGRT 0x000000007FB76000 000038 (v01 INTEL  EDK2 
 00000002      01000013)
 [   1.0000040] ACPI: 1 ACPI AML tables successfully acquired and loaded
 [   1.0000040] ioapic0 at mainbus0 apid 0
 [   1.0000040] cpu0 at mainbus0 apid 0
 [   1.0000040] cpu0: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz, id 0x906ea
 [   1.0000040] cpu0: node 0, package 0, core 0, smt 0
 [   1.0000040] cpu1 at mainbus0 apid 1
 [   1.0000040] cpu1: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz, id 0x906ea
 [   1.0000040] cpu1: node 0, package 1, core 0, smt 0
 [   1.0000040] cpu2 at mainbus0 apid 2
 [   1.0000040] cpu2: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz, id 0x906ea
 [   1.0000040] cpu2: node 0, package 2, core 0, smt 0
 [   1.0000040] cpu3 at mainbus0 apid 3
 [   1.0000040] cpu3: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz, id 0x906ea
 [   1.0000040] cpu3: node 0, package 3, core 0, smt 0
 [   1.0000040] acpi0 at mainbus0: Intel ACPICA 20230628
 [   1.0000040] LNKS: BIOS IRQ 10 for 0.1.INTA is invalid
 [   1.0000040] acpi0: fixed power button present
 [   1.0355392] com0 at acpi0 (COM2, PNP0501-2): io 0x2f8-0x2ff irq 3
 [   1.0355392] com0: ns16550a, 16-byte FIFO
 [   1.0355392] com1 at acpi0 (COM1, PNP0501-1): io 0x3f8-0x3ff irq 4
 [   1.0355392] com1: ns16550a, 16-byte FIFO
 [   1.0355392] com1: console
 [   1.0355392] pckbc1 at acpi0 (KBD, PNP0303) (kbd port): io 0x60,0x64 irq 1
 [   1.0355392] pckbc2 at acpi0 (MOU, PNP0F13) (aux port): irq 12
 [   1.0355392] fdc0 at acpi0 (FDC0, PNP0700): io 0x3f2-0x3f5,0x3f7 irq 6 
 drq 2
 [   1.0355392] qemufwcfg0 at acpi0 (FWCF, QEMU0002): io 0x510-0x51b
 [   1.0355392] ACPI: Enabled 2 GPEs in block 00 to 0F
 [   1.0355392] pckbd0 at pckbc1 (kbd slot)
 [   1.0355392] pckbc1: using irq 1 for kbd slot
 [   1.0355392] wskbd0 at pckbd0 mux 1
 [   1.0355392] pms0 at pckbc1 (aux slot)
 [   1.0355392] pckbc1: using irq 12 for aux slot
 [   1.0355392] wsmouse0 at pms0 mux 0
 [   1.0355392] pci0 at mainbus0 bus 0: configuration mode 1
 [   1.0355392] pchb0 at pci0 dev 0 function 0: Intel 82441FX (PMC) PCI 
 and Memory Controller (rev. 0x02)
 [   1.0355392] pcib0 at pci0 dev 1 function 0: Intel 82371SB (PIIX3) 
 PCI-ISA Bridge (rev. 0x00)
 [   1.0355392] piixide0 at pci0 dev 1 function 1: Intel 82371SB IDE 
 Interface (PIIX3) (rev. 0x00)
 [   1.0355392] piixide0: primary channel interrupting at ioapic0 pin 14
 [   1.0355392] atabus0 at piixide0 channel 0
 [   1.0355392] piixide0: secondary channel ignored (disabled)
 [   1.0355392] piixpm0 at pci0 dev 1 function 3: Intel 82371AB (PIIX4) 
 Power Management Controller (rev. 0x03)
 [   1.0355392] piixpm0: 24-bit timer
 [   1.0355392] piixpm0: interrupting at ioapic0 pin 9
 [   1.0355392] iic0 at piixpm0 port 0: I2C bus
 [   1.0355392] virtio0 at pci0 dev 2 function 0
 [   1.0355392] virtio0: Unknown device (id 16, rev. 0x01)
 [   1.0355392] virtio0: no matching child driver; not configured
 [   1.0355392] wm0 at pci0 dev 3 function 0: Intel i82540EM 1000BASE-T 
 Ethernet (rev. 0x03)
 [   1.0355392] wm0: interrupting at ioapic0 pin 11
 [   1.0355392] wm0: Ethernet address 52:54:00:e7:05:1f
 [   1.0355392] makphy0 at wm0 phy 1: Marvell 88E1011 Gigabit PHY, rev. 0
 [   1.0355392] makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 
 1000baseT, 1000baseT-FDX, auto
 [   1.0355392] hdaudio0 at pci0 dev 4 function 0: HD Audio Controller
 [   1.0355392] hdaudio0: interrupting at msi0 vec 0
 [   1.0355392] hdaudio0: HDA ver. 1.0, OSS 4, ISS 4, BSS 0, SDO 1, 64-bit
 [   1.0355392] hdafg0 at hdaudio0: vendor 1af4 product 0022
 [   1.0355392] hdafg0: DAC00 2ch: Speaker [Jack]
 [   1.0355392] hdafg0: ADC01 2ch: Line In [Jack]
 [   1.0355392] hdafg0: 2ch/2ch 16000Hz 22050Hz 32000Hz 44100Hz 48000Hz 
 88200Hz 96000Hz PCM16
 [   1.0355392] audio0 at hdafg0: playback, capture, full duplex, independent
 [   1.0355392] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) 
 for playback
 [   1.0355392] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) 
 for recording
 [   1.0355392] spkr0 at audio0: PC Speaker (synthesized)
 [   1.0355392] wsbell at spkr0 not configured
 [   1.0355392] uhci0 at pci0 dev 5 function 0: Intel 82801I USB UHCI 
 Controller (rev. 0x03)
 [   1.0355392] uhci0: interrupting at ioapic0 pin 10
 [   1.0355392] usb0 at uhci0: USB revision 1.0
 [   1.0355392] uhci1 at pci0 dev 5 function 1: Intel 82801I USB UHCI 
 Controller (rev. 0x03)
 [   1.0355392] uhci1: interrupting at ioapic0 pin 10
 [   1.0355392] usb1 at uhci1: USB revision 1.0
 [   1.0355392] uhci2 at pci0 dev 5 function 2: Intel 82801I USB UHCI 
 Controller (rev. 0x03)
 [   1.0355392] uhci2: interrupting at ioapic0 pin 11
 [   1.0355392] usb2 at uhci2: USB revision 1.0
 [   1.0355392] ehci0 at pci0 dev 5 function 7: Intel 82801I USB EHCI 
 Controller (rev. 0x03)
 [   1.0355392] ehci0: interrupting at ioapic0 pin 11
 [   1.0355392] ehci0: 3 companion controllers, 2 ports each: uhci0 uhci1 
 uhci2
 [   1.0355392] ehci0: Using DMA subregion for control data structures
 [   1.0355392] usb3 at ehci0: USB revision 2.0
 [   1.0355392] virtio1 at pci0 dev 6 function 0
 [   1.0355392] virtio1: console device (id 3, rev. 0x00)
 [   1.0355392] virtio1: no matching child driver; not configured
 [   1.0355392] virtio2 at pci0 dev 7 function 0
 [   1.0355392] virtio2: memory balloon device (id 5, rev. 0x00)
 [   1.0355392] viomb0 at virtio2: features: 0x10000000<INDIRECT_DESC>
 [   1.0355392] virtio2: interrupting at ioapic0 pin 11
 [   1.0355392] isa0 at pcib0
 [   1.0355392] attimer0 at isa0 port 0x40-0x43
 [   1.0355392] pcppi0 at isa0 port 0x61
 [   1.0355392] spkr1 at pcppi0: PC Speaker
 [   1.0355392] wsbell at spkr1 not configured
 [   1.0355392] midi0 at pcppi0: PC speaker
 [   1.0355392] sysbeep0 at pcppi0
 [   1.0355392] attimer0: attached to pcppi0
 [   1.0355392] acpicpu0 at cpu0: ACPI CPU
 [   1.0355392] acpicpu1 at cpu1: ACPI CPU
 [   1.0355392] acpicpu2 at cpu2: ACPI CPU
 [   1.0355392] acpicpu3 at cpu3: ACPI CPU
 [   1.4839499] atapibus0 at atabus0: 2 targets
 [   1.4938933] uhub0 at usb3: NetBSD (0x0000) EHCI root hub (0x0000), 
 class 9/0, rev 2.00/1.00, addr 1
 [   1.5038242] uhub1 at usb0: NetBSD (0x0000) UHCI root hub (0x0000), 
 class 9/0, rev 1.00/1.00, addr 1
 [   1.5137981] uhub2 at usb2: NetBSD (0x0000) UHCI root hub (0x0000), 
 class 9/0, rev 1.00/1.00, addr 1
 [   1.5237390] uhub3 at usb1: NetBSD (0x0000) UHCI root hub (0x0000), 
 class 9/0, rev 1.00/1.00, addr 1
 [   1.5337886] cd0 at atapibus0 drive 1: <QEMU DVD-ROM, QM00002, 2.5+> 
 cdrom removable
 [   1.5435583] wd0 at atabus0 drive 0
 [   1.5534936] wd0: <QEMU HARDDISK>
 [   1.5534936] wd0: 20480 MB, 41610 cyl, 16 head, 63 sec, 512 bytes/sect 
 x 41943040 sectors
 [   1.5832298] dk0 at wd0: "EFI", 262144 blocks at 4096, type: msdos
 [   1.5832298] dk1 at wd0: "NetBSD", 16777216 blocks at 266240, type: ffs
 [   1.5965614] dk2 at wd0: "syscgd", 24895488 blocks at 17043456, type: cgd
 [   2.6452958] uhidev0 at uhub0 port 1 configuration 1 interface 0
 [   2.6452958] uhidev0: QEMU (0x0627) QEMU USB Tablet (0x0001), rev 
 2.00/0.00, addr 2, iclass 3/0
 [   2.6652005] ums0 at uhidev0: 3 buttons and Z dir
 [   2.6765132] wsmouse1 at ums0 mux 0
 [   2.6765132] swwdog0: software watchdog initialized
 [   2.7148703] WARNING: 2 errors while detecting hardware; check system log.
 [   2.7279513] boot device: cd0
 [   2.7545127] root on cd0a dumps on cd0b
 [   2.7942253] root file system type: cd9660
 [   2.8055159] kern.module.path=/stand/amd64/10.99.10/modules
 Created tmpfs /dev (1835008 byte, 3552 inodes)
 
 
 You are using a serial console, we do not know your terminal emulation.
 Please select one, typical values are:
 
          vt100
          ansi
          xterm
 
 Terminal type (just hit ENTER for 'vt220'): xterm
 # sysctl -w kern.detachall=1
 kern.detachall: 0 -> 1
 # uname -a
 NetBSD  10.99.10 NetBSD 10.99.10 (GENERIC) #0: Thu Jun 27 20:02:04 CEST 
 2024  roddy@apollo:/home/roddy/obj/sys/arch/amd64/compile/GENERIC amd64
 # shutdown -p now
 Shutdown NOW!
 shutdown: [pid 507]
 # wall: You have write permission turned off; no reply possible
 wall: Cannot stat `/var/run/utmp': No such file or directory
 shutdown: poweroff by root:
 
 System shutdown time has arrived
 
 About to run shutdown hooks...
 cron not running? (check /var/run/cron.pid).
 inetd not running? (check /var/run/inetd.pid).
 Saved entropy to /var/db/entropy-file.
 Forcibly unmounting /tmp
 Forcibly unmounting /var
 Forcibly unmounting /etc
 Removing block-type swap devices
 Fri Jun 28 10:24:39 UTC 2024
 
 Done running shutdown hooks.
 init: can't add utmpx record for `runlevel': Bad file descriptor
 init: can't add utmpx record for `runlevel': Bad file descriptor
 init: can't add utmpx record for `console': Bad file descriptor
 [ 420.0638423] syncing disks... done
 [ 420.1332980] wsmouse1: detached
 [ 420.1448123] ums0: detached
 [ 420.1448123] uhidev0: detached
 [ 420.1448123] sysbeep0: detached
 [ 420.1549217] midi0: detached
 [ 420.1549217] spkr1: detached
 [ 420.1549217] spkr0: detached
 [ 420.1630510] dk2 at wd0 (syscgd) deleted
 [ 420.1630510] dk1 at wd0 (NetBSD) deleted
 [ 420.1630510] dk0 at wd0 (EFI) deleted
 [ 420.1730377] wd0: detached
 [ 420.1730377] uhub3: detached
 [ 420.1730377] uhub2: detached
 [ 420.1841411] uhub1: detached
 [ 420.1841411] uhub0: detached
 [ 420.1938286] pcppi0: detached
 [ 420.1938286] attimer0: detached
 [ 420.1938286] audio0: detached
 [ 420.2045641] wsmouse0: detached
 [ 420.2045641] wskbd0: detached
 [ 420.2131548] isa0: detached
 [ 420.2131548] usb3: detached
 [ 420.2131548] usb2: detached
 [ 420.2229136] usb1: detached
 [ 420.2229136] usb0: detached
 [ 420.2325439] hdafg0: detached
 [ 420.2325439] makphy0: detached
 [ 420.2325439] iic0: detached
 [ 420.2325439] acpicpu3: detached
 [ 420.2463169] acpicpu2: detached
 [ 420.2463169] acpicpu1: detached
 [ 420.2524132] acpicpu0: detached
 [ 420.2524132] virtio1: detached
 [ 420.2623980] ehci0: detached
 [ 420.2623980] uhci2: detached
 [ 420.2722635] uhci1: detached
 [ 420.2722635] uhci0: detached
 [ 420.2822563] hdaudio0: detached
 [ 420.2921610] Skipping crash dump on recursive panic
 [ 420.2921610] panic: kernel diagnostic assertion "!dv->dv_detach_done" 
 failed: file "/home/roddy/src/src/sys/kern/subr_autoconf.c", line 2916 
 makphy0
 [ 420.3021390] cpu3: Begin traceback...
 [ 420.3119981] vpanic() at netbsd:vpanic+0x171
 [ 420.3219240] kern_assert() at netbsd:kern_assert+0x4b
 [ 420.3318518] config_detach() at netbsd:config_detach+0x67
 [ 420.3417765] mii_detach() at netbsd:mii_detach+0xde
 [ 420.3517018] wm_detach() at netbsd:wm_detach+0x3f9
 [ 420.3616282] config_detach_release() at netbsd:config_detach_release+0x1fc
 [ 420.3715331] config_detach_all() at netbsd:config_detach_all+0xd1
 [ 420.3814497] cpu_reboot() at netbsd:cpu_reboot+0x1b9
 [ 420.3814497] kern_reboot() at netbsd:kern_reboot+0x93
 [ 420.3914180] sys_reboot() at netbsd:sys_reboot+0x63
 [ 420.4013558] syscall() at netbsd:syscall+0x112
 [ 420.4112604] --- syscall (number 208) ---
 [ 420.4112604] netbsd:syscall+0x112:
 [ 420.4112604] cpu3: End traceback...
 [ 420.4211592] fatal breakpoint trap in supervisor mode
 [ 420.4211592] trap type 1 code 0 rip 0xffffffff80235415 cs 0x8 rflags 
 0x202 cr2 0x7296e806ce68 ilevel 0 rsp 0xffffad80b42d8c60
 [ 420.4310694] curlwp 0xfffff7709e5db000 pid 507.507 lowest kstack 
 0xffffad80b42d42c0
 Stopped in pid 507.507 (halt) at        netbsd:breakpoint+0x5:  leave
 breakpoint() at netbsd:breakpoint+0x5
 vpanic() at netbsd:vpanic+0x171
 kern_assert() at netbsd:kern_assert+0x4b
 config_detach() at netbsd:config_detach+0x67
 mii_detach() at netbsd:mii_detach+0xde
 wm_detach() at netbsd:wm_detach+0x3f9
 config_detach_release() at netbsd:config_detach_release+0x1fc
 config_detach_all() at netbsd:config_detach_all+0xd1
 cpu_reboot() at netbsd:cpu_reboot+0x1b9
 kern_reboot() at netbsd:kern_reboot+0x93
 sys_reboot() at netbsd:sys_reboot+0x63
 syscall() at netbsd:syscall+0x112
 --- syscall (number 208) ---
 netbsd:syscall+0x112:
 ds          8
 es          3
 fs          180
 gs          8c10
 rdi         0
 rsi         3f8
 rbp         ffffad80b42d8c60
 rbx         ffffffff813f4c98    ostype+0x5216f
 rdx         1
 rcx         ffffffffffffff
 rax         800000000000000
 r8          0
 r9          0
 r10         0
 r11         0
 r12         ffffad80b42d8ca8
 r13         4
 r14         ffffffff
 r15         ffffad8003eaa458
 rip         ffffffff80235415    breakpoint+0x5
 cs          8
 rflags      202
 rsp         ffffad80b42d8c60
 ss          10
 netbsd:breakpoint+0x5:  leave
 db{3}>
 
 ```
 
 
 On 6/26/24 16:39, Taylor R Campbell wrote:
 > Thanks!  Looks like we have another bug, and that one's a little more
 > work to deal with.
 > 
 > Can you try reverting this change?
 > 
 > https://mail-index.netbsd.org/source-changes/2024/06/25/msg151955.html
 > 
 > That change disables access to a code path, but I want to see if I
 > fixed that code path too.
 



Home | Main Index | Thread Index | Old Index