From owner-freebsd-current@FreeBSD.ORG Wed Sep 27 14:02:28 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D8A3516A403 for ; Wed, 27 Sep 2006 14:02:28 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59F7243D46 for ; Wed, 27 Sep 2006 14:02:23 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5F6F9.dip.t-dialin.net [84.165.246.249]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8RDbV61068029 for ; Wed, 27 Sep 2006 15:37:32 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (webmail.Leidinger.net [192.168.1.102]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8RE2H7p049567 for ; Wed, 27 Sep 2006 16:02:17 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from psbru.cec.eu.int (psbru.cec.eu.int [158.169.131.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Wed, 27 Sep 2006 16:01:45 +0200 Message-ID: <20060927160145.vl5ls2dz44ccscwo@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Wed, 27 Sep 2006 16:01:45 +0200 From: Alexander Leidinger To: current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-Virus-Scanned: by amavisd-new Cc: Subject: "recursive lock for object" & "unlocking unheld lock" in smb X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Sep 2006 14:02:29 -0000 Hi, yesterday I rsynced a smb share from a samba-3.0.x server (FreeBSD 4) =20 via a smb mount (current from Sep 23) "locally" (mount -t smbfs from =20 the samba server and rsync a/ b/; most easy solution to convert some =20 ISO-8859-1 filenames to UTF-8 ("dos charset =3D UTF8" in smb.conf!) =20 while moving to another system). Today I noticed the following in the daily mail on the -current system: +++ /tmp/security.w9S5FGBa=09Wed Sep 27 03:02:41 2006 +netsmb_dev: loaded +smb_co_lock: recursive lock for object 1 +lockmgr: thread 0xc3d6fbd0 unlocking unheld lock +KDB: stack backtrace: +lockmgr(c79a9c08,2006,c79a9c2c,c3d6fbd0,e5a38b9c,...) at lockmgr+0x529 +smb_co_put(c79a9c00,e5a38b9c,c3d6fbd0,c34a7c00,c79a9c00,...) at =20 smb_co_put+0x6e +smb_sm_lookup(e5a38b28,e5a38b08,e5a38b9c,e5a38b04,c3654a00,...) at =20 smb_sm_lookup+0x10d +smb_usr_lookup(c32cb800,e5a38b9c,e5a38b98,e5a38b94,0,...) at =20 smb_usr_lookup+0x6c +nsmb_dev_ioctl(c3d65200,82fc6e6a,c32cb800,3,c3d6fbd0) at nsmb_dev_ioctl+0x2= d5 +giant_ioctl(c3d65200,82fc6e6a,c32cb800,3,c3d6fbd0,...) at giant_ioctl+0x51 +devfs_ioctl_f(c3b57558,82fc6e6a,c32cb800,c3e36a80,c3d6fbd0) at =20 devfs_ioctl_f+0x9d +kern_ioctl(c3d6fbd0,3,82fc6e6a,c32cb800) at kern_ioctl+0x286 +ioctl(c3d6fbd0) at ioctl+0xca +syscall(3b,3b,3b,bfbfe91c,bfbfe444,...) at syscall+0x28f +Xint0x80_syscall() at Xint0x80_syscall+0x1f +--- syscall (54, FreeBSD ELF32, ioctl), eip =3D 0x28138e43, esp =3D =20 0xbfbfe434, ebp =3D 0xbfbfe750 --- +smb_co_lock: recursive lock for object 1 +lockmgr: thread 0xc3aa8870 unlocking unheld lock +KDB: stack backtrace: +lockmgr(c449dc08,2006,c449dc2c,c3aa8870,e59edb9c,...) at lockmgr+0x529 +smb_co_put(c449dc00,e59edb9c,c3aa8870,c7499700,c449dc00,...) at =20 smb_co_put+0x6e +smb_sm_lookup(e59edb28,e59edb08,e59edb9c,e59edb04,c3654a00,...) at =20 smb_sm_lookup+0x10d +smb_usr_lookup(c30cc800,e59edb9c,e59edb98,e59edb94,0,...) at =20 smb_usr_lookup+0x6c +nsmb_dev_ioctl(c76b4100,82fc6e6a,c30cc800,3,c3aa8870) at nsmb_dev_ioctl+0x2= d5 +giant_ioctl(c76b4100,82fc6e6a,c30cc800,3,c3aa8870,...) at giant_ioctl+0x51 +devfs_ioctl_f(c44d6360,82fc6e6a,c30cc800,c3e36a80,c3aa8870) at =20 devfs_ioctl_f+0x9d +kern_ioctl(c3aa8870,3,82fc6e6a,c30cc800) at kern_ioctl+0x286 +ioctl(c3aa8870) at ioctl+0xca +syscall(bfbf003b,bfbf003b,e59e003b,bfbfe91c,bfbfe444,...) at syscall+0x28f +Xint0x80_syscall() at Xint0x80_syscall+0x1f +--- syscall (54, FreeBSD ELF32, ioctl), eip =3D 0x28138e43, esp =3D =20 0xbfbfe434, ebp =3D 0xbfbfe750 --- To reproduce this it should be enough to setup samba, export something =20 from it and mount it somewhere on a FreeBSD system. I had one file =20 which was not owned by the user I used to authenticate to the samba =20 server and this file was not readable by enyone except the owner =20 itself (root). I tried to rsync twice before having a look at the file =20 at the source system. Maybe this is needed to reproduce this. Bye, Alexander. --=20 Out of the crooked timber of humanity no straight thing can ever be made. =09=09-- Immanuel Kant http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137