Subject: kern/25021: Kernel panic in NFS code during system shutdown
To: None <gnats-bugs@gnats.NetBSD.org>
From: Matthias Scheler <tron@colwyn.zhadum.de>
List: netbsd-bugs
Date: 04/02/2004 11:34:32
>Number:         25021
>Category:       kern
>Synopsis:       Kernel panic in NFS code during system shutdown
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 02 09:35:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 2.0B 2004-04-01 sources
>Organization:
Matthias Scheler                                  http://scheler.de/~matthias/
>Environment:
System: NetBSD lyssa.zhadum.de 2.0B NetBSD 2.0B (LYSSA) #0: Wed Mar 31 13:13:28 CEST 2004 tron@lyssa.zhadum.de:/src/sys/compile/LYSSA i386
Architecture: i386
Machine: i386
>Description:
When I initiated a system shutdown yesterday with "shutdown -p now" it
paniced in the NFS code with this message:

panic: panic: kernel diagnostic assertion "np->n_dirgens == NULL" failed: file "/usr/src/sys/nfs/nfs_node.c", line 312

Here is a stack trace:

#0  0x1 in ?? ()
#1  0xc02faa8d in cpu_reboot ()
#2  0xc027c228 in panic ()
#3  0xc03bac44 in __main ()
#4  0xc01cdeff in nfs_reclaim ()
#5  0xc02a6748 in VOP_RECLAIM ()
#6  0xc029dc7d in vclean ()
#7  0xc029df2e in vgonel ()
#8  0xc029dee4 in vgone ()
#9  0xc01eca78 in nfs_unmount ()
#10 0xc02a035d in dounmount ()
#11 0xc029ed89 in vfs_unmountall ()
#12 0xc029ee4e in vfs_shutdown ()
#13 0xc02faaa1 in cpu_reboot ()
#14 0xc027593a in sys_reboot ()
#15 0xc030262e in syscall_plain ()
#16 0xc0100b82 in syscall1 ()

>How-To-Repeat:
Mount a NFS file system via amd(8), reboot the NFS server (while the file
system is still mounted) and shutdown the NFS client once the NFS server
is up again.

>Fix:
None provided.

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