Subject: kern/35052: kernel debugging assertion "(vp->v_flag & VONWORKLST)" failed
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Hauke Fath <hf@spg.tu-darmstadt.de>
List: netbsd-bugs
Date: 11/14/2006 10:40:00
>Number:         35052
>Category:       kern
>Synopsis:       kernel debugging assertion "(vp->v_flag & VONWORKLST)" failed
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 14 10:40:00 +0000 2006
>Originator:     Hauke Fath <hf@spg.tu-darmstadt.de>
>Release:        NetBSD 3.1_STABLE
>Organization:
-- 
/~\  The ASCII Ribbon Campaign                      Hauke Fath
\ /    No HTML/RTF in email	          Institut für Nachrichtentechnik
 X     No Word docs in email	                    TU Darmstadt
/ \  Respect for open standards                Ruf +49-6151-16-3281
>Environment:
	
	
System: NetBSD Hafner.nt.e-technik.tu-darmstadt.de 3.1_STABLE NetBSD 3.1_STABLE (SPG_MP) #0: Mon Nov 13 15:30:40 CET 2006 hf@Hochstuhl:/var/obj/netbsd-builds/3/i386/sys/arch/i386/compile/SPG_MP i386
Architecture: i386
Machine: i386
>Description:

A NetBSD/i386 system (3.0_RC3 userland, netbsd-3 kernel from yesterday's sources) panics repeatedly with an assertion failure:

/netbsd: panic: kernel debugging assertion "(vp->v_flag & VONWORKLST)" failed: file "/public/netbsd-3/sys/miscfs/genfs/genfs_vnops.c", line 1322
/netbsd: Begin traceback...
/netbsd: __qdivrem(c0642dc6,c069e5c0,52a,c0651ca0,c13d5d40) at netbsd:__qdivrem
/netbsd: genfs_putpages(cdc47de4,cdc12090,0,1,c052e920) at netbsd:genfs_putpages+0x8ba
/netbsd: nfs_flush(cdd26ddc,cb6803f0,1,cd7e8664,0) at netbsd:nfs_flush+0x6e
/netbsd: nfs_close(cdc47e64,20002,cd7e8664,0,c052de60) at netbsd:nfs_close+0x63
/netbsd: vn_close(cdd26ddc,3,cb6803f0,cd7e8664,1) at netbsd:vn_close+0x4e
/netbsd: vn_closefile(cdafcbac,cd7e8664,bc85553f,0,cdc47ebc) at netbsd:vn_closefile+0x1a
/netbsd: closef(cdafcbac,cd7e8664,cdc47f5c,cd7e8664,202) at netbsd:closef+0x146
/netbsd: linux_syscall_plain(cdc47fa8,bfbf002b,2b,bfbf002b,2b) at netbsd:linux_syscall_plain+0x95
/netbsd: End traceback...
/netbsd: syncing disks... NetBSD 3.1_STABLE (SPG_MP) #0: Mon Nov 13 15:30:40 CET 2006
/netbsd: hf@Hochstuhl:/var/obj/netbsd-builds/3/i386/sys/arch/i386/compile/SPG_MP
/netbsd: total memory = 1023 MB
/netbsd: avail memory = 994 MB
/netbsd: BIOS32 rev. 0 found at 0xf0010
/netbsd: mainbus0 (root)
/netbsd: cpu0 at mainbus0: apid 0 (boot processor)
/netbsd: cpu0: AMD Unknown K7 (Athlon) (686-class), 2009.29 MHz, id 0x40fb2
/netbsd: cpu0: features 178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
/netbsd: cpu0: features 178bfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,MMX>
/netbsd: cpu0: features 178bfbff<FXSR,SSE,SSE2,B28>
/netbsd: cpu0: features2 2001<SSE3>
/netbsd: cpu0: "AMD Athlon(tm) 64 X2 Dual Core Processor 3800+"
/netbsd: cpu0: calibrating local timer
/netbsd: cpu0: apic clock running at 200 MHz
/netbsd: cpu1 at mainbus0: apid 1 (application processor)
/netbsd: cpu1: starting
/netbsd: cpu1: AMD Unknown K7 (Athlon) (686-class), 2009.11 MHz, id 0x40fb2
/netbsd: cpu1: features 178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
/netbsd: cpu1: features 178bfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,MMX>
/netbsd: cpu1: features 178bfbff<FXSR,SSE,SSE2,B28>
/netbsd: cpu1: features2 2001<SSE3>
/netbsd: cpu1: "AMD Athlon(tm) 64 X2 Dual Core Processor 3800+"
/netbsd: ioapic0 at mainbus0 apid 2 (I/O APIC)
/netbsd: ioapic0: pa 0xfec00000, version 11, 24 pins
/netbsd: acpi0 at mainbus0
/netbsd: acpi0: using Intel ACPI CA subsystem version 20040211
/netbsd: acpi0: X/RSDT: OemId <A M I ,OEMRSDT ,08000621>, AslId <MSFT,00000097>
/netbsd: acpi0: SCI interrupting at int 9
/netbsd: acpi0: fixed-feature power button present
/netbsd: ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
/netbsd: ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
/netbsd: PNP0A03 [PCI Bus] at acpi0 not configured
/netbsd: PNP0000 [AT Interrupt Controller] at acpi0 not configured
/netbsd: PNP0200 [AT DMA Controller] at acpi0 not configured
/netbsd: PNP0100 [AT Timer] at acpi0 not configured
/netbsd: PNP0B00 [AT Real-Time Clock] at acpi0 not configured
/netbsd: PNP0800 [AT-style speaker sound] at acpi0 not configured
/netbsd: npx0 at acpi0 (PNP0C04)
/netbsd: npx0: io 0xf0-0xff irq 13
/netbsd: npx0: using exception 16
/netbsd: fdc0 at acpi0 (PNP0700)
/netbsd: fdc0: io 0x3f0-0x3f5,0x3f7 irq 6 drq 2
/netbsd: fdc0: expected BUFFER, got 4
/netbsd: lpt0 at acpi0 (PNP0400)
/netbsd: lpt0: io 0x378-0x37f irq 7
/netbsd: PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
/netbsd: ATK0110 at acpi0 not configured
/netbsd: PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
/netbsd: pckbc0 at acpi0 (PNP0303): kbd port
/netbsd: pckbc0: io 0x60,0x64 irq 1
/netbsd: PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
/netbsd: com0 at acpi0 (PNP0501-1)
/netbsd: com0: io 0x3f8-0x3ff irq 4
/netbsd: com0: ns16550a, working fifo
/netbsd: PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
/netbsd: PNP0C01 [System Board] at acpi0 not configured
/netbsd: acpibut0 at acpi0 (PNP0C0C-170): ACPI Power Button
/netbsd: PNP0C0F [PCI interrupt link device] at acpi0 not configured
last message repeated 7 times
/netbsd: pckbd0 at pckbc0 (kbd slot)
/netbsd: pckbc0: using irq 1 for kbd slot
/netbsd: wskbd0 at pckbd0: console keyboard
/netbsd: pmsprobe: reset error 5
/netbsd: pci0 at mainbus0 bus 0: configuration mode 1
/netbsd: pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
/netbsd: NVIDIA product 0x03ea (RAM memory, revision 0xa1) at pci0 dev 0 function 0 not configured
/netbsd: pcib0 at pci0 dev 1 function 0
/netbsd: pcib0: NVIDIA product 0x03e0 (rev. 0xa2)
/netbsd: NVIDIA product 0x03eb (SMBus serial bus, revision 0xa2) at pci0 dev 1 function 1 not configured
/netbsd: NVIDIA product 0x03f5 (RAM memory, revision 0xa2) at pci0 dev 1 function 2 not configured
/netbsd: NVIDIA product 0x03f4 (Co-processor processor, revision 0xa2) at pci0 dev 1 function 3 not configured
/netbsd: ohci0 at pci0 dev 2 function 0: NVIDIA product 0x03f1 (rev. 0xa2)
/netbsd: ohci0: interrupting at ioapic0 pin 11 (irq 11)
/netbsd: ohci0: OHCI version 1.0, legacy support
/netbsd: usb0 at ohci0: USB revision 1.0
/netbsd: uhub0 at usb0
/netbsd: uhub0: NVIDIA OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
/netbsd: uhub0: 10 ports with 10 removable, self powered
/netbsd: ehci0 at pci0 dev 2 function 1: NVIDIA product 0x03f2 (rev. 0xa2)
/netbsd: ehci0: interrupting at ioapic0 pin 10 (irq 10)
/netbsd: ehci0: BIOS has given up ownership
/netbsd: ehci0: EHCI version 1.0
/netbsd: ehci0: companion controller, 10 ports each: ohci0
/netbsd: usb1 at ehci0: USB revision 2.0
/netbsd: uhub1 at usb1
/netbsd: uhub1: NVIDIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
/netbsd: uhub1: single transaction translator
/netbsd: uhub1: 10 ports with 10 removable, self powered
/netbsd: ppb0 at pci0 dev 4 function 0: NVIDIA product 0x03f3 (rev. 0xa1)
/netbsd: pci1 at ppb0 bus 1
/netbsd: pci1: i/o space, memory space enabled
/netbsd: wm0 at pci1 dev 9 function 0: Intel i82541PI 1000BASE-T Ethernet, rev. 5
/netbsd: wm0: interrupting at ioapic0 pin 11 (irq 11)
/netbsd: wm0: 32-bit 33MHz PCI bus
/netbsd: wm0: 64 word (6 address bits) MicroWire EEPROM
/netbsd: wm0: Ethernet address 00:0e:0c:c1:04:81
/netbsd: igphy0 at wm0 phy 1: Intel IGP01E1000 Gigabit PHY, rev. 0
/netbsd: igphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
/netbsd: azalia0 at pci0 dev 5 function 0: Generic High Definition Audio Controller
/netbsd: azalia0: interrupting at ioapic0 pin 11 (irq 11)
/netbsd: azalia0: host: 0x10de/0x03f0 (rev. 162)
/netbsd: azalia0: host: High Definition Audio rev. 1.0
/netbsd: pciide0 at pci0 dev 6 function 0
/netbsd: pciide0: NVIDIA product 0x03ec (rev. 0xa2)
/netbsd: pciide0: bus-master DMA support present, but unused (no driver support)
/netbsd: pciide0: primary channel configured to compatibility mode
/netbsd: pciide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
/netbsd: atabus0 at pciide0 channel 0
/netbsd: pciide0: secondary channel configured to compatibility mode
/netbsd: pciide0: secondary channel ignored (not responding; disabled or no drives?)
/netbsd: pciide1 at pci0 dev 8 function 0
/netbsd: pciide1: NVIDIA product 0x03f6 (rev. 0xa2)
/netbsd: pciide1: bus-master DMA support present, but unused (no driver support)
/netbsd: pciide1: primary channel wired to native-PCI mode
/netbsd: pciide1: using ioapic0 pin 15 (irq 15) for native-PCI interrupt
/netbsd: atabus1 at pciide1 channel 0
/netbsd: pciide1: secondary channel wired to native-PCI mode
/netbsd: atabus2 at pciide1 channel 1
/netbsd: pciide2 at pci0 dev 8 function 1
/netbsd: pciide2: NVIDIA product 0x03f6 (rev. 0xa2)
/netbsd: pciide2: bus-master DMA support present, but unused (no driver support)
/netbsd: pciide2: primary channel wired to native-PCI mode
/netbsd: pciide2: using ioapic0 pin 5 (irq 5) for native-PCI interrupt
/netbsd: atabus3 at pciide2 channel 0
/netbsd: pciide2: secondary channel wired to native-PCI mode
/netbsd: atabus4 at pciide2 channel 1
/netbsd: ppb1 at pci0 dev 9 function 0: NVIDIA product 0x03e8 (rev. 0xa2)
/netbsd: pci2 at ppb1 bus 2
/netbsd: pci2: i/o space, memory space enabled, rd/line, wr/inv ok
/netbsd: vga0 at pci2 dev 0 function 0: ATI Technologies Radeon X300 Series (rev. 0x00)
/netbsd: wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
/netbsd: wsmux1: connecting to wsdisplay0
/netbsd: ATI Technologies Radeon X300 Series Secondary (miscellaneous display) at pci2 dev 0 function 1 not configured
/netbsd: ppb2 at pci0 dev 11 function 0: NVIDIA product 0x03e9 (rev. 0xa2)
/netbsd: pci3 at ppb2 bus 3
/netbsd: pci3: no spaces enabled!
/netbsd: ppb3 at pci0 dev 12 function 0: NVIDIA product 0x03e9 (rev. 0xa2)
/netbsd: pci4 at ppb3 bus 4
/netbsd: pci4: no spaces enabled!
/netbsd: pchb0 at pci0 dev 24 function 0
/netbsd: pchb0: Advanced Micro Devices AMD64 HyperTransport configuration (rev. 0x00)
/netbsd: pchb1 at pci0 dev 24 function 1
/netbsd: pchb1: Advanced Micro Devices AMD64 Address Map configuration (rev. 0x00)
/netbsd: pchb2 at pci0 dev 24 function 2
/netbsd: pchb2: Advanced Micro Devices AMD64 DRAM configuration (rev. 0x00)
/netbsd: pchb3 at pci0 dev 24 function 3
/netbsd: pchb3: Advanced Micro Devices AMD64 Miscellaneous configuration (rev. 0x00)
/netbsd: isa0 at pcib0
/netbsd: pcppi0 at isa0 port 0x61
/netbsd: midi0 at pcppi0: PC speaker
/netbsd: sysbeep0 at pcppi0
/netbsd: ioapic0: enabling
/netbsd: fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
/netbsd: azalia0: codec[0]: 0x11d4/0x1988 (rev. 3.0)
/netbsd: azalia0: codec[0]: High Definition Audio rev. 1.0
/netbsd: azalia0: playback: max channels=8, encodings=1<PCM>
/netbsd: azalia0: playback: PCM formats=e07ff<24bit,20bit,16bit,192kHz,176.4kHz,96kHz,88.2kHz,48kHz,44.1kHz,32kHz,22.05kHz,16kHz,11.025kHz,8kHz>
/netbsd: azalia0: recording: max channels=2, DIGITAL, encodings=5<AC3,PCM>
/netbsd: azalia0: recording: PCM formats=e07e0<24bit,20bit,16bit,192kHz,176.4kHz,96kHz,88.2kHz,48kHz,44.1kHz>
/netbsd: audio0 at azalia0: full duplex, independent
/netbsd: atapibus0 at atabus0: 2 targets
/netbsd: cd0 at atapibus0 drive 0: <HL-DT-ST DVDRAM GSA-H10N, K1BE4PL5041, JL10> cdrom removable
/netbsd: cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
/netbsd: ehci0: handing over low speed device on port 2 to ohci0
/netbsd: uhub1: port 2, device disappeared after reset
/netbsd: uhidev0 at uhub0 port 2 configuration 1 interface 0
/netbsd: uhidev0: Logitech USB-PS/2 Optical Mouse, rev 2.00/20.00, addr 2, iclass 3/1
/netbsd: ums0 at uhidev0: 4 buttons and Z dir.
/netbsd: wsmouse0 at ums0 mux 0
/netbsd: wd0 at atabus1 drive 0: <ST380811AS>
/netbsd: wd0: drive supports 16-sector PIO transfers, LBA48 addressing
/netbsd: wd0: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 sectors
/netbsd: wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
/netbsd: boot device: wd0
/netbsd: root on wd0a dumps on wd0b
/netbsd: mountroot: trying smbfs...
/netbsd: mountroot: trying msdos...
/netbsd: mountroot: trying cd9660...
/netbsd: mountroot: trying ntfs...
/netbsd: mountroot: trying nfs...
/netbsd: mountroot: trying lfs...
/netbsd: mountroot: trying ext2fs...
/netbsd: mountroot: trying ffs...
/netbsd: root file system type: ffs
/netbsd: cpu1: CPU 1 running
/netbsd: init: copying out path `/sbin/init' 11
/netbsd: wsdisplay0: screen 1 added (80x25, vt100 emulation)
/netbsd: wsdisplay0: screen 2 added (80x25, vt100 emulation)
/netbsd: wsdisplay0: screen 3 added (80x25, vt100 emulation)
/netbsd: wsdisplay0: screen 4 added (80x25, vt100 emulation)
savecore: reboot after panic: panic: kernel debugging assertion "(vp->v_flag & VONWORKLST)" failed: file "/public/netbsd-3/sys/miscfs/genfs/genfs_vnops.c", line 1322
savecore: /var/crash/bounds: No such file or directory
savecore: writing compressed core to /var/crash/netbsd.0.core.gz
savecore: writing compressed kernel to /var/crash/netbsd.0.gz

-- I can provide the core file 

Hafner# cd /var/crash/
Hafner# l
total 409716
-rw-------  1 root  wheel          2 Nov 14 09:28 bounds
-r--r--r--  1 root  wheel          5 Jun  7  2005 minfree
-rw-------  1 root  wheel  416020371 Nov 14 09:31 netbsd.0.core.gz
-rw-------  1 root  wheel    3373429 Nov 14 09:31 netbsd.0.gz

if it's any help.

>How-To-Repeat:

	Boot newish amd64 dual core (Asus M2N board) with an SMP ACPI kernel.

>Fix:
	Yes, please.

>Unformatted: