NetBSD Problem Report #56914

From paul@whooppee.com  Fri Jul  8 03:04:04 2022
Return-Path: <paul@whooppee.com>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id BBA0F1A921F
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  8 Jul 2022 03:04:03 +0000 (UTC)
Message-Id: <20220708030359.B315E30F2C4@speedy.whooppee.com>
Date: Thu,  7 Jul 2022 20:03:59 -0700 (PDT)
From: paul@whoooppee.com
Reply-To: paul@whooppee.com
To: gnats-bugs@NetBSD.org
Subject: kernel crash when nvme module auto-unloads
X-Send-Pr-Version: 3.95

>Number:         56914
>Category:       kern
>Synopsis:       kernel crash when nvme module auto-unloads
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pgoyette
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 08 03:05:00 +0000 2022
>Closed-Date:    Fri Jul 08 17:33:14 +0000 2022
>Last-Modified:  Fri Jul 08 17:33:14 +0000 2022
>Originator:     Paul Goyette
>Release:        NetBSD 9.99.96
>Organization:
+--------------------+--------------------------+----------------------+
| Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:    |
| (Retired)          | FA29 0E3B 35AF E8AE 6651 | paul@whooppee.com    |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette@netbsd.org  |
| & Network Engineer |                          | pgoyette99@gmail.com |
+--------------------+--------------------------+----------------------+
>Environment:


System: NetBSD speedy.whooppee.com 9.99.96 NetBSD 9.99.96 (SPEEDY 2022-04-26 17:56:53 UTC) #0: Tue Apr 26 21:09:23 UTC 2022 paul@speedy.whooppee.com:/build/netbsd-local/obj/amd64/sys/arch/amd64/compile/SPEEDY amd64
Architecture: x86_64
Machine: amd64
>Description:

If the nvme is autoloaded (perhaps due running nvmectl(8) or some other
attempt to open /dev/nvme), it will fail due to another bug.   This is
supposed to be acceptable behavior, however when the auto-unload timer
fires the kernel will crash during the unload.  This is due to there
being no cdevsw which can be detached (the initial failure during load
failed to create the cdevsw).
>How-To-Repeat:

See above
>Fix:

Working on it

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: kern-bug-people->pgoyette
Responsible-Changed-By: pgoyette@NetBSD.org
Responsible-Changed-When: Fri, 08 Jul 2022 03:07:15 +0000
Responsible-Changed-Why:
it's mine


State-Changed-From-To: open->analyzed
State-Changed-By: pgoyette@NetBSD.org
State-Changed-When: Fri, 08 Jul 2022 03:07:15 +0000
State-Changed-Why:
I  understand the problem


State-Changed-From-To: analyzed->closed
State-Changed-By: pgoyette@NetBSD.org
State-Changed-When: Fri, 08 Jul 2022 17:33:14 +0000
State-Changed-Why:
Fix committed


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.