From owner-freebsd-current@FreeBSD.ORG Sun May 6 22:19:06 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2ED97106564A; Sun, 6 May 2012 22:19:06 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id CE5948FC08; Sun, 6 May 2012 22:19:05 +0000 (UTC) Received: by obcni5 with SMTP id ni5so9838068obc.13 for ; Sun, 06 May 2012 15:19:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=PmqXmNVZ8l9zG8jBjDnbo4bCSfq+FMMzF3/6BSwi/oI=; b=05QPGt2jK+rjYkpvbt90o7Kadu6RkE8k5KzCU+NbcrKvfFdOjZj9W5LkrdTLpoHGcR ZS5hvAQd2Z2dPJiW12gdxdDWVWJsQQK2OAYyydd+Edxjb+CsYJ4nDBh7mZ7UcKjcT1Sf 2y5raeyEFeFS/ppsURIVCgGsPNyZPG37+IKNxkY40FpgByF5eQh1w3smZT7q+OBnAKOm uYk0Slw8b760yKgezJCS+gxoGJEdCgwSjxpaLpjeFq1eSGd1TR9ixoFTkXY4KGZTDucW apLxjbSwz+u6A2Bl/kXHe3ZnDJqDDMjwA4+/GidnxL1kAa+2KaIy+NiCEqNGKDAsaVS3 eEvA== MIME-Version: 1.0 Received: by 10.50.89.162 with SMTP id bp2mr1194909igb.46.1336342745206; Sun, 06 May 2012 15:19:05 -0700 (PDT) Received: by 10.64.78.37 with HTTP; Sun, 6 May 2012 15:19:05 -0700 (PDT) In-Reply-To: <4FA6F324.4080107@FreeBSD.org> References: <4FA6F324.4080107@FreeBSD.org> Date: Mon, 7 May 2012 02:19:05 +0400 Message-ID: From: Sergey Kandaurov To: Doug Barton Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current , mckusick@freebsd.org Subject: Re: panic, seems related to r234386 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: Sun, 06 May 2012 22:19:06 -0000 On 7 May 2012 01:54, Doug Barton wrote: > I got this with today's current, previous (working) kernel is r232719. > > panic: _mtx_lock_sleep: recursed on non-recursive mutex struct mount mtx > @ /frontier/svn/head/sys/kern/vfs_subr.c:4595 > > FWIW I'm using ufs2, ext2fs, and msdosfs on this system. The panic > occurred right after loading the linux kernel module, but I'm not 100% > sure that's related. Full core.txt.0 is in my home directory on freefall. > > #0 =A0doadump (textdump=3D1) at /frontier/svn/head/sys/kern/kern_shutdown= .c:268 > 268 =A0 =A0 =A0 =A0 =A0 =A0 if (textdump && textdump_pending) { > (kgdb) #0 =A0doadump (textdump=3D1) at > /frontier/svn/head/sys/kern/kern_shutdown.c:268 > #1 =A00xffffffff80482999 in kern_reboot (howto=3D260) > =A0 =A0at /frontier/svn/head/sys/kern/kern_shutdown.c:454 > #2 =A00xffffffff804823ca in panic (fmt=3D0x0) > =A0 =A0at /frontier/svn/head/sys/kern/kern_shutdown.c:642 > #3 =A00xffffffff80471c25 in _mtx_lock_sleep (m=3DVariable "m" is not avai= lable. > ) > =A0 =A0at /frontier/svn/head/sys/kern/kern_mutex.c:363 > #4 =A00xffffffff80471cb0 in _mtx_lock_flags (m=3DVariable "m" is not avai= lable. > ) > =A0 =A0at /frontier/svn/head/sys/kern/kern_mutex.c:212 > #5 =A00xffffffff80517353 in __mnt_vnode_first_all (mvp=3D0xffffff819e9f0a= 58, > =A0 =A0mp=3D0xfffffe00051dc310) at /frontier/svn/head/sys/kern/vfs_subr.c= :4595 > #6 =A00xffffffff8042bdd5 in ext2_sync (mp=3D0xfffffe00051dc310, waitfor= =3D2) > =A0 =A0at /frontier/svn/head/sys/fs/ext2fs/ext2_vfsops.c:835 > #7 =A00xffffffff80521446 in sys_sync (td=3DVariable "td" is not available= . > ) > =A0 =A0at /frontier/svn/head/sys/kern/vfs_syscalls.c:150 > #8 =A00xffffffff806b1d52 in amd64_syscall (td=3D0xfffffe0005149480, trace= d=3D0) > =A0 =A0at subr_syscall.c:135 > #9 =A00xffffffff8069d697 in Xfast_syscall () > =A0 =A0at /frontier/svn/head/sys/amd64/amd64/exception.S:387 > #10 0x00000008008b061c in ?? () > Previous frame inner to this frame (corrupt stack?) > (kgdb) > Please try this patch. Index: fs/ext2fs/ext2_vfsops.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- fs/ext2fs/ext2_vfsops.c (revision 235108) +++ fs/ext2fs/ext2_vfsops.c (working copy) @@ -830,7 +830,6 @@ /* * Write back each (modified) inode. */ - MNT_ILOCK(mp); loop: MNT_VNODE_FOREACH_ALL(vp, mp, mvp) { if (vp->v_type =3D=3D VNON) { --=20 wbr, pluknet