kernel/5129: panic in vnd with two devices mounted

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

kernel/5129: panic in vnd with two devices mounted

Michael Dexter
>Number:         5129
>Category:       kernel
>Synopsis:       panic: pool_get: vndbufpl: nmissing inconsistent
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    bugs
>State:          open
>Quarter:        
>Keywords:      
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 22 18:00:01 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     [hidden email]
>Release:        3.9
>Organization:
net
>Environment:

        System      : OpenBSD 3.9
        Architecture: OpenBSD.i386
        Machine     : i386
>Description:
System had two vnd devices mounted using the following procedures:
1GB image:
# vnconfig -c /dev/vnd0c /home/data/sysjail00.img
# newfs /dev/rvnd0c
# mkdir /mnt/sysjail00/
# mount_ffs /dev/vnd0c /mnt/sysjail00/
.5GB image:
vnd1c and .../sysjail01/ otherwise the same

System was left to run overnight. Low load. Not sure when panic occured.
Console reported:

login: panic: pool_get: vndbufpl: nmissing inconsistent
Stopped at      Debugger+0x4

Trace output:
Debugger(0, 0, e8049d7c, d67279a8, d05dfd00) at Debugger+0x4
panic(d051a900, d0516dc6, e8059e0c, d0203e69, 0) at panic+0x63
pool_get(d05dfd00, 2, 4000, 0, 0) at pool_get+0x101
vndstrategy(d699430, 800, e8059e3c, d024417e, 80) at vndstrategy+0x386
spec_strategy(e8059e64, d699fd84, e8058e8c, d02f13dc, d05a7760) at
spec_strategy+0x33
spec_vnoperate(e8059e64, e1ba8000, 800, 80, d05a7720) at spec_vnoperate+0x16
VOP_STRATEGY(d6994430, 8, d1011800, 3, d0ff9600) at VOP_STRATEGY+0x25
bwrite(d6994430, d691e16c, e8059ecc, d0302615, d68743a4) at bwrite+0xac
spec_vnoperate(e8059ed4, 0, e8059efc, d024939e, d05a7760) at
spec_vnoperate+0x16
VOP_BWRITE(d6994430, d68ad444, 10052, d691e16c) at VOP_BWRITE+0x25
ffs_fsync(e8059f25, 5, e8059f4c, 10012, d05a7260) at ffs_fsync+0x1d5
VOP_FSYNC(d68ad444, d6931000, 3, d691e16c, 0) at VOP_FSYNC+0x34
sched_sync(d691e16c) at sched_sync+0xfa
Bad frame pointer: 0xd070bed8

Paraphrased ps output in order, duplicates removed:
sendmail
perl
mail
tee
sh
cron
httpd
sysjail
inetd
ntpd
syslogd
crypto
aiodoned
update
cleaner
reaper
pagedaemon
pfpurge
usb3
usb2
usb1
usbtask
usb0
apm0
kmthread
init
swapper

dmesg output:
OpenBSD 3.9 (GENERIC) #617: Thu Mar  2 02:26:48 MST 2006
     [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: VIA Nehemiah ("CentaurHauls" 686-class) 1 GHz
cpu0: FPU,DE,TSC,MSR,MTRR,PGE,CMOV,MMX,FXSR,SSE
real mem  = 502837248 (491052K)
avail mem = 451731456 (441144K)
using 4278 buffers containing 25243648 bytes (24652K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(96) BIOS, date 05/19/04, BIOS32 rev. 0 @ 0xfb210
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xdf44
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfded0/112 (5 entries)
pcibios0: PCI Exclusive IRQs: 5 10 11 12
pcibios0: PCI Interrupt Router at 000:17:0 ("VIA VT8235 ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0xec00 0xd0000/0xa000 0xda000/0x1800
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA VT8623 PCI" rev 0x00
ppb0 at pci0 dev 1 function 0 "VIA VT8633 AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "VIA CLE266" rev 0x03: aperture at
0xd8000000, size 0x10000000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"VIA VT6306 FireWire" rev 0x80 at pci0 dev 13 function 0 not configured
uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x80: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x80: irq 10
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x80: irq 12
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 16 function 3 "VIA VT6202 USB" rev 0x82: irq 5
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: VIA EHCI root hub, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
viapm0 at pci0 dev 17 function 0 "VIA VT8235 ISA" rev 0x00
iic0 at viapm0
pciide0 at pci0 dev 17 function 1 "VIA VT82C571 IDE" rev 0x06:
ATA133, channel 0 configured to compatibility, channel
1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <ST380021A>
wd0: 16-sector PIO, LBA, 76319MB, 156301488 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <SONY, CD-RW CRX700E, 1.1k> SCSI0
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
auvia0 at pci0 dev 17 function 5 "VIA VT8233 AC97" rev 0x50: irq 12
ac97: codec id 0x49434552 (ICEnsemble VIA VT1616i)
ac97: codec features headphone, 18 bit DAC, 18 bit ADC, KS Waves 3D
audio0 at auvia0
vr0 at pci0 dev 18 function 0 "VIA RhineII-2" rev 0x74: irq 11,
address 00:40:63:cb:ff:96
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 5: OUI
0x004063, model 0x0032
fxp0 at pci0 dev 20 function 0 "Intel 8255x" rev 0x0c, i82550: irq
10, address 00:02:b3:b5:92:02
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
isa0 at mainbus0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
viasio0 at isa0 port 0x2e/2: VT1211 rev 0x02: HM WDG: not activated
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
biomask ff65 netmask ff65 ttymask ffe7
pctr: user-level cycle counter enabled
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
WARNING: / was not properly unmounted
wd0a:  aborted command, interface CRC error writing fsbn 16 of 16-31
(wd0 bn 79; cn 0 tn 1 sn 16), retrying
wd0: transfer error, downgrading to Ultra-DMA mode 4
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
wd0a:  aborted command, interface CRC error writing fsbn 16 of 16-31
(wd0 bn 79; cn 0 tn 1 sn 16), retrying
wd0: soft error (corrected)
wd0: transfer error, downgrading to Ultra-DMA mode 3
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 3
wd0g:  aborted command, interface CRC error reading fsbn 1318752 of
1318752-1318879 (wd0 bn 29336112; cn 1826 tn 22 sn
36), retrying
wd0: soft error (corrected)
WARNING: R/W mount of /mnt/sysjail00 denied.  Filesystem is not clean
- run fsck


>How-To-Repeat:
Possibly with 'sync' command experimentation.
>Fix:
Unknown

--k4KMxtdp003109.1148165995/mill.bsd.lv--


>Release-Note:
>Audit-Trail:
>Unformatted:

Reply | Threaded
Open this post in threaded view
|

Re: kernel/5129: panic in vnd with two devices mounted

Pedro Martelletto
The following reply was made to PR kernel/5129; it has been noted by GNATS.

From: Pedro Martelletto <[hidden email]>
To: Michael Dexter <[hidden email]>
Cc: [hidden email]
Subject: Re: kernel/5129: panic in vnd with two devices mounted
Date: Mon, 22 May 2006 17:12:00 -0300

 I think this is the same problem as PR 5041, and has already been fixed
 in -current. Can you confirm this diff fixes the problem?
 
 -p.
 
 Index: vnd.c
 ===================================================================
 RCS file: /cvs/src/sys/dev/vnd.c,v
 retrieving revision 1.58
 retrieving revision 1.59
 diff -u -r1.58 -r1.59
 --- vnd.c 22 Jan 2006 00:40:02 -0000 1.58
 +++ vnd.c 4 Mar 2006 22:53:32 -0000 1.59
 @@ -1,4 +1,4 @@
 -/* $OpenBSD: vnd.c,v 1.58 2006/01/22 00:40:02 miod Exp $ */
 +/* $OpenBSD: vnd.c,v 1.59 2006/03/04 22:53:32 pedro Exp $ */
  /* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */
 
  /*
 @@ -568,7 +568,9 @@
     vnd->sc_vp, vp, bn, nbn, sz);
  #endif
 
 + s = splbio();
  nbp = getvndbuf();
 + splx(s);
  nbp->vb_buf.b_flags = flags;
  nbp->vb_buf.b_bcount = sz;
  nbp->vb_buf.b_bufsize = bp->b_bufsize;