From cy@cschuber.net.gov.bc.ca  Sun Jan 18 10:46:14 1998
Received: from passer.osg.gov.bc.ca (passer.osg.gov.bc.ca [142.32.110.29])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA01408
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 18 Jan 1998 10:46:10 -0800 (PST)
          (envelope-from cy@cschuber.net.gov.bc.ca)
Received: (from uucp@localhost) by passer.osg.gov.bc.ca (8.8.8/8.6.10) id KAA23871 for <FreeBSD-gnats-submit@freebsd.org>; Sun, 18 Jan 1998 10:40:30 -0800 (PST)
Received: from cschuber.net.gov.bc.ca(142.31.240.113), claiming to be "cwsys.cwsent.com"
 via SMTP by passer.osg.gov.bc.ca, id smtpdaavzfa; Sun Jan 18 10:40:18 1998
Received: (from cy@localhost) by cwsys.cwsent.com (8.8.8/8.6.10) id KAA01204; Sun, 18 Jan 1998 10:40:14 -0800 (PST)
Message-Id: <199801181840.KAA01204@cwsys.cwsent.com>
Date: Sun, 18 Jan 1998 10:40:14 -0800 (PST)
From: cschuber@uumail.gov.bc.ca
Reply-To: cschuber@uumail.gov.bc.ca
To: FreeBSD-gnats-submit@freebsd.org
Subject: Recursive NULLFS Mount Panic
X-Send-Pr-Version: 3.2

>Number:         5517
>Category:       kern
>Synopsis:       Recursive NULLFS mount causes ufs_ihashget panic
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 18 10:50:02 PST 1998
>Closed-Date:    Sun Oct 22 08:40:30 PDT 2000
>Last-Modified:  Sun Oct 22 08:42:05 PDT 2000
>Originator:     Cy Schubert
>Release:        FreeBSD 2.2.5-RELEASE i386
>Organization:
ITSD, Province of British Columbia
>Environment:

	FreeBSD cwtest 2.2.5-RELEASE FreeBSD 2.2.5-RELEASE #0: Fri Jan  2 09:43:23 PST 1998     root@cwsys:/opt/usr_src/sys/compile/CWTEST  i386

	and

	FreeBSD cwsys 2.2.5-RELEASE FreeBSD 2.2.5-RELEASE #0: Fri Jan  2 09:33:59 PST 1998     root@cwsys:/opt/usr_src/sys/compile/CWSYS  i386

>Description:

	Recursive mount of nullfs filesystem causes panic at ufs_ihashget.

	I suspect that umapfs, because it is designed closely on nullfs,
	will have the same problem.

	KGDB output:

IdlePTD 1e6000
current pcb at 1cbc6c
panic: ufs_ihashget: recursive lock not expected -- pid %d

#0  boot (howto=256) at ../../kern/kern_shutdown.c:266
266                                     dumppcb.pcb_cr3 = rcr3();
(kgdb) bt
#0  boot (howto=256) at ../../kern/kern_shutdown.c:266
#1  0xf010ea22 in panic (
    fmt=0xf0188720 "ufs_ihashget: recursive lock not expected -- pid %d\n")
    at ../../kern/kern_shutdown.c:390
#2  0xf01887d1 in ufs_ihashget (device=0, inum=9)
    at ../../ufs/ufs/ufs_ihash.c:109
#3  0xf0186943 in ffs_vget (mp=0xf0531c00, ino=9, vpp=0xefbffdbc)
    at ../../ufs/ffs/ffs_vfsops.c:868
#4  0xf0189754 in ufs_lookup (ap=0xefbffe2c) at ../../ufs/ufs/ufs_lookup.c:561
#5  0xf012c0f9 in lookup (ndp=0xefbfff0c) at vnode_if.h:31
#6  0xf012bc3b in namei (ndp=0xefbfff0c) at ../../kern/vfs_lookup.c:156
#7  0xf0132ba2 in nullfs_mount (mp=0xf053f200, path=0xefbfdcde "/mnt", 
    data=0xefbfd834 "<ؿ", ndp=0xefbfff0c, p=0xf053f600)
    at ../../miscfs/nullfs/null_vfsops.c:121
#8  0xf012e607 in mount (p=0xf053f600, uap=0xefbfff94, retval=0xefbfff84)
    at ../../kern/vfs_syscalls.c:192
#9  0xf01a5a4f in syscall (frame={tf_es = 39, tf_ds = 39, tf_edi = 0, 
      tf_esi = -272638876, tf_ebp = -272638916, tf_isp = -272629788, 
      tf_ebx = 54632, tf_edx = 57376, tf_ecx = 61440, tf_eax = 21, 
      tf_trapno = 12, tf_err = 7, tf_eip = 9381, tf_cs = 31, tf_eflags = 514, 
      tf_esp = -272639976, tf_ss = 39}) at ../../i386/i386/trap.c:914
#10 0x24a5 in ?? ()
#11 0x107e in ?? ()


>How-To-Repeat:

	mount -t null /usr/bin /mnt
	mount -t null /usr/bin /mnt	# twice

>Fix:
	
	I have no fix at this time.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->bp 
Responsible-Changed-By: phantom 
Responsible-Changed-When: Sun Oct 22 07:44:12 PDT 2000 
Responsible-Changed-Why:  
Oops, one more nullfs related PR, let Boris operate him (hope you just need to close this PR, but who  knows ...) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=5517 
State-Changed-From-To: open->closed 
State-Changed-By: bp 
State-Changed-When: Sun Oct 22 08:40:30 PDT 2000 
State-Changed-Why:  
Problem fixed in the -current and will be MFC'ed to -stable. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=5517 
>Unformatted:
