From danny@cs.huji.ac.il  Tue Jul 26 06:22:51 2005
Return-Path: <danny@cs.huji.ac.il>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9E1B916A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 26 Jul 2005 06:22:51 +0000 (GMT)
	(envelope-from danny@cs.huji.ac.il)
Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 33B7343D46
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 26 Jul 2005 06:22:51 +0000 (GMT)
	(envelope-from danny@cs.huji.ac.il)
Received: from x-dev.cs.huji.ac.il ([132.65.16.100])
	by cs1.cs.huji.ac.il with esmtp
	id 1DxIq2-000Isq-1M
	for FreeBSD-gnats-submit@freebsd.org; Tue, 26 Jul 2005 09:22:50 +0300
Received: from danny by x-dev.cs.huji.ac.il with local (Exim 4.44 (FreeBSD))
	id 1DxIq2-000Imo-0v
	for FreeBSD-gnats-submit@freebsd.org; Tue, 26 Jul 2005 09:22:50 +0300
Message-Id: <E1DxIq2-000Imo-0v@x-dev.cs.huji.ac.il>
Date: Tue, 26 Jul 2005 09:22:50 +0300
From: Danny Braniss <danny@cs.huji.ac.il>
Reply-To: Danny Braniss <danny@cs.huji.ac.il>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: unionfs related panic
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         84107
>Category:       kern
>Synopsis:       [unionfs] [panic] unionfs related panic
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 26 06:30:16 GMT 2005
>Closed-Date:    Mon Feb 13 03:27:27 GMT 2006
>Last-Modified:  Mon Feb 13 03:27:27 GMT 2006
>Originator:     Danny Braniss
>Release:        FreeBSD 6.0-BETA1 i386
>Organization:
>Environment:
System: FreeBSD shuttle-2 6.0-BETA1 FreeBSD 6.0-BETA1 #2: Fri Jul 22 12:41:55 IDT 2005 danny@x-dev:/r+d/obj/x-dev/r+d/6.0/src/sys/HUJI i386


	
>Description:
	executing a mv (rename) in a union fs causes:
panic: lockmgr: locking against myself
cpuid = 0
KDB: enter: panic
[thread pid 3818 tid 100096 ]
Stopped at      kdb_enter+0x2b: nop     
db> tr
Tracing pid 3818 tid 100096 td 0xc1db1180
kdb_enter(c086b4bf) at kdb_enter+0x2b
panic(c086a0cf,c1db1180,0,c08cd020,d6b46ad8) at panic+0x127
lockmgr(c1e02498,3002,c1e024bc,c1db1180,d6b46ab4) at lockmgr+0x3a6
vop_stdlock(d6b46ad8,1002,c1e02440,d6b46af4,c069f920) at vop_stdlock+0x1e
VOP_LOCK_APV(c1d9d240,d6b46ad8) at VOP_LOCK_APV+0x43
vn_lock(c1e02440,1002,c1db1180) at vn_lock+0xf4
lookup(d6b46c18,c1e73000,1,c1db1180,d6b46c40) at lookup+0xc9
namei(d6b46c18,1,0,c10493dc,c1040878) at namei+0x396
kern_rename(c1db1180,bfbfea37,bfbfea43,0,d6b46d30) at kern_rename+0xf4
rename(c1db1180,d6b46d04,2,1,292) at rename+0x15
syscall(3b,3b,3b,bfbfe938,bfbfea37) at syscall+0x2bb
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (128, FreeBSD ELF32, rename), eip = 0x280b6f27, esp = 0xbfbfdd8c, ebp = 0xbfbfe408 ---

>How-To-Repeat:
    kldload unionfs
    /sbin/mdmfs -i 4096 -s 4096 -M md /conf/etc
    chmod 755 /conf/etc
    mount_unionfs /conf/etc /etc
    ls -R /etc > /dev/null

    mv /etc/somefile /etc/smfl

>Fix:

	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: daichi 
State-Changed-When: Mon Feb 13 03:22:55 UTC 2006 
State-Changed-Why:  
Latest patchset get the solve of this problem. 
http://people.freebsd.org/~daichi/unionfs/ 
Thanks! 

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