From owner-freebsd-current@FreeBSD.ORG Fri Jun 20 19:00:40 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6C1691065679 for ; Fri, 20 Jun 2008 19:00:40 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from mail.irbisnet.ru (mail.irbisnet.ru [194.186.18.2]) by mx1.freebsd.org (Postfix) with ESMTP id C38228FC18 for ; Fri, 20 Jun 2008 19:00:39 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from darklight.homeunix.org ([85.172.11.132]) (authenticated bits=0) by mail.irbisnet.ru (8.14.2/8.14.2) with ESMTP id m5KIftoh063046 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 20 Jun 2008 22:41:56 +0400 (MSD) (envelope-from yuri.pankov@gmail.com) Received: from darklight.homeunix.org (darklight.homeunix.org [127.0.0.1]) by darklight.homeunix.org (8.14.2/8.14.2) with ESMTP id m5KIfe5K024869; Fri, 20 Jun 2008 22:41:40 +0400 (MSD) (envelope-from yuri.pankov@gmail.com) Received: (from yuri@localhost) by darklight.homeunix.org (8.14.2/8.14.2/Submit) id m5KIfdjE024868; Fri, 20 Jun 2008 22:41:39 +0400 (MSD) (envelope-from yuri.pankov@gmail.com) X-Authentication-Warning: darklight.homeunix.org: yuri set sender to yuri.pankov@gmail.com using -f Date: Fri, 20 Jun 2008 22:41:39 +0400 From: Yuri Pankov To: Garrett Cooper Message-ID: <20080620184139.GA24846@darklight.homeunix.org> References: <7d6fde3d0806081931h5df7b71dkdd4d6e3e2d144ff2@mail.gmail.com> <7d6fde3d0806082039r2a49ab77lf6f92b3699c12c7e@mail.gmail.com> <7d6fde3d0806082048n639310eav157c8d9def335d30@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7d6fde3d0806082048n639310eav157c8d9def335d30@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: current@freebsd.org Subject: Re: Hard lockup with recent CURRENT when using mount_smbfs -- recursive lock message 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: Fri, 20 Jun 2008 19:00:40 -0000 On Sun, Jun 08, 2008 at 08:48:54PM -0700, Garrett Cooper wrote: > On Sun, Jun 8, 2008 at 8:39 PM, Garrett Cooper wrote: > > On Sun, Jun 8, 2008 at 7:31 PM, Garrett Cooper wrote: > >> Hi guys, > >> First hard lockup in a while. > >> Just synced current to latest sources yesterday after having to > >> apply some patches to get things to cleanly compile. PR's posted at > >> the bottom of the message. > >> When I run the following command: > >> > >> optimus# mount_smbfs -I 192.168.10.47 -W WORKGROUP > >> //gcooper@orangebox/c$ /mnt/smbfs/ > >> Password: > >> > >> My system just locked up. Nothing else that I can say other > >> than it says the following on the console (and it refuses to let me > >> login / interrupt the processor): > >> > >> smb_co_lock: recursive lock for object 1 > >> > >> The kernel hasn't panicked and I don't have any means of > >> accessing the machine, so I can't capture output from the kernel right > >> now :(. > >> > >> I'll post my kernel / system stats in a second once I reboot > >> the machine. > > I've tied down the following issue (recursive lock for ...) to line > 352 of sys/netsmb/smb_conn.c. > > I'll manually add in a coredump'able statement to get this thing to > stop before it locks up my system so I can get a backtrace. > > -Garrett Could the following LOR I'm seeing on recent -current be related? (no lockups) mount_smbfs results in: lock order reversal: (sleepable after non-sleepable) 1st 0xffffff00579d6a30 smbss ilock (smbss ilock) @ /usr/src/sys/modules/smbfs/../../netsmb/smb_conn.c:304 2nd 0xffffff00579d6a08 smbss (smbss) @ /usr/src/sys/modules/smbfs/../../netsmb/smb_conn.c:355 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a witness_checkorder() at witness_checkorder+0x609 __lockmgr_args() at __lockmgr_args+0x502 smb_co_lock() at smb_co_lock+0x64 smb_co_get() at smb_co_get+0x38 smb_dev2share() at smb_dev2share+0x16b smbfs_mount() at smbfs_mount+0xf8 vfs_donmount() at vfs_donmount+0xe40 nmount() at nmount+0xa6 syscall() at syscall+0x1bf Xfast_syscall() at Xfast_syscall+0xab --- syscall (378, FreeBSD ELF64, nmount), rip = 0x800898d0c, rsp = 0x7fffffffe618, rbp = 0x1ed --- Yuri