Subject: kern/21449: ext2fs panic: lockmgr: locking against myself
To: None <gnats-bugs@gnats.netbsd.org>
From: Andrew Brown <atatat@atatdot.net>
List: netbsd-bugs
Date: 05/04/2003 11:48:57
>Number: 21449
>Category: kern
>Synopsis: ext2fs panic: lockmgr: locking against myself
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun May 04 15:50:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: TheMan
>Release: 1.6R (current as of 4/30/2003)
>Organization:
none
>Environment:
System: NetBSD this 1.6R NetBSD 1.6R (THAT) #178: Wed Apr 30 23:57:00 EDT 2003 andrew@this:/usr/src/sys/arch/i386/compile/THAT i386
>Description:
use of a locally created ext2fs panics with you first use it.
i have now two cores that say:
uvm_fault(0xcf440d80, 0x0, 0, 2) -> e
fatal page fault in supervisor mode
trap type 6 code 2 eip c01ea277 cs 8 eflags 10202 cr2 64 ilevel 0
panic: trap
Begin traceback...
trap() at trap+0x216
--- trap (number 6) ---
ext2fs_valloc(cf7f8dac,3eb071a4,0,0,cf7fc1ec) at ext2fs_valloc+0x163
VOP_VALLOC(cf7fc1ec,41ed,c09b0400,cf7f8e04,cf7fc1ec) at VOP_VALLOC+0x3b
ext2fs_mkdir(cf7f8e4c,0,0,1,cf7f8ed4) at ext2fs_mkdir+0x7b
VOP_MKDIR(cf7fc1ec,cf7f8e9c,cf7f8eb0,cf7f8ed4,cf443d80) at VOP_MKDIR+0x3b
sys_mkdir(cf443d80,cf7f8f80,cf7f8f78,c02d8528,0) at sys_mkdir+0x113
syscall_plain(1f,1f,1f,1f,1ed) at syscall_plain+0xab
End traceback...
syncing disks... panic: lockmgr: locking against myself
Begin traceback...
lockmgr(cf7fc258,10012,cf7fc1ec,c02d92a3,2f00) at lockmgr+0x631
genfs_lock(cf7f8b54,5,1,c0218fbb,cf7f8fa8) at genfs_lock+0x1c
VOP_LOCK(cf7fc1ec,10012,c03e881e,c02ce003,cf7fc1ec) at VOP_LOCK+0x2e
vn_lock(cf7fc1ec,10012,10,0,cf7fc1ec) at vn_lock+0x5d
vget(cf7fc1ec,10012,cf7f8c00,c026fd17,0) at vget+0xcd
ext2fs_sync(c0992a00,2,c09b0400,cf7a09c8,cf443d80) at ext2fs_sync+0xa1
sys_sync(cf443d80,0,0,c0252358,100) at sys_sync+0x66
vfs_shutdown(cf7f8ccc,1,fff9,c03d21d7,c02522b8) at vfs_shutdown+0x95
cpu_reboot(100,0,cf7f8d10,c02d823a,0) at cpu_reboot+0x3b
panic(c03e881e,c03e87c0,cf7f8d18,2,0) at panic+0x12f
trap() at trap+0x216
--- trap (number 6) ---
ext2fs_valloc(cf7f8dac,3eb071a4,0,0,cf7fc1ec) at ext2fs_valloc+0x163
VOP_VALLOC(cf7fc1ec,41ed,c09b0400,cf7f8e04,cf7fc1ec) at VOP_VALLOC+0x3b
ext2fs_mkdir(cf7f8e4c,0,0,1,cf7f8ed4) at ext2fs_mkdir+0x7b
VOP_MKDIR(cf7fc1ec,cf7f8e9c,cf7f8eb0,cf7f8ed4,cf443d80) at VOP_MKDIR+0x3b
sys_mkdir(cf443d80,cf7f8f80,cf7f8f78,c02d8528,0) at sys_mkdir+0x113
syscall_plain(1f,1f,1f,1f,1ed) at syscall_plain+0xab
End traceback...
>How-To-Repeat:
dd if=/dev/zero bs=1m count=10 of=/tmp/ext2fs
vnconfig vnd0 /tmp/ext2fs
(set up a disklabel that provides one partition)
mkfs.ext2 /dev/rvnd0a (mkfs.ext2 from pkgsrc/sysutils/e2fsprogs)
mount /dev/vnd0a /mnt
cd /mnt
mkdir foo
>Fix:
dunno.
>Release-Note:
>Audit-Trail:
>Unformatted: