From nobody Thu Mar 13 22:48:13 2025
X-Original-To: fs@mlmmj.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
	by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZDN260Vy4z5rJsn
	for <fs@mlmmj.nyi.freebsd.org>; Thu, 13 Mar 2025 22:48:14 +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 "R10" (verified OK))
	by mx1.freebsd.org (Postfix) with ESMTPS id 4ZDN2570Q6z3Jkp
	for <fs@FreeBSD.org>; Thu, 13 Mar 2025 22:48:13 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1741906094;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=ebXyahmm7/7WW6KliF0ir3l+fERZQWBYKOFcInjysTY=;
	b=PFPYBzYB+b3wzdrBdVnZrtvxitQN62j32QzV9xAmsEvxxnff99EaxlKWH8KWMSeCxnMV0L
	0tIwNW6iWt/ABKg89rjcb07+6Pek/zq9Zn2JbjHeZS5MMeqyEt+gcUVQKT4jSnhGLW0ym3
	PWkdJMJxva380q8jAfi2mrb3rLnqXi4JzkjUnSSBTLZIFPX7WPI9oLj4eWBt6rqRViVRxN
	CfvdKJX5gu0sd3RJ31UE552GfjyQgdQTf8R8ro9Nez+2iiZ4j+Xs5aDylqqL96VBEmVDlz
	u3TFpFrJWOOaiMwOh6e+lSs9YtXLjR/xKplKqGm2tTLomihliFhp7BqUIekywg==
ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1741906094; a=rsa-sha256; cv=none;
	b=HsCn1pejevzRVhn4sa9TeVOEAhmZxHD2yBZLtUtYNiUdVl8A+Xup9vc/hAQ3y/vjU/zkWa
	9YsVYUtfjZGDjkRrsbdB7ks5yMcD0aynPA2NMLHAUPb6VLqJ3U1A37MYfJv/Fwrj5aSaYs
	Dx+7RVNKf0a+/fy9+d7lUn4XjQpSxMT+ZQ1fc/HGICsVRBIt6/+58GpDzxDch8umR6USe9
	VZMk8JdylIeSvh5SXCshdL1me7/Jo0MJhu+35qaAGXcrpNITq0yT6+GRNaUQAmdCBt8hH5
	jSJYRTaFLHQXfZu9n6hVYOfeIA7Fj8FP5Oy6iT/nDHOb6QTwfyKHkcmnypHoJQ==
ARC-Authentication-Results: i=1;
	mx1.freebsd.org;
	none
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
	s=dkim; t=1741906094;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=ebXyahmm7/7WW6KliF0ir3l+fERZQWBYKOFcInjysTY=;
	b=WdjS+f/4UK84tlmcvaC1gBgc+eUerw0Gmc932e2pVdElGuWQgHU/QFZF9aru2M27OPEnzi
	+RbVzWaulreC/9mzyxGSTDjYDDyIIu2NF9raNpW1PayZ8/HruMNxCTHVJr8ie7SQttWYzl
	+GE997eUDinrArQgLr2wlwLp4qZPj6H7YOIptFOTcGvYIRR+vfLg+skbB0UbD0zKjO17qP
	u2eshFBSIsXxgj0uZkhMNqqXBt6aQ6seNTBXHBPs8OdCGQwZVaJkBd5/EWJI9U0bbeBx6J
	NaaMB0j8aqkACa130CXHak8LUemp8aeL+FusMBGVzbL4qCqj1ut+NQODXXW1pQ==
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 4ZDN256Mm0z2xN
	for <fs@FreeBSD.org>; Thu, 13 Mar 2025 22:48:13 +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 52DMmDNh052951
	for <fs@FreeBSD.org>; Thu, 13 Mar 2025 22:48:13 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
Received: (from www@localhost)
	by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52DMmDke052950
	for fs@FreeBSD.org; Thu, 13 Mar 2025 22:48:13 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: fs@FreeBSD.org
Subject: [Bug 255201] [panic] handle_written_inodeblock: Invalid link count
 -1 for inodedep
Date: Thu, 13 Mar 2025 22:48:13 +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: 13.0-STABLE
X-Bugzilla-Keywords: crash
X-Bugzilla-Severity: Affects Only Me
X-Bugzilla-Who: chris@cretaforce.gr
X-Bugzilla-Status: Closed
X-Bugzilla-Resolution: Overcome By Events
X-Bugzilla-Priority: ---
X-Bugzilla-Assigned-To: fs@FreeBSD.org
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-255201-3630-uCotYWlHOp@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-255201-3630@https.bugs.freebsd.org/bugzilla/>
References: <bug-255201-3630@https.bugs.freebsd.org/bugzilla/>
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/
Auto-Submitted: auto-generated
List-Id: Filesystems <freebsd-fs.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/freebsd-fs
List-Help: <mailto:freebsd-fs+help@freebsd.org>
List-Post: <mailto:freebsd-fs@freebsd.org>
List-Subscribe: <mailto:freebsd-fs+subscribe@freebsd.org>
List-Unsubscribe: <mailto:freebsd-fs+unsubscribe@freebsd.org>
Sender: owner-freebsd-fs@FreeBSD.org
MIME-Version: 1.0

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255201

Christos Chatzaras <chris@cretaforce.gr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Open                        |Closed
         Resolution|---                         |Overcome By Events

--=20
You are receiving this mail because:
You are the assignee for the bug.=

From nobody Thu Mar 13 23:21:31 2025
X-Original-To: fs@mlmmj.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
	by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZDNmX5vZtz5rLYP
	for <fs@mlmmj.nyi.freebsd.org>; Thu, 13 Mar 2025 23:21:32 +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 "R10" (verified OK))
	by mx1.freebsd.org (Postfix) with ESMTPS id 4ZDNmX0xcsz3MbT
	for <fs@FreeBSD.org>; Thu, 13 Mar 2025 23:21:32 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1741908092;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=HPMeRm9TdGne/yb+/r7Q5cnJW2LspQZb5K15h6nojAI=;
	b=l0I72yvLv3BCtb9626jSWm6dcyT/bhX/hls8C9ylpb34wpWiYr8ieqvxT8IVpVZCbezbm5
	dEod0rphIPEPRrdN+aSwvxdW3lFjRBUx5BtdJ36oegI0Ab3xLVPr+EEoh5o0DhWuuvYhfE
	/LDT2UdZHNSR5yB41Lfog8H9RohZJ/adHW219oMSgkTlXqt1BSL5WFAm0WnEPFjfp0//qR
	u1wvR1wUL19npa4qSFjWR4H0rxdlb57rhzTJGCv3k1GUOqaPOk611H4if7Uuv4v9ceGAWK
	0YWL+My5RrHa0udNov/swPYq/F3KfLZLT36EGuryQAbmip7IYpD1la1hIieQag==
ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1741908092; a=rsa-sha256; cv=none;
	b=GhvxZSGFy9RgxBnBXDkkd+LjbqDuZGE9x7/Uec8muJerNslRsVQS1NsQ9sTP64byompv5r
	EVb8suvwTNIUVLqjPEVvnFnqmAQ+wdoXWaJPxdDrOrEyxnUWSjyYEBuldixt9EYlM607Kc
	O3E9nkZdkudsF/zLomYOsYMtxRFI8kQSrIZGqxJlV8BrnRntw5JGQ/TypzLEgeK/H1Rf20
	1iQiiO8kLHq0JE6397gHA6M6y0d+HFPKkSZAVu8oxFLuAw/qAYmOt91bIpqp1lKdH5yk+1
	ZyIdSrnyyShVjqCxHPrAw8RJ10K/cAGwEPWozFmS46spS1bnCpgheOs92VZRqA==
ARC-Authentication-Results: i=1;
	mx1.freebsd.org;
	none
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
	s=dkim; t=1741908092;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=HPMeRm9TdGne/yb+/r7Q5cnJW2LspQZb5K15h6nojAI=;
	b=roVMH1qEx8+bbVmW/riUl3ZPeBDrmNizMfKtBX9U2zVpqb3ugUY6+0oXX3Fj7ALrs/gOeo
	qflZatfvAEpVwXWMpiuWdp3NypBGclzx72uUq/mgqU7z7pLI6HKa5mCWMk5YrdKm1bJyhn
	e5iXjWgSxrrjXAzjvjgTpAk4kZUnZb8aXJ6gUXaetwOXCcBLBbHbDvizjCSg5KC05Eyc7r
	C0RLhyvLE2wkc2v1ng6aO0NHCjYf1JkrSIcpBSoB7s7crq1ENDJiiVbcDO1k4sT7DnyI7j
	yuNJbNcgLv6Kf8eQ8RXC2t06j6MQ5W40ngbv5TPvffhFxnmAYgZ5Li6qZ53kxg==
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 4ZDNmW6rM4z3Kb
	for <fs@FreeBSD.org>; Thu, 13 Mar 2025 23:21:31 +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 52DNLVRV044206
	for <fs@FreeBSD.org>; Thu, 13 Mar 2025 23:21:31 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
Received: (from bugzilla@localhost)
	by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52DNLVJY044205
	for fs@FreeBSD.org; Thu, 13 Mar 2025 23:21:31 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f
From: bugzilla-noreply@freebsd.org
To: fs@FreeBSD.org
Subject: [Bug 215856] Prevent page fault in g_dev_orphan() after ejecting
 disc
Date: Thu, 13 Mar 2025 23:21:31 +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: 11.0-STABLE
X-Bugzilla-Keywords: 
X-Bugzilla-Severity: Affects Only Me
X-Bugzilla-Who: commit-hook@FreeBSD.org
X-Bugzilla-Status: New
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: ---
X-Bugzilla-Assigned-To: fs@FreeBSD.org
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: 
Message-ID: <bug-215856-3630-qZiO1fQyJI@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-215856-3630@https.bugs.freebsd.org/bugzilla/>
References: <bug-215856-3630@https.bugs.freebsd.org/bugzilla/>
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/
Auto-Submitted: auto-generated
List-Id: Filesystems <freebsd-fs.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/freebsd-fs
List-Help: <mailto:freebsd-fs+help@freebsd.org>
List-Post: <mailto:freebsd-fs@freebsd.org>
List-Subscribe: <mailto:freebsd-fs+subscribe@freebsd.org>
List-Unsubscribe: <mailto:freebsd-fs+unsubscribe@freebsd.org>
Sender: owner-freebsd-fs@FreeBSD.org
MIME-Version: 1.0

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215856

--- Comment #1 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3Df7856fe81df2df3c4355e674d34a4c15a=
095a33c

commit f7856fe81df2df3c4355e674d34a4c15a095a33c
Author:     Fabian Keil <fk@fabiankeil.de>
AuthorDate: 2025-03-13 23:13:46 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-03-13 23:20:00 +0000

    g_dev_orphan(): Return early if the device is already gone

    The following panic was the result of running "cdcontrol eject" after
    using the physical ejection key on the device before the tray was
    actually ejected. So we have hardware racing software.

    The device was loaded with a DVD.

    Resulted in a NULL pointer dereference

    g_dev_orphan() at g_dev_orphan+0x2e/frame 0xfffffe01eba0a9f0
    g_resize_provider_event() at g_resize_provider_event+0x71/frame
0xfffffe01eba0aa20
    g_run_events() at g_run_events+0x20e/frame 0xfffffe01eba0aa70
    fork_exit() at fork_exit+0x85/frame 0xfffffe01eba0aab0
    fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe01eba0aab0

    Avoid this possibility and return early of dev is NULL already.

    PR:  215856
    Reviewed by: imp (I've triggered this once or twice over the years too)
    Sponsored by: Netflix

 sys/geom/geom_dev.c | 3 +++
 1 file changed, 3 insertions(+)

--=20
You are receiving this mail because:
You are the assignee for the bug.=

From nobody Thu Mar 13 23:22:51 2025
X-Original-To: fs@mlmmj.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
	by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZDNp35zMkz5rM6T
	for <fs@mlmmj.nyi.freebsd.org>; Thu, 13 Mar 2025 23:22:51 +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 "R10" (verified OK))
	by mx1.freebsd.org (Postfix) with ESMTPS id 4ZDNp35KK5z3NYf
	for <fs@FreeBSD.org>; Thu, 13 Mar 2025 23:22:51 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1741908171;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=oL4JgMV46u456CvFE6mFzbUFt/nsBQ3SsIDJ4dayzDw=;
	b=ejQIwdxV6d5jf/yKhyaNmYeMIPpERV8spm+ZGSGETudTvJ3xwVhn8iEAURwWPis2Cpitkp
	A3AXGIGHD+FhCSJ7U45+MUUhgTZ7iN+5wI0JdFTJG7PoF4BUnX0s6LA0obVv7xicWxzW2g
	3XXj8uB+zyKmpWWTG72xslY4HArWZtdd8+bj6uiYBV0sRFx3jSb7MjABrbqQRZDR0CiUEr
	dUjcu94D0DnMraQl+W1zjiIJnyRVcpnTf502ITCmPwfo1qSfqKBw6qh/BpLnXphU85TX1O
	6UWxWmfl6IkwDaC8Lq5O8vfsYvC9xNVA092W4e9FXqWI4Npzwozif9kr5T3SuA==
ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1741908171; a=rsa-sha256; cv=none;
	b=SdGyeto1PhlOAIM7aa3Yfd5l1wYnJGTsxnfb6X/wfqp+j6P4HuyMVjThTqPmvvzwrDgfgP
	srF6/gMnAOXrRW1NntNu8qWKklJkOj8LPRNHy4+xB5XapQ7AMu26QMdIb1bm2XWr3zQA9J
	YG2tG6TUUgeektS2zhLdhyn1sj1+biOpHJV4e35nPqnE9RB171RAYAgCwrp4c+kk8/oslz
	KFHRhP1ESLBoI7gavWC11nr+ZO67f/AwI5SL+Ma8sQuIWT/pM3fSotF4AnRn8HUB8DNJZ/
	AwKWVN99WXXiJqkcMrX034yj/Eq4d4x90etLaOi0QO7Fs7HLw1XZAtc4n9LWxQ==
ARC-Authentication-Results: i=1;
	mx1.freebsd.org;
	none
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
	s=dkim; t=1741908171;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=oL4JgMV46u456CvFE6mFzbUFt/nsBQ3SsIDJ4dayzDw=;
	b=Kh4l1E+yK/mX2qxei9alws0V2ZjICqSN7ja6Tl7a1sZIIY7P4MH+pI7bQ8Rg0qi1cIzKir
	HeMwnJQ4NxKPcHzer3wgTCFF6Zu4QrfXoPhE6GRXEG2dOSweZbcdLTMAqMZ3zCOlcvxqVN
	jjwHhzeih22O35vUY6YuK+lzggsSPimg4D06LrHWJWF5XeqTWXiHJ+C0e15OosqNs8fJDj
	UzO9Oxxm7EVICsZW2Sj5UPjrtR3rqxUCnDx/+UjGnV+Vh3sEg3fg+8iqUWPAc1Msw05RMl
	BmWm4O3hMUx4FvQmc2rIdmFnXCJ8ZUVxLGBp6TWR4bjpgfR2rf4/q7hJsUbDUA==
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 4ZDNp34tNmz3hS
	for <fs@FreeBSD.org>; Thu, 13 Mar 2025 23:22:51 +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 52DNMpQ5053041
	for <fs@FreeBSD.org>; Thu, 13 Mar 2025 23:22:51 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
Received: (from www@localhost)
	by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52DNMpKk053034
	for fs@FreeBSD.org; Thu, 13 Mar 2025 23:22:51 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: fs@FreeBSD.org
Subject: [Bug 215856] Prevent page fault in g_dev_orphan() after ejecting
 disc
Date: Thu, 13 Mar 2025 23:22:51 +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: 11.0-STABLE
X-Bugzilla-Keywords: 
X-Bugzilla-Severity: Affects Only Me
X-Bugzilla-Who: imp@FreeBSD.org
X-Bugzilla-Status: Closed
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: ---
X-Bugzilla-Assigned-To: fs@FreeBSD.org
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: cc resolution bug_status
Message-ID: <bug-215856-3630-fPx9B0vv6h@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-215856-3630@https.bugs.freebsd.org/bugzilla/>
References: <bug-215856-3630@https.bugs.freebsd.org/bugzilla/>
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/
Auto-Submitted: auto-generated
List-Id: Filesystems <freebsd-fs.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/freebsd-fs
List-Help: <mailto:freebsd-fs+help@freebsd.org>
List-Post: <mailto:freebsd-fs@freebsd.org>
List-Subscribe: <mailto:freebsd-fs+subscribe@freebsd.org>
List-Unsubscribe: <mailto:freebsd-fs+unsubscribe@freebsd.org>
Sender: owner-freebsd-fs@FreeBSD.org
MIME-Version: 1.0

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215856

Warner Losh <imp@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |imp@FreeBSD.org
         Resolution|---                         |FIXED
             Status|New                         |Closed

--=20
You are receiving this mail because:
You are the assignee for the bug.=

From nobody Fri Mar 14 04:13:51 2025
X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
	by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZDWG51kFLz5qT8T;
	Fri, 14 Mar 2025 04:14:05 +0000 (UTC)
	(envelope-from bhavanithakur22@gmail.com)
Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "smtp.gmail.com", Issuer "WR4" (verified OK))
	by mx1.freebsd.org (Postfix) with ESMTPS id 4ZDWG45WGzz3PY1;
	Fri, 14 Mar 2025 04:14:04 +0000 (UTC)
	(envelope-from bhavanithakur22@gmail.com)
Authentication-Results: mx1.freebsd.org;
	dkim=pass header.d=gmail.com header.s=20230601 header.b=hB7e27OJ;
	dmarc=pass (policy=none) header.from=gmail.com;
	spf=pass (mx1.freebsd.org: domain of bhavanithakur22@gmail.com designates 2a00:1450:4864:20::62f as permitted sender) smtp.mailfrom=bhavanithakur22@gmail.com
Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-ac2bfcd2a70so225445066b.0;
        Thu, 13 Mar 2025 21:14:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20230601; t=1741925643; x=1742530443; darn=freebsd.org;
        h=to:subject:message-id:date:from:in-reply-to:references:mime-version
         :from:to:cc:subject:date:message-id:reply-to;
        bh=kA17750RwyYNQlLXhrnN8FN4qv4nQDE7eCcYeWaIEOg=;
        b=hB7e27OJA8pRJJDtBD6aunBawE3VU/Co4oVKjpLVWoQIz04NcMVXJCk5wVX9sXqHJJ
         PyZonc3zAmdbJvZXRbsFcmcWaguGj0Zmlj30NQK4fbAFKLKBTbRgKcItxCDeWifB0Wr2
         xeHfbN7ulfvyLK9/spb+xIUqib3U36JkQbiwAb1rhJ4HJibn4l9hh3C2etVFqxa9QGyR
         6vkRPvmMxrYzVCx3z/ooJEnbYBORymGyscQ262P9g0+KGmVDJYIQtMqqUXaoDHRlNFqv
         w2/pPEapULNQMZrqQN3MB/CwFIvd3Xu/hTxMCP/47fGcoUIdjxNMnNdaryCdz+WF8nJu
         a52A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1741925643; x=1742530443;
        h=to:subject:message-id:date:from:in-reply-to:references:mime-version
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
        bh=kA17750RwyYNQlLXhrnN8FN4qv4nQDE7eCcYeWaIEOg=;
        b=VoUrACecgvHPNhDKwS64mFi87TP6dXZrA/ghbG7aE61TyzH6Q2G/Wv4Tb15vDwYQeI
         HrtaBdtiH0UZUYbm0fX8fcsCwcfCaOzStjomjiGKJrylcqO5dxEIHQQ4ydb6v8e8njhq
         JV3V36w09mtbB8qhEzZMufW7Pu6o+wbbSoOk6MhtCPkVTU6nx5WbgejivoqHp67qHejT
         3w5pSKcNlVkfoaI8bsj4rHSLKHs9KgnkUfjOLZ5Uh5/x17h0vL4FuDZOcHtkoPAdVkaE
         YB0/+fz8d9HE9GQuxGgBTLyKxQkpR1g9AmdDwcNzFm1rWjTPw7v2TjTRLNM4wyBVydOP
         T5PA==
X-Forwarded-Encrypted: i=1; AJvYcCWKwQ4hTeAHhHNEXp0wUDqx8MGPsXWl+pxxAqwNZDnRKpYqCdvC/6yTSrtQPoWaUS1eH+WsriQmPtC1@freebsd.org
X-Gm-Message-State: AOJu0YzZ+UXqVL/bGVHJi89tulFmiz+FuNuPdJq9qJ/muI86Vy3p/vKb
	7/kf90HXU5JXLw7EKJAwK180sIbUOfuegOy11FVnmuOw5gcCOHvOIY9z7wKViNYI9gnz1B9FZdU
	gM6UKLv6aaUPkjSz0ZBAQDP1BqEBKBA==
X-Gm-Gg: ASbGncuO77Axiw7D6zrNTmH1U2CgK7LRfcxNiKYDQaqeUW/OhRDOz0lelSjg92X37Xb
	LofVJ4bhfJ3dT0L502qZcX2qtfnTauMBFa9JxjMOTpfaYZCeCfayBPzDXx2IFny6iaurpnqS3IO
	CyMb91+9wz/Li9OJcmVZYEtCwJi+ubGDCk6nhDJtMl
X-Google-Smtp-Source: AGHT+IFTb+aGnwc4ERbEPKUee6Je0sOv2Jj8AdvmDZVwOQItTU9rTj8tSDFmg2CKE3BVmXpffm4Qtwf4nPVkqs1qzYM=
X-Received: by 2002:a17:906:6a0a:b0:ac2:9c7d:e144 with SMTP id
 a640c23a62f3a-ac3303f770amr94939066b.40.1741925643107; Thu, 13 Mar 2025
 21:14:03 -0700 (PDT)
List-Id: Filesystems <freebsd-fs.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/freebsd-fs
List-Help: <mailto:freebsd-fs+help@freebsd.org>
List-Post: <mailto:freebsd-fs@freebsd.org>
List-Subscribe: <mailto:freebsd-fs+subscribe@freebsd.org>
List-Unsubscribe: <mailto:freebsd-fs+unsubscribe@freebsd.org>
Sender: owner-freebsd-fs@FreeBSD.org
MIME-Version: 1.0
References: <CAOJQS-RrZQWd=3JNXwbGv4Qe9=68Lq7WjpN6-1+vrm3anFc4Rg@mail.gmail.com>
In-Reply-To: <CAOJQS-RrZQWd=3JNXwbGv4Qe9=68Lq7WjpN6-1+vrm3anFc4Rg@mail.gmail.com>
From: bhavani thakur <bhavanithakur22@gmail.com>
Date: Thu, 13 Mar 2025 21:13:51 -0700
X-Gm-Features: AQ5f1JpNAF02PITlwDkcrDooX3S62yvy3wpL2zjXINBawmn86yPJbaBSvqWKAyY
Message-ID: <CAOJQS-Q1erF_i_qzubuPMJxoBBGCC9TvawXwwrr9q82nTziboA@mail.gmail.com>
Subject: Request for help - Fix issue backport query.
To: freebsd-questions@freebsd.org, freebsd-fs@freebsd.org
Content-Type: multipart/alternative; boundary="0000000000002ec823063045ab8a"
X-Spamd-Result: default: False [-3.42 / 15.00];
	NEURAL_HAM_LONG(-1.00)[-1.000];
	NEURAL_HAM_SHORT(-1.00)[-0.997];
	DMARC_POLICY_ALLOW(-0.50)[gmail.com,none];
	NEURAL_HAM_MEDIUM(-0.42)[-0.420];
	R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601];
	R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36];
	MIME_GOOD(-0.10)[multipart/alternative,text/plain];
	RCVD_COUNT_ONE(0.00)[1];
	ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US];
	FREEMAIL_ENVFROM(0.00)[gmail.com];
	MIME_TRACE(0.00)[0:+,1:+,2:~];
	ARC_NA(0.00)[];
	MISSING_XM_UA(0.00)[];
	DWL_DNSWL_NONE(0.00)[gmail.com:dkim];
	FREEMAIL_FROM(0.00)[gmail.com];
	FROM_HAS_DN(0.00)[];
	RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62f:from];
	TO_MATCH_ENVRCPT_ALL(0.00)[];
	TO_DN_NONE(0.00)[];
	FROM_EQ_ENVFROM(0.00)[];
	RCVD_TLS_LAST(0.00)[];
	RCPT_COUNT_TWO(0.00)[2];
	MID_RHS_MATCH_FROMTLD(0.00)[];
	MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org,freebsd-fs@freebsd.org];
	DKIM_TRACE(0.00)[gmail.com:+]
X-Rspamd-Queue-Id: 4ZDWG45WGzz3PY1
X-Spamd-Bar: ---

--0000000000002ec823063045ab8a
Content-Type: text/plain; charset="UTF-8"

Hi all,

I am extremely sorry for this query.

The issue "mnt_vnode_next_active: use conventional lock order when trylock
fails." exists in 11.4 too but I noticed that it is not being ported to
11.4, but ported only till 12.0 Reference commit:
https://github.com/freebsd/freebsd-src/commit/391aba32e6d308a8fd0ac12ee49495119c7a307c
(May
15, 2017)

May I request you to please share the reason for porting it only till 12.0
but not in 11.4 though the issue exists in 11.4.

I had noticed that other fixes like the below are ported to 11.4 though
(which are ported after May 15, 2017)
-
https://github.com/freebsd/freebsd-src/commit/83cca06bb1c2438cd6957dd5d42c8b5ba6ed5bb8
( Sep
4, 2018)

-
https://github.com/freebsd/freebsd-src/commit/a957393f11a8e48dac89051285e5400dd6b398a2
(Jan
6, 2019).

Sorry for the inconvenience caused in this regard.

Thanks,
Bhavani

--0000000000002ec823063045ab8a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_quote gmail_quote_container"><div dir=
=3D"ltr"><div id=3D"m_-7474780168756938057gmail-:2jx" aria-label=3D"Message=
 Body" role=3D"textbox" aria-multiline=3D"true" style=3D"direction:ltr;min-=
height:344px" aria-controls=3D":2ma" aria-expanded=3D"false"><font face=3D"=
times new roman, serif" color=3D"#000000">Hi all,</font><div><font face=3D"=
times new roman, serif" color=3D"#000000"><br></font></div><div><font face=
=3D"times new roman, serif" color=3D"#000000">I am extremely sorry for this=
 query.</font></div><div><font face=3D"times new roman, serif" color=3D"#00=
0000"><br></font></div><div><font face=3D"times new roman, serif" color=3D"=
#000000">The issue &quot;mnt_vnode_next_active: use conventional lock order=
 when trylock fails.&quot; exists in 11.4 too but I noticed that it is not =
being ported to 11.4, but ported only till 12.0 Reference commit:=C2=A0<a h=
ref=3D"https://github.com/freebsd/freebsd-src/commit/391aba32e6d308a8fd0ac1=
2ee49495119c7a307c" target=3D"_blank">https://github.com/freebsd/freebsd-sr=
c/commit/391aba32e6d308a8fd0ac12ee49495119c7a307c</a>=C2=A0(May 15, 2017)</=
font></div><div><br></div><div><font face=3D"times new roman, serif" color=
=3D"#000000">May I request you to please share=C2=A0the reason for porting =
it only till 12.0 but not in 11.4 though the issue exists in 11.4.<br><br><=
/font></div><div><font face=3D"times new roman, serif" color=3D"#000000">I =
had noticed that other fixes like the below are ported to 11.4 though (whic=
h are ported after May 15, 2017)<br>-=C2=A0<a href=3D"https://github.com/fr=
eebsd/freebsd-src/commit/83cca06bb1c2438cd6957dd5d42c8b5ba6ed5bb8" target=
=3D"_blank">https://github.com/freebsd/freebsd-src/commit/83cca06bb1c2438cd=
6957dd5d42c8b5ba6ed5bb8</a>=C2=A0(=C2=A0Sep 4, 2018)<br><br>-=C2=A0<a href=
=3D"https://github.com/freebsd/freebsd-src/commit/a957393f11a8e48dac8905128=
5e5400dd6b398a2" target=3D"_blank">https://github.com/freebsd/freebsd-src/c=
ommit/a957393f11a8e48dac89051285e5400dd6b398a2</a>=C2=A0(Jan 6, 2019).<br><=
br></font></div><div><font color=3D"#000000" face=3D"times new roman, serif=
">Sorry for the inconvenience caused in this regard.</font></div><div><font=
 face=3D"times new roman, serif" color=3D"#000000"><br></font></div><div><f=
ont face=3D"times new roman, serif" color=3D"#000000">Thanks,</font></div><=
div><font face=3D"times new roman, serif" color=3D"#000000">Bhavani</font><=
/div></div></div>
</div></div>

--0000000000002ec823063045ab8a--

From nobody Fri Mar 14 09:05:54 2025
X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
	by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZDdl433N0z5qqwy;
	Fri, 14 Mar 2025 09:06:08 +0000 (UTC)
	(envelope-from fuz@fuz.su)
Received: from fuz.su (fuz.su [IPv6:2001:41d0:8:e508::1])
	(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 (2048 bits) client-digest SHA256)
	(Client CN "fuz.su", Issuer "fuz.su" (not verified))
	by mx1.freebsd.org (Postfix) with ESMTPS id 4ZDdl40Ydfz3d02;
	Fri, 14 Mar 2025 09:06:08 +0000 (UTC)
	(envelope-from fuz@fuz.su)
Authentication-Results: mx1.freebsd.org;
	none
Received: from fuz.su (localhost [127.0.0.1])
	by fuz.su (8.18.1/8.18.1) with ESMTPS id 52E95sHv018991
	(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO);
	Fri, 14 Mar 2025 10:05:55 +0100 (CET)
	(envelope-from fuz@fuz.su)
Received: (from fuz@localhost)
	by fuz.su (8.18.1/8.18.1/Submit) id 52E95sOP018990;
	Fri, 14 Mar 2025 10:05:54 +0100 (CET)
	(envelope-from fuz)
Date: Fri, 14 Mar 2025 10:05:54 +0100
From: Robert Clausecker <fuz@fuz.su>
To: bhavani thakur <bhavanithakur22@gmail.com>
Cc: freebsd-questions@freebsd.org, freebsd-fs@freebsd.org
Subject: Re: Request for help - Fix issue backport query.
Message-ID: <Z9PxcqKqH2D5p9mh@fuz.su>
References: <CAOJQS-RrZQWd=3JNXwbGv4Qe9=68Lq7WjpN6-1+vrm3anFc4Rg@mail.gmail.com>
 <CAOJQS-Q1erF_i_qzubuPMJxoBBGCC9TvawXwwrr9q82nTziboA@mail.gmail.com>
List-Id: Filesystems <freebsd-fs.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/freebsd-fs
List-Help: <mailto:freebsd-fs+help@freebsd.org>
List-Post: <mailto:freebsd-fs@freebsd.org>
List-Subscribe: <mailto:freebsd-fs+subscribe@freebsd.org>
List-Unsubscribe: <mailto:freebsd-fs+unsubscribe@freebsd.org>
Sender: owner-freebsd-fs@FreeBSD.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAOJQS-Q1erF_i_qzubuPMJxoBBGCC9TvawXwwrr9q82nTziboA@mail.gmail.com>
X-Rspamd-Pre-Result: action=no action;
	module=replies;
	Message is reply to one we originated
X-Spamd-Result: default: False [-4.00 / 15.00];
	REPLY(-4.00)[];
	ASN(0.00)[asn:16276, ipnet:2001:41d0::/32, country:FR]
X-Rspamd-Queue-Id: 4ZDdl40Ydfz3d02
X-Spamd-Bar: ----

Greetings!

Am Thu, Mar 13, 2025 at 09:13:51PM -0700 schrieb bhavani thakur:
> Hi all,
> 
> I am extremely sorry for this query.
> 
> The issue "mnt_vnode_next_active: use conventional lock order when trylock
> fails." exists in 11.4 too but I noticed that it is not being ported to
> 11.4, but ported only till 12.0 Reference commit:
> https://github.com/freebsd/freebsd-src/commit/391aba32e6d308a8fd0ac12ee49495119c7a307c
> (May
> 15, 2017)
> 
> May I request you to please share the reason for porting it only till 12.0
> but not in 11.4 though the issue exists in 11.4.

I can't tell, but in any case, FreeBSD 11 has been out of support for four years
now.  Please consider updating to FreeBSD 14.

> I had noticed that other fixes like the below are ported to 11.4 though
> (which are ported after May 15, 2017)
> -
> https://github.com/freebsd/freebsd-src/commit/83cca06bb1c2438cd6957dd5d42c8b5ba6ed5bb8
> ( Sep
> 4, 2018)
> 
> -
> https://github.com/freebsd/freebsd-src/commit/a957393f11a8e48dac89051285e5400dd6b398a2
> (Jan
> 6, 2019).

Yours,
Robert Clausecker

-- 
()  ascii ribbon campaign - for an encoding-agnostic world
/\  - against html email  - against proprietary attachments

From nobody Fri Mar 14 17:53:29 2025
X-Original-To: fs@mlmmj.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
	by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZDsRY6bcFz5qWTd
	for <fs@mlmmj.nyi.freebsd.org>; Fri, 14 Mar 2025 17:53:29 +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 "R10" (verified OK))
	by mx1.freebsd.org (Postfix) with ESMTPS id 4ZDsRY5Tq4z3FQj
	for <fs@FreeBSD.org>; Fri, 14 Mar 2025 17:53:29 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1741974809;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=mTc7ExtGTWcjU6vdo64rlbLWqfW+Un3xsTxq9+qnPoM=;
	b=j+CmzGVT7t+Jnd7zbxwE9JHKyCy+lP/WWSvDDVYsEtm/P0PIAXUpd4dUC4J7tGlTsyF/nn
	O0XtV5EHaO9qsNlf1m5i7iN3MwwtMb8Bzk4yOhcNVtfRI9lSswPTl5pZhVSUGplUn8Oy9i
	EIrPLfLR62S0HmUGkqBGKDa/SJXtrKZTimBbH08DXwvHbcom9Ed23iYgx9UfFfkxcaIVPq
	8TXltkC51VTAHtFnwPxVKvrxsDypx5RfWz0uEuLSryC3LFX6Ff8GOpR2AYreQRkcbCKSgV
	elCULjunL7qWnJOtsfO6C2SFlJXOIggUfBFE7GR/y3cgooMZcG2liEGgF5sFdw==
ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1741974809; a=rsa-sha256; cv=none;
	b=uamGcMIt+xQA0BObs16qLyg0oGHUw3V7I7Mp1FMYK0LbI39MyXzqdG28GBoIwDPoQkq26u
	7AO6Pceum9iTZvgXlxBA8Or7dYutZMH+uqBpWoeC7fI9hrgH49rFRK149wnyAK3J606HMN
	A2b9NHmvYtBpAir+mmMAEBC/DmLtLxxpQrXMgq8XPs6RZIevwII+ahLiSxNamdgcUExkui
	HbXa5Q21Iic1Ovn2QhdiH6f7cV2kNgNHoOrrcUAktP2TPN+oUUymtz/ywgtDV4iJfYq2HS
	M+dMiROtg5nE3USab0yvw5jV7ZLqTv29XfGqD7pFF9ifQDMTqFsGfRY6aWm9xQ==
ARC-Authentication-Results: i=1;
	mx1.freebsd.org;
	none
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
	s=dkim; t=1741974809;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=mTc7ExtGTWcjU6vdo64rlbLWqfW+Un3xsTxq9+qnPoM=;
	b=Nz6+7PYIi41k4yzfnSjehsdhe9lZfnfh+agGQUOpIqjNN3iJhFi7CuQPXuS0ZHq6xzhqPl
	L/HuMmk9zuJY3fRbiJcrIaIDrYVPS3Pt8gxVLgkTuRUL99LebqZuToYq9XLHqyQrY6oXBH
	eBbfxxiRMxId9RwFnfu0y6Sdc9IVElVIX+CfHkQGxPcnvPXTJREu8eoxAZkz8rjWtZ1sff
	MhZcCTK1x5j/Ngww/9VZhYSdi/9oR1G6mfhBiN14yvHpe9ZmTlwoavH0uXBmnIgAlZebGy
	pooCSogAQzPClKxFvBPwCOwmYZkvrZjL6aHQ3n/cOANR9SiZTTHxT9cd6IcteQ==
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 4ZDsRY4yK9zvXy
	for <fs@FreeBSD.org>; Fri, 14 Mar 2025 17:53:29 +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 52EHrTaW041553
	for <fs@FreeBSD.org>; Fri, 14 Mar 2025 17:53:29 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
Received: (from bugzilla@localhost)
	by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52EHrTgi041552
	for fs@FreeBSD.org; Fri, 14 Mar 2025 17:53:29 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f
From: bugzilla-noreply@freebsd.org
To: fs@FreeBSD.org
Subject: [Bug 215856] Prevent page fault in g_dev_orphan() after ejecting
 disc
Date: Fri, 14 Mar 2025 17:53:29 +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: 11.0-STABLE
X-Bugzilla-Keywords: 
X-Bugzilla-Severity: Affects Only Me
X-Bugzilla-Who: commit-hook@FreeBSD.org
X-Bugzilla-Status: Closed
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: ---
X-Bugzilla-Assigned-To: fs@FreeBSD.org
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: 
Message-ID: <bug-215856-3630-zilTxgINI8@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-215856-3630@https.bugs.freebsd.org/bugzilla/>
References: <bug-215856-3630@https.bugs.freebsd.org/bugzilla/>
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/
Auto-Submitted: auto-generated
List-Id: Filesystems <freebsd-fs.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/freebsd-fs
List-Help: <mailto:freebsd-fs+help@freebsd.org>
List-Post: <mailto:freebsd-fs@freebsd.org>
List-Subscribe: <mailto:freebsd-fs+subscribe@freebsd.org>
List-Unsubscribe: <mailto:freebsd-fs+unsubscribe@freebsd.org>
Sender: owner-freebsd-fs@FreeBSD.org
MIME-Version: 1.0

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215856

--- Comment #2 from commit-hook@FreeBSD.org ---
A commit in branch stable/14 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3Db9296d4d85bbc4f84c21615e760c5e12d=
1c81406

commit b9296d4d85bbc4f84c21615e760c5e12d1c81406
Author:     Fabian Keil <fk@fabiankeil.de>
AuthorDate: 2025-03-13 23:13:46 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-03-14 17:51:03 +0000

    g_dev_orphan(): Return early if the device is already gone

    The following panic was the result of running "cdcontrol eject" after
    using the physical ejection key on the device before the tray was
    actually ejected. So we have hardware racing software.

    The device was loaded with a DVD.

    Resulted in a NULL pointer dereference

    g_dev_orphan() at g_dev_orphan+0x2e/frame 0xfffffe01eba0a9f0
    g_resize_provider_event() at g_resize_provider_event+0x71/frame
0xfffffe01eba0aa20
    g_run_events() at g_run_events+0x20e/frame 0xfffffe01eba0aa70
    fork_exit() at fork_exit+0x85/frame 0xfffffe01eba0aab0
    fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe01eba0aab0

    Avoid this possibility and return early of dev is NULL already.

    PR:  215856
    Reviewed by: imp (I've triggered this once or twice over the years too)
    Sponsored by: Netflix

    (cherry picked from commit f7856fe81df2df3c4355e674d34a4c15a095a33c)

 sys/geom/geom_dev.c | 3 +++
 1 file changed, 3 insertions(+)

--=20
You are receiving this mail because:
You are the assignee for the bug.=

From nobody Sun Mar 16 21:00:34 2025
X-Original-To: fs@mlmmj.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
	by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZG9VW3GZLz5r4Zd
	for <fs@mlmmj.nyi.freebsd.org>; Sun, 16 Mar 2025 21:00:35 +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 "R10" (verified OK))
	by mx1.freebsd.org (Postfix) with ESMTPS id 4ZG9VV4DMhz42tG
	for <fs@FreeBSD.org>; Sun, 16 Mar 2025 21:00:34 +0000 (UTC)
	(envelope-from bugzilla-noreply@FreeBSD.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1742158834;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding;
	bh=i4sdFW5JtZRpxPiEncQw7m+DJZuYwef+ZMBrwr8iRro=;
	b=kCPhbkhVnyhldvU74sUKS+e7DOYYFArWKCBDCvUfnBfGu4aaZtzHH0fyZtwr0wrQ5fmHLD
	9sjiV/0AgwvpGFJv9NiN0lJ82gLyPSoZFmtD7hgOJFi6tFGkYnO804/cVINV8Yl25xv7Qv
	1Wcm1nS+f/MY+O5Cf8OgHVWBkxFH4i15kGadOuLESm8RE1gX5MFW8T2HJqIJYUI9N4NSKV
	1wIeUasWtwbPGHSebdys3ykSOhgyjbOnG9b6+g1yWSi+kZEs/QDcMNEZrEfi1sJL3TqvlN
	WKbUYZDtbTnljjLrkI6SULrxpbEC+ZmzTyeCe0gaDlDXSF5fXZqVp580By5AAA==
ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1742158834; a=rsa-sha256; cv=none;
	b=stm8BXDtvfxPQlixOS0ECC74Jr3e4r1nmsmcbhSwqQL8TS1wwnfYFvEtsZaOrySKeNXqja
	agSLPgxzA7OyF6/BrTQpXlwTA0g1VlqZe2PraVqmPYvpwMRyBtnErbve/7Eb4mtK4JpeYI
	P5XsDNQo6Ah/ub3n2lwLGKtAjZCFi6cKvZFH0EoGPwTiDscOt5E/uKT3BOIua5UA/ZaPCW
	hFyxWbd6z39WyspEsxtuqwnLfOd42dXOiPM3hIZ7vSWP+NEdwEs5R0oCfurO3Mo7703HEJ
	J/lPhCTYmfa5bpcX7JR/OdbpTjhrtzmYTr/HBen+YMmYsF3zctx7OVl3CjnH3A==
ARC-Authentication-Results: i=1;
	mx1.freebsd.org;
	none
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
	s=dkim; t=1742158834;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding;
	bh=i4sdFW5JtZRpxPiEncQw7m+DJZuYwef+ZMBrwr8iRro=;
	b=JfkpnVRONPgWD02+T7SQSCGjXNDFII1t+W9FW+hwaQVl5fbdSzecDaF+zLntlTPHPxyuJ1
	GbLKM/cZwb/nViVDaiv1CWRyBwk8yjgVDFCTI7cYKSq1wd8bqtB4HGV4lTjP1fFbvrOJHk
	mNhDPPHZDZq1ey/p59ExadNieY36tAAOvi/fHGEEUmber1gecWl7f1xaen1WzJEGAbSmx+
	H2k913gwnxUFkfReewQPF1+a7mQUAmQCDLEitp/uccpqqC/62m4I+hc1mSYAJz/b6WpICl
	Ay5YDXUxbhEO+zfVxOVY9W3prDd+4UEf9mCjoQY79i5MLAmeaklZUbBG5aArqA==
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 4ZG9VV3pkxz2CL
	for <fs@FreeBSD.org>; Sun, 16 Mar 2025 21:00:34 +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 52GL0YFE050876
	for <fs@FreeBSD.org>; Sun, 16 Mar 2025 21:00:34 GMT
	(envelope-from bugzilla-noreply@FreeBSD.org)
Received: (from bugzilla@localhost)
	by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52GL0Ybd050875
	for fs@FreeBSD.org; Sun, 16 Mar 2025 21:00:34 GMT
	(envelope-from bugzilla-noreply@FreeBSD.org)
Message-Id: <202503162100.52GL0Ybd050875@kenobi.freebsd.org>
X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f
From: bugzilla-noreply@FreeBSD.org
To: fs@FreeBSD.org
Subject: Problem reports for fs@FreeBSD.org that need special attention
Date: Sun, 16 Mar 2025 21:00:34 +0000
List-Id: Filesystems <freebsd-fs.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/freebsd-fs
List-Help: <mailto:freebsd-fs+help@freebsd.org>
List-Post: <mailto:freebsd-fs@freebsd.org>
List-Subscribe: <mailto:freebsd-fs+subscribe@freebsd.org>
List-Unsubscribe: <mailto:freebsd-fs+unsubscribe@freebsd.org>
Sender: owner-freebsd-fs@FreeBSD.org
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="17421588342.Eaf2cD2.46656"
Content-Transfer-Encoding: 7bit


--17421588342.Eaf2cD2.46656
Date: Sun, 16 Mar 2025 21:00:34 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"

To view an individual PR, use:
  https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id).

The following is a listing of current problems submitted by FreeBSD users,
which need special attention. These represent problem reports covering
all versions including experimental development code and obsolete releases.

Status      |    Bug Id | Description
------------+-----------+---------------------------------------------------
Open        |    269503 | docs.freebsd.org: default vfs.zfs.arc.meta_limit  
Open        |    271384 | zfs_load is not suitably documented               

2 problems total for which you should take action.

--17421588342.Eaf2cD2.46656
Date: Sun, 16 Mar 2025 21:00:34 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"

<pre style="font-family: monospace;">
The following is a listing of current problems submitted by FreeBSD users,
which need special attention. These represent problem reports covering
all versions including experimental development code and obsolete releases.

Status      |    Bug Id | Description
------------+-----------+---------------------------------------------------
Open        |    <a href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269503">269503</a> | <a href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269503">docs.freebsd.org: default vfs.zfs.arc.meta_limit</a>
Open        |    <a href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271384">271384</a> | <a href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271384">zfs_load is not suitably documented</a>

2 problems total for which you should take action.
</pre>
--17421588342.Eaf2cD2.46656--