From owner-freebsd-bugs@freebsd.org Tue Nov 24 02:28:40 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 B25C0474D1E for ; Tue, 24 Nov 2020 02:28:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4Cg7HX4VKBz3Mjx for ; Tue, 24 Nov 2020 02:28:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 9A30A474C26; Tue, 24 Nov 2020 02:28:40 +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 99F37474AB2 for ; Tue, 24 Nov 2020 02:28:40 +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 4Cg7HX3rQYz3MVq for ; Tue, 24 Nov 2020 02:28:40 +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 76CD617241 for ; Tue, 24 Nov 2020 02:28:40 +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 0AO2SekH056429 for ; Tue, 24 Nov 2020 02:28:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0AO2Senm056428 for bugs@FreeBSD.org; Tue, 24 Nov 2020 02:28:40 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 251320] [PATCH] vfs_domount_first: do not crash on mount failure Date: Tue, 24 Nov 2020 02:28:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: ztong0001@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Nov 2020 02:28:40 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251320 --- Comment #2 from Tong Zhang --- (In reply to Konstantin Belousov from comment #1) lock order reversal: 1st 0xfffff80004da0258 ufs (ufs, lockmgr) @ /usr/src/sys/kern/vfs_mount.c:= 1739 2nd 0xfffff80004da0070 devfs (devfs, lockmgr) @ /usr/src/sys/kern/vfs_subr.c:3135 lock order devfs -> ufs established at: #0 0xffffffff80c47a2d at witness_checkorder+0x46d #1 0xffffffff80ba8c98 at lockmgr_lock_flags+0x188 #2 0xffffffff80e998e5 at ffs_lock+0x75 #3 0xffffffff80cd22a4 at _vn_lock+0x54 #4 0xffffffff80cb19d5 at vfs_domount+0xee5 #5 0xffffffff80cb0122 at vfs_donmount+0x872 #6 0xffffffff80cb44e7 at kernel_mount+0x57 #7 0xffffffff80cb6e11 at parse_mount+0x4a1 #8 0xffffffff80cb5319 at vfs_mountroot+0x589 #9 0xffffffff80b680af at start_init+0x1f #10 0xffffffff80b93e50 at fork_exit+0x80 #11 0xffffffff80ffaace at fork_trampoline+0xe lock order ufs -> devfs attempted at: #0 0xffffffff80c4838c at witness_checkorder+0xdcc #1 0xffffffff80ba8c98 at lockmgr_lock_flags+0x188 #2 0xffffffff80cd22a4 at _vn_lock+0x54 #3 0xffffffff80cbb5d1 at vput_final+0x111 #4 0xffffffff80e9762f at ffs_unmount+0x33f #5 0xffffffff80cb2abc at dounmount+0x42c #6 0xffffffff80cb261c at kern_unmount+0x2fc #7 0xffffffff8102715e at amd64_syscall+0x12e #8 0xffffffff80ffa39e at fast_syscall_common+0xf8 --=20 You are receiving this mail because: You are the assignee for the bug.=