From owner-freebsd-bugs@freebsd.org Thu Jan 4 12:52:22 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 58571EB1CE4 for ; Thu, 4 Jan 2018 12:52:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 42C5C682F7 for ; Thu, 4 Jan 2018 12:52:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w04CqM10012009 for ; Thu, 4 Jan 2018 12:52:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w04CqMTu012008 for freebsd-bugs@FreeBSD.org; Thu, 4 Jan 2018 12:52:22 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 224892] ufs: lock order reversal Date: Thu, 04 Jan 2018 12:52:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: breno.leitao@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jan 2018 12:52:22 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224892 Bug ID: 224892 Summary: ufs: lock order reversal Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: breno.leitao@gmail.com I am running current freebsd (Jan 4st - git commit 6fceb757ffd5b050eca4c75ecbd350710b11db5e) on a powerpc64 machine and I am facing a file system lock order reversal. lock order reversal: 1st 0xc0000000008ac748 bufwait (bufwait) @ /root/kernel/freebsd/sys/kern/vfs_bio.c:3564 2nd 0x4985200 dirhash (dirhash) @ /root/kernel/freebsd/sys/ufs/ufs/ufs_dirhash.c:289 stack backtrace: #0 0x5ec138 at ??+0 #1 0x5ee360 at ??+0 #2 0x576c2c at ??+0 #3 0x870e50 at ??+0 #4 0x871314 at ??+0 #5 0x875008 at ??+0 #6 0x87f6b4 at ??+0 #7 0x923d0c at ??+0 #8 0x66ede4 at ??+0 #9 0x66ef2c at ??+0 #10 0x908890 at ??+0 #11 0x8fd938 at ??+0 $ awk 'NR >=3D 3560 && NR <=3D 3570' /root/kernel/freebsd/sys/kern/vfs_bio.= c=20=20=20=20 if (flags & GB_LOCK_NOWAIT) lockflags |=3D LK_NOWAIT; error =3D BUF_TIMELOCK(bp, lockflags, BO_LOCKPTR(bo), "getblk", slpflag, slptimeo); /* * If we slept and got the lock we have to restart in case * the buffer changed identities. */ if (error =3D=3D ENOLCK) $ awk 'NR >=3D 285 && NR <=3D 295' /root/kernel/freebsd/sys/ufs/ufs/ufs_dir= hash.c dh =3D ip->i_dirhash; if (dh =3D=3D NULL) return (NULL); sx_xlock(&dh->dh_lock); if (dh->dh_hash !=3D NULL) return (dh); ufsdirhash_free_locked(ip); return (NULL); } --=20 You are receiving this mail because: You are the assignee for the bug.=