NetBSD Problem Report #41756

From www@NetBSD.org  Mon Jul 20 16:07:23 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 5973063BBD1
	for <gnats-bugs@gnats.netbsd.org>; Mon, 20 Jul 2009 16:07:23 +0000 (UTC)
Message-Id: <20090720160723.1D5B863B898@www.NetBSD.org>
Date: Mon, 20 Jul 2009 16:07:23 +0000 (UTC)
From: pooka@iki.fi
Reply-To: pooka@iki.fi
To: gnats-bugs@NetBSD.org
Subject: cgd unloading doesn't release resources
X-Send-Pr-Version: www-1.0

>Number:         41756
>Category:       kern
>Synopsis:       cgd unloading doesn't release resources
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 20 16:10:00 +0000 2009
>Closed-Date:    Sun Aug 28 09:38:04 +0000 2022
>Last-Modified:  Sun Aug 28 09:38:04 +0000 2022
>Originator:     Antti Kantee
>Release:        
>Organization:
yup, it's monday
>Environment:
>Description:
in cgd_modcmd:

        case MODULE_CMD_INIT:
                cgdattach(4);

                return devsw_attach("cgd", &cgd_bdevsw, &bmajor,
                    &cgd_cdevsw, &cmajor);
                break;

        case MODULE_CMD_FINI:
                return devsw_detach(&cgd_bdevsw, &cgd_cdevsw);
                break;

I cannot find where cgdattach() is undone.  If it is done through
a non-obvious hyperspace pointer maneuver, the resource releasing
code is indeed very well hidden.
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Sun, 28 Aug 2022 09:38:04 +0000
State-Changed-Why:
fixed in various ways over the years: 1.65, 1.66, 1.121, &c.


>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.