From owner-freebsd-bugs@freebsd.org Tue Aug 18 19:20:56 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4F7E33C4966 for ; Tue, 18 Aug 2020 19:20:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BWLNm1WL5z4Wpf for ; Tue, 18 Aug 2020 19:20:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 321A43C4965; Tue, 18 Aug 2020 19:20:56 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 31E013C4A8F for ; Tue, 18 Aug 2020 19:20:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BWLNm0Zydz4XGH for ; Tue, 18 Aug 2020 19:20:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D2C9916BA6 for ; Tue, 18 Aug 2020 19:20:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 07IJKtgr080680 for ; Tue, 18 Aug 2020 19:20:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 07IJKtLo080679 for bugs@FreeBSD.org; Tue, 18 Aug 2020 19:20:55 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: bugs@FreeBSD.org Subject: [Bug 248732] LOR on a recent -CURRENT between UFS and devfs Date: Tue, 18 Aug 2020 19:20:55 +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 Many People X-Bugzilla-Who: gbe@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 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.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2020 19:20:56 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248732 Bug ID: 248732 Summary: LOR on a recent -CURRENT between UFS and devfs Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: gbe@FreeBSD.org On an ARM64 PRi4B I get the following LOR: The system is mounting a NFS share very late, if this leads more towards solving this problem. lock order reversal: 1st 0xfffffd0061a35c10 ufs (ufs, lockmgr) @ /tank/nfs_public/tiny/src/sys/kern/vfs_mount.c:1008 2nd 0xfffffd0061a3b450 devfs (devfs, lockmgr) @ /tank/nfs_public/tiny/src/sys/kern/vfs_mount.c:1019 lock order devfs -> ufs established at: #0 0xffff00000040eeec at witness_lock_order_add+0xec #1 0xffff00000040e4e0 at witness_checkorder+0x23c #2 0xffff000000380ff8 at lockmgr_lock_flags+0x150 #3 0xffff0000005dea68 at ffs_lock+0x68 #4 0xffff0000006dc560 at VOP_LOCK1_APV+0x40 #5 0xffff00000048684c at VOP_LOCK1+0x2c #6 0xffff000000485578 at _vn_lock+0x38 #7 0xffff00000046c54c at vfs_domount_first+0x440 #8 0xffff000000469d14 at vfs_domount+0x270 #9 0xffff000000469040 at vfs_donmount+0x6cc #10 0xffff00000046bb1c at kernel_mount+0x54 #11 0xffff00000046e664 at parse_mount+0x270 #12 0xffff00000046d7b8 at vfs_mountroot_parse+0xf4 #13 0xffff00000046d2d4 at vfs_mountroot+0x25c #14 0xffff000000349f7c at start_init+0x2c #15 0xffff00000036e22c at fork_exit+0x80 lock order ufs -> devfs attempted at: #0 0xffff00000040e954 at witness_checkorder+0x6b0 #1 0xffff0000003823e4 at lockmgr_xlock+0x50 #2 0xffff000000462294 at vop_lock+0x7c #3 0xffff0000006dc560 at VOP_LOCK1_APV+0x40 #4 0xffff00000048684c at VOP_LOCK1+0x2c #5 0xffff000000485578 at _vn_lock+0x38 #6 0xffff00000046c54c at vfs_domount_first+0x440 #7 0xffff000000469d14 at vfs_domount+0x270 #8 0xffff000000469040 at vfs_donmount+0x6cc #9 0xffff000000468920 at sys_nmount+0x60 #10 0xffff0000006807f0 at syscallenter+0x2c8 #11 0xffff000000680170 at svc_handler+0x4c #12 0xffff00000067ff80 at do_el0_sync+0xf0 #13 0xffff000000667224 at handle_el0_sync+0x90 --=20 You are receiving this mail because: You are the assignee for the bug.=