Subject: kern/21025: panic -current 20030404 in extfs_vget()
To: None <gnats-bugs@gnats.netbsd.org>
From: Frank Kardel <kardel@acm.org>
List: netbsd-bugs
Date: 04/05/2003 14:26:32
>Number:         21025
>Category:       kern
>Synopsis:       panic (fatal page fault in supervisor mode) -current 20030404 in extfs_vget()
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 05 04:27:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Frank Kardel
>Release:        NetBSD 1.6Q
>Organization:
	
>Environment:
	
	
System: NetBSD pip 1.6Q NetBSD 1.6Q (PIP) #0: Sat Apr 5 13:32:18 MEST 2003 kardel@pip:/src/NetBSD/netbsd/sys/arch/i386/compile/PIP i386
Architecture: i386
Machine: i386
>Description:
	After updating to -current with initial UFS2 support the system failed to boot when an ext2_fs was mounted
	via /etc/fstab
Crash information:
(gdb) msgbuf
msgbufp 0xca578000: bufx 12125 bufr 8483 bufs 16368
Dumping 0xca57af6d length 4243

Dumping 0xca578010 length 12125
NetBSD 1.6Q (PIP) #0: Sat Apr  5 13:32:18 MEST 2003
	kardel@pip:/src/NetBSD/netbsd/sys/arch/i386/compile/PIP
total memory = 767 MB
avail memory = 707 MB
using 6144 buffers containing 39400 KB of memory
BIOS32 rev. 0 found at 0xf0f80
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Athlon Model 4 (Thunderbird) (686-class), 1210.89 MHz, id 0x642
cpu0: features c1c7f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features c1c7f9ff<PGE,MCA,CMOV,PAT,PSE36,PN,MMXX,MMX>
cpu0: features c1c7f9ff<FXSR,3DNOW2,3DNOW>
cpu0: I-cache 64 KB 64b/line 2-way, D-cache 64 KB 64b/line 2-way
cpu0: L2 cache 256 KB 64b/line 16-way
cpu0: ITLB 16 4 KB entries fully associative, 8 4 MB entries fully associative
cpu0: DTLB 24 4 KB entries fully associative, 8 4 MB entries 4-way
cpu0: 8 page colors
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
pchb0: VIA Technologies VT8363 KT133 System Controller (rev. 0x03)
agp0 at pchb0: aperture at 0xe6000000, size 0x10000000
ppb0 at pci0 dev 1 function 0: VIA Technologies VT8363 KT133 PCI to AGP Bridge (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga0 at pci1 dev 0 function 0: Matrox MGA G400 AGP (rev. 0x82)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 4 function 0
pcib0: VIA Technologies VT82C686A (Apollo KX133) PCI-ISA Bridge (rev. 0x40)
pciide0 at pci0 dev 4 function 1: VIA Technologies VT82C686A (Apollo KX133) ATA100 controller
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
wd0 at pciide0 channel 0 drive 0: <IBM-DTTA-351010>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 9671 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 19807200 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
wd1 at pciide0 channel 0 drive 1: <IC35L060AVER07-0>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 58644 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 120103200 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
pciide0: secondary channel configured to compatibility mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 1: <YAMAHA  CRW-F1E, , 1.0c> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
uhci0 at pci0 dev 4 function 2: VIA Technologies VT83C572 USB Controller (rev. 0x16)
uhci0: interrupting at irq 5
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 4 function 3: VIA Technologies VT83C572 USB Controller (rev. 0x16)
uhci1: interrupting at irq 5
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
viapm0 at pci0 dev 4 function 4
viaenv0 at viapm0: disabled
auvia0 at pci0 dev 4 function 5: VIA VT82C686A AC'97 Audio (rev 0x50)
auvia0: interrupting at irq 12
auvia0: ICEnsemble ICE1232/VT1611A codec; headphone, 18 bit DAC, 18 bit ADC, KS Waves 3D
auvia0: variable rate audio
audio0 at auvia0: full duplex, mmap, independent
ahc0 at pci0 dev 9 function 0
ahc0: interrupting at irq 5
ahc0: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs
scsibus0 at ahc0: 16 targets, 8 luns per target
isic0 at pci0 dev 10 function 0: ELSA QuickStep 1000pro/PCI
isic0: IPAC PSB2115 Version 1.1
isic0: interrupting at irq 12
BRI 0 at isic0
ex0 at pci0 dev 11 function 0: 3Com 3c905B-TX 10/100 Ethernet (rev. 0x30)
ex0: interrupting at irq 10
ex0: MAC address 00:10:5a:d8:53:54
exphy0 at ex0 phy 24: 3Com internal media interface
exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ex1 at pci0 dev 12 function 0: 3Com 3c905C-TX 10/100 Ethernet with mngmt (rev. 0x6c)
ex1: interrupting at irq 11
ex1: MAC address 00:50:da:ee:ca:2e
bmtphy0 at ex1 phy 24: Broadcom 3c905C internal PHY, rev. 4
bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pciide1 at pci0 dev 17 function 0: Promise Ultra100/ATA Bus Master IDE Accelerator (rev. 0x02)
pciide1: bus-master DMA support present
pciide1: primary channel configured to native-PCI mode
pciide1: using irq 10 for native-PCI interrupt
wd2 at pciide1 channel 0 drive 0: <IBM-DTLA-305040>
wd2: drive supports 16-sector PIO transfers, LBA addressing
wd2: 39266 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 80418240 sectors
wd2: 32-bit data port
wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd2(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
pciide1: secondary channel configured to native-PCI mode
pciide1: disabling secondary channel (no drives)
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsprobe: reset error 5
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
apm0 at mainbus0: Power Management spec V1.2
IPsec: Initialized Security Association Processing.
scsibus0: waiting 2 seconds for devices to settle...
uhub0: port error, restarting port 1
uhub0: port error, giving up port 1
uhub1: port error, restarting port 1
uhub1: port error, giving up port 1
uhub1: port error, restarting port 2
uhub1: port error, giving up port 2
ulpt0 at uhub0 port 1 configuration 1 interface 0
ulpt0: Hewlett-Packard DeskJet 1220C, rev 1.00/1.00, addr 2, iclass 7/1
ulpt0: using uni-directional mode
uhub0: port error, restarting port 2
uhub0: port error, giving up port 2
uhub2 at uhub0 port 2
uhub2: Texas Instruments UT-USB41 hub, class 9/0, rev 1.10/1.10, addr 3
uhub2: 4 ports with 4 removable, self powered
umodem0 at uhub2 port 1 configuration 2 interface 0
umodem0: Lucent Technologies, Inc. ELSA Modem Board, rev 1.00/1.00, addr 4, iclass 2/2
umodem0: data interface 1, has CM over data, has break
umodem0: status change notification available
ucom0 at umodem0
uhidev0 at uhub2 port 2 configuration 1 interface 0
uhidev0: Microsoft Microsoft IntelliMouse ® with IntelliEye, rev 1.10/1.01, addr 5, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse0 at ums0 mux 0
probe(ahc0:0:3:0): SCB 1d - timed out in Message-in phase, SEQADDR == 0x155
SCSIRATE == 0x0
probe(ahc0:0:3:0): BDR message in message buffer
probe(ahc0:0:3:0): SCB 1d - timed out in Message-in phase, SEQADDR == 0x155
SCSIRATE == 0x0
probe(ahc0:0:3:0): no longer in timeout, status = 0
ahc0: Issued Channel A Bus Reset. 1 SCBs aborted
cd1 at scsibus0 target 3 lun 0: <YAMAHA, CRW8824S, 1.00> cdrom removable
cd1: async, 8-bit transfers
st0 at scsibus0 target 8 lun 0: <SONY, SDT-10000, 0101> tape removable
st0: drive empty
st0: sync (50.0ns offset 8), 16-bit (40.000MB/s) transfers
boot device: wd0
root on wd0a dumps on wd0b
mountroot: trying smbfs...
mountroot: trying coda...
mountroot: trying msdos...
mountroot: trying cd9660...
mountroot: trying ntfs...
mountroot: trying nfs...
mountroot: trying lfs...
mountroot: trying ext2fs...
mountroot: trying ffs...
root file system type: ffs
init: copying out path `/sbin/init' 11
IP Filter: v3.4.29 initialized.  Default = pass all, Logging = enabled
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x50, vt100 emulation)
wsdisplay0: screen 4 added (80x50, vt100 emulation)
wsdisplay0: screen 5 added (80x50, vt100 emulation)
wsdisplay0: screen 6 added (80x25, vt100 emulation)
wsdisplay0: screen 7 added (80x25, vt100 emulation)
uvm_fault(0xe3831780, 0x0, 0, 2) -> e
fatal page fault in supervisor mode
trap type 6 code 2 eip c01f088d cs 8 eflags 10282 cr2 0 ilevel 0
panic: trap
Begin traceback...
trap() at trap+0x28e
--- trap (number 6) ---
ext2fs_vget(c10ce200,2,e40e9d9c,c027efd6,e40e9da4) at ext2fs_vget+0x1cd
ufs_root(c10ce200,e40e9df8,e40e9e00,c027620f,e3fa20bc) at ufs_root+0x1b
lookup(e40e9e98,e3866000,400,e40e9eb0,e3834a80) at lookup+0x3df
namei(e40e9e98,2,e40e9ea0,0,e3834a80) at namei+0x2f1
sys___lstat13(e3834a80,e40e9f80,e40e9f78,c02eab28,0) at sys___lstat13+0x52
syscall_plain(1f,1f,1f,1f,bfbff814) at syscall_plain+0xab
End traceback...
syncing disks... 
dumping to dev 0,9 offset 524711
...

(gdb) xps
              proc   pid     flag nlwps comm
          flag             wchan
        0xe40d04e8   345     4002  2 1         mount_null
          4                  0l (biowait)
        0xe40d0688   312        0  2 1         mount_mfs
         84         0xe40dfaa4l (mfsidl)
        0xe385d9c4   285     4002  2 1         mount
         84         0xe385d9c4l (wait)
        0xe385d684   306        2  2 1         sh
         84         0xe385d684l (wait)
        0xe40d0348   286        0  2 1         rpcbind
        484                  0l (select)
        0xe40d01a8   273        0  2 1         named
        484                  0l (select)
        0xe40d0008   243        0  2 1         racoon
         84                  0l (select)
        0xe385db64   149        0  2 1         ipmon
        484                  0l (nanosleep)
        0xe385dd04   271        0  2 1         ifwatchd
         84         0xc1317144l (netio)
        0xe385d824   246        0  2 1         syslogd
         84                  0l (select)
        0xe385d4e4    13     4002  2 1         sh
         84         0xe385d4e4l (wait)
        0xe385d344    12    20200  2 1         aiodoned
          4                  0l (aiodoned)
        0xe385d1a4    11    20200  2 1         ioflush
        404                  0l (syncer)
        0xe385d004    10    20200  2 1         reaper
          4         0xc040f760l (reaper)
        0xe382bd00     9    20200  2 1         pagedaemon
          4         0xc046ae6cl (pgdaemon)
        0xe382bb60     8    20200  2 1         lfs_writer
          4         0xc040d3c0l (lfswriter)
        0xe382b9c0     7    20200  2 1         apm0
        404                  0l (apmev)
        0xe382b820     6    20200  2 1         scsibus0
          4         0xc11c40b4l (sccomp)
        0xe382b680     5    20200  2 1         usb1
        404                  0l (usbevt)
        0xe382b4e0     4    20200  2 1         usbtask
          4         0xc0477eacl (usbtsk)
        0xe382b340     3    20200  2 1         usb0
        404                  0l (usbevt)
        0xe382b1a0     2    20200  2 1         atapibus0
          4         0xc11beb24l (sccomp)
        0xe382b000     1     4000  2 1         init
         84         0xe382b000l (wait)
        0xc0461c80     0    20200  2 1         swapper
          4                  0l (scheduler)
              proc   pid     flag nlwps comm
          flag             wchan

>How-To-Repeat:
	build current -curent and try to work with ext2_fs
>Fix:
	check for breakage by UFS2 integration?
>Release-Note:
>Audit-Trail:
>Unformatted: