Subject: kern/6348: panic on vnd + nfs
To: None <gnats-bugs@gnats.netbsd.org>
From: ITOH Yasufumi <yasufu-i@is.aist-nara.ac.jp>
List: netbsd-bugs
Date: 10/23/1998 15:45:31
>Number:         6348
>Category:       kern
>Synopsis:       panic on vnd + nfs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 23 00:05:01 1998
>Last-Modified:
>Originator:     ITOH Yasufumi
>Organization:
	Nara Institute of Science and Technology, Nara, Japan
>Release:        1.3H (Oct. 15, 1998)
>Environment:

System: NetBSD acha.my.domain 1.3H NetBSD 1.3H (UVM) #0: Fri Oct 16 15:21:37 JST 1998 itohy@myname.my.domain:/usr/src/sys/arch/x68k/compile/UVM x68k

Machine: X68030 (MPU: MC68030 25MHz, RAM: 12MB) with ed network board

The kernel configuration file is "UVM" without any changes.
The kernel and ther user-land are created on my cross env on Solaris.

>Description:

panic() on NFS.
I was creating boot floppy image using NFS mounted filesystem
as working directory.
The last command executed was

	vnconfig -t floppy3 -v -c /dev/vnd0c ramdisk-13H.fs

I'm not sure this is machine dependent or not.


Here is messages on panic:

uvm_fault(0x10da18, 0x567000, 0, 0x1) -> 0x1
  type 8, code [mmu,,ssw]: 402074d
trap type 8, code = 0x402074d, v = 0x56700e
kernel program counter = 0x204f2
kernel: MMU fault trap
pid = -1, pc = 000204F2, ps = 2100, sfc = 1, dfc = 1
Registers:
             0        1        2        3        4        5        6        7
dreg: 00566F3C 00000000 00000000 00002104 00000100 0050CEE2 00002104 00000040
areg: 02F5B7AC 00566FF8 02F5B7A0 00566F3C 02F5B850 00000000 02F5B790 FFFFC7AC

Kernel stack (02F5B6A0):
F5B6A0: 000C9DEE 02F5B6E8 00000080 00000000 00002104 00000100 0050CEE2 00002104
F5B6C0: 00000040 02F5B7A0 00566F3C 02F5B850 00000000 02F5B790 00000056 00000008
F5B6E0: 0402074D 0056700E 00566F3C 00000000 00000000 00002104 00000100 0050CEE2
F5B700: 00002104 00000040 02F5B7AC 00566FF8 02F5B7A0 00566F3C 02F5B850 00000000
F5B720: 02F5B790 FFFFC7AC 00000000 21000002 04F2B008 3EEA074D 4680000C 0056700E
F5B740: 0056700E 362988E5 202B00D2 000204FA 000204F8 000204F6 FFFFFFFF 00D203E4
F5B760: 000FF487 362988E5 00000000 00000006 00000006 80180000 0056700E 00000000
F5B780: 00566FC0 00566FF8 005368C0 0052CC00 02F5B7B0 0008CEE6 00566F3C 02F5B7A0
F5B7A0: 0402A10E 0000000C 00566000 362988E5 02F5B7F4 0008CBA0 0052CC00 005368C0
F5B7C0: 00566F3C 00000000 00002104 00000100 0050CEE2 000001F4 00000040 0008CB5E
F5B7E0: 00000000 02F5B850 00000000 00002104 00000000 02F5B810 00017F28 00000000
F5B800: 00000000 00000001 00000018 0012CF74 02F5B834 00017EBE 00000000 00000000
F5B820: 00000018 007A3130 02F3FE74 02F5B960 02F5B9C4 02F5B880 000006B2 02F5B850
F5B840: 00000000 00000000 02F59000 006DC0B0 20000000 0BAC0114 00022B9C 02F3FE74
F5B860: 00002104 00000000 00000018 0050CEE2 02F3FE74 00000000 36298902 000334B8
F5B880: 02F5B8A8 00022704 00000000 02F5B9C8 00000000 00000000 00107CA4 00002004
panic: MMU fault


This stack is decoded as...

frame format $B, vector offset 8 (bus error)
SSW = 074d
	DF = 1		data fault
	RW = 1		read
	SIZE = 0	32bit
	FC = 5		supervisor data

_sigpending1(00566F3C, 02F5B7A0) + 0x1E (about to read  p->p_sigmask.__bits[0])
_nfs_sigintr(0008CBA0, 0052CC00, 005368C0) + 0x34
_nfs_timer(0) + 0x42
_softclock() + 0x56
_hardclock(02F5B850) + 0xb0
_timertrap() + 0x1A
Idle() + 4


Debugger trace output:
	This is copied by hand (from JPEG images) and may contain typos.
	Please ask me if you think something incorrect.

Stoppet at	_Debugger+0x6:	unlk	a6
db> trace
_Debugger(2104,128bf0,2f5b6d4,c9e0c,c9a5b) + 6
_panic(c9a5b,0,2104,100,50cee2) + 50
_trap(8,402074d,56700e) + 218
faultstkadj(566f3c,2f5b7a0,402a10e,c,566000) + 0
_nfs_sigintr(52cc00,5368c0,566f3c) + 2e
_nfs_timer(0) + 3e
_softclock(0,0,18,7a3130,2f3fe74) + 54
_hardclock(2f5b850) + 3ae
_timertrap(?)
_mi_switch(0,2f5b9c8,0,0,107ca4) + 14
_tsleep(50cee2,18,343a8,1f4,2f5b90c) + 146
_sbwait(50cee2) + 30
_soreceive(50cea0,2f5b9c8,2f5b960,2f5b9c4,0,2f5b950) + 240
_nfs_receive(5368c0,2f5b9c8,2f5b9c4,1,0) + 3b6
_nfs_reply(5368c0) + 42
_nfs_request(7c530c,566dbc,6,566f3c,534a00,2f5babc,2f5bab8,2f5bab4) + 35c
_nfs_readrpc(7c530c,2f5bb20,534a00) + 4a8
_nfs_doio(6e6cb8,534a00,566f3c) + 158
_nfs_bioread(7c530c,2f5bc8c,0,534a00,0) + 636
_nfs_read(2f5bc70) + 24
_vndsetcred(4f3000,510300) + b6
_vndioctl(602,c01c4600,2f5bec8,3,2f3fe74) + 330
_spec_ioctl(2f5bdf8) + 9e
_vn_ioctl(7875e8,c01c4600,2f5bec8,2f3fe74) + e4
_sys_ioctl(2f3fe74,2f5bf88,2f5bf80) + 212
_syscall(36) + 116
_trap0() + e

>How-To-Repeat:
	I can't reproduce this.

>Fix:
>Audit-Trail:
>Unformatted: