Subject: kern/15559: NFS_V2_ONLY broken?
To: None <gnats-bugs@gnats.netbsd.org>
From: Gregory McGarry <g.mcgarry@ieee.org>
List: netbsd-bugs
Date: 02/10/2002 13:59:57
>Number: 15559
>Category: kern
>Synopsis: sysinst on NFS_V2_ONLY kernel panics kernel
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 09 17:01:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Gregory McGarry
>Release: NetBSD-current
>Organization:
>Environment:
System: NetBSD/hp300 current
Architecture: m68k
>Description:
I'm sure I've had the NFS_V2_ONLY option enabled in the kernel
before. Indeed, even with it in I can touch /tmp/tmpfile without
a problem. While hacking on sysinst for NetBSD/hp300, I received
the following panic:
panic: kernel diagnostic assertion "orignpages > 0" failed: file "/rdrive/netbsd/current/src/sys/miscfs/genfs/genfs_vnops.c", line 498
Stopped in pid 14 (sysinst) at cpu_Debugger+0x6: unlk a6
db> t
cpu_Debugger(0,0,0,0,7dbba0) + 6
panic(bbb97,acf21,ad04a,acfd9,1f2) + 9e
__assert(acf21,acfd9,1f2,ad04a,7dbd48) + 1a
genfs_getpages(7dbce8,1ad770,7dbdd0,7dbd10,38acc) + 194
nfs_getpages(7dbce8,7dbd48,0,3564000,0) + 3a
VOP_GETPAGES(7c3e40,0,0,7dbd48,7dbd7c,0,3,0,a02,7dbd48,0,0) + 6a
ubc_alloc(7c3e40,0,0,7dbdd0,6) + 290
nfs_write(7dbe54,188,ac1ac,7c3e40,7dbef0) + 24c
VOP_WRITE(7c3e40,7dbef0,1,1a8f00,7c3e40,20002,7c3e40,7bacb0,1a8f00,2) + 40
vn_write(7d60e0,7d6108,7dbef0,1a8f00,1) + a8
dofilewrite(7bacb0,3,7d60e0,a6000,188) + 8c
sys_write(7bacb0,7dbf88,7dbf80) + 66
syscall(4) + 120
trap0() + e
db>
At the time, sysinst was trying to save to /etc/disktab. This file
is on the NFS filesystem.
The NFS host is a NetBSD/i386 1.5.3_ALPHA system. The client
is a NetBSD/hp300 current system.
>How-To-Repeat:
I guess, try running kernels with NFS_V2_ONLY. Seems to be
deterministic and reproducible.
>Fix:
N/A
>Release-Note:
>Audit-Trail:
>Unformatted: