Subject: kern/20571: locking problem when rebooting SMP NFS client
To: None <gnats-bugs@gnats.netbsd.org>
From: None <martin@aprisoft.de>
List: netbsd-bugs
Date: 03/04/2003 15:56:11
>Number:         20571
>Category:       kern
>Synopsis:       locking problem when rebooting SMP NFS client
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 04 06:57:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Martin Husemann
>Release:        NetBSD 1.6P
>Organization:
>Environment:
System: NetBSD beasty.aprisoft.de 1.6P NetBSD 1.6P (BEASTY) #0: Tue Mar 4 11:49:35 CET 2003 martin@beasty.aprisoft.de:/usr/src/sys/arch/i386/compile/BEASTY i386
Architecture: i386
Machine: i386
>Description:

A lockdebug kernel trips an assertion when rebooting a SMP machine mounting
an NFS share.

simple_unlock: lock not held
lock: 0xd3b278a4, currently at: ../../../../nfs/nfs_syscalls.c:794 on cpu 1
last locked: ../../../../kern/kern_descrip.c:1131
last unlocked: ../../../../kern/kern_descrip.c:1161
nfsrv_zapsock(c0a0fd00,0,c0a0fd00,1,3b80c) at nfsrv_zapsock+0x4e
nfsrv_init(1,c02e2580,d4844dec,c01b71c8,0) at nfsrv_init+0x4d
nfssvc_nfsd(d4844e40,804b6a0,d3afb700,1,0) at nfssvc_nfsd+0x9d4
sys_nfssvc(d3afb700,d4844f80,d4844f78,c0236833,d3afb700) at sys_nfssvc+0x6da
syscall_plain(1f,480f001f,bfbf001f,480f001f,bfbffc9c) at syscall_plain+0xc0
Stopped in pid 143.1 (nfsd) at  cpu_Debugger+0x4:       leave
db{1}> c
Mar  4 15:47:02 beasty syslogd: Exiting on signal 15
syncing disks... done
unmounting /mp3 (emmas:/mp3)...
unmounting /dos/d (/dev/wd1e)...
unmounting /dos/c (/dev/wd0e)...
unmounting /proc (procfs)...
unmounting /kern (kernfs)...
unmounting /usr (/dev/wd1a)...
unmounting / (/dev/wd0a)...
rebooting...
cpu1: shutting down

>How-To-Repeat:

Mount something via NFS on an SMP machine with LOCKDEBUG kernel, reboot.

>Fix:
n/a
>Release-Note:
>Audit-Trail:
>Unformatted: