NetBSD Problem Report #13419

Received: (qmail 28185 invoked from network); 9 Jul 2001 17:43:48 -0000
Message-Id: <20010709174650.603D61110F@www.netbsd.org>
Date: Mon,  9 Jul 2001 10:46:50 -0700 (PDT)
From: manu@netbsd.org
Sender: nobody@netbsd.org
Reply-To: manu@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: panic when remounting root as R/W when having a MFS union mount on root
X-Send-Pr-Version: www-1.0

>Number:         13419
>Category:       kern
>Synopsis:       panic when remounting root as R/W when having a MFS union mount on root
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 09 17:44:00 +0000 2001
>Closed-Date:    
>Last-Modified:  
>Originator:     Emmanuel Dreyfus
>Release:        NetBSD-current
>Organization:
The NetBSD Project
>Environment:
>Description:
When root partition is mounted read-only and we have an union mount with 
a memory file system (MFS), remounting root as read/write causes a panic.
The problem has been perfectly reproductible on NetBSD-1.5/i386 and
NetBSD-current/macppc.
>How-To-Repeat:
Go to single use (not mandatory, but it's easier to mount / read-only
in single user mode), and try this (replace sd0a by your root partition)
root@violette[/root]#mkdir /tmp/mfs
root@violette[/root]#mount_mfs swap /tmp/mfs
root@violette[/root]#mount -o ro /dev/sd0a /
root@violette[/root]#mount_union /tmp/mfs /dev
root@violette[/root]#mount -o rw /dev/sd0a /
panic: lockmgr: release of unlocked lock!
Stopped in pid 23521 (mount) at cpu_Debugger+0x10:      lwz     r0, r1, 0x14,
db> trace
0xe6875ca0: at panic+134
0xe6875d50: at lockmgr+a50
0xe6875d80: at genfs_unlock+20
0xe6875d90: at VOP_UNLOCK+38
0xe6875db0: at spec_close+190
0xe6875de0: at ufsspec_close+1bc
0xe6875e10: at union_close+70
0xe6875e20: at VOP_CLOSE+40
0xe6875e50: at vn_close+60
0xe6875e70: at vn_closefile+20
0xe6875e80: at closef+204
0xe6875ec0: at fdrelease+b4
0xe6875ed0: at sys_close+2c
0xe6875ee0: at trap+3fc
0xe6875f50: user SC trap by 0x18449e8: srr1=0xd032
            r1=0x7fffe480 cr=0x40000000 xer=0x20000000 ctr=0x18445f4
  <????>  : at 0x18019f8
db>
>Fix:
Nothing yet!
>Release-Note:
>Audit-Trail:
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.