NetBSD Problem Report #45250
From www@NetBSD.org Sat Aug 13 20:44:22 2011
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 E913563C767
for <gnats-bugs@gnats.NetBSD.org>; Sat, 13 Aug 2011 20:44:21 +0000 (UTC)
Message-Id: <20110813204421.6700B63BED8@www.NetBSD.org>
Date: Sat, 13 Aug 2011 20:44:21 +0000 (UTC)
From: jmcneill@invisible.ca
Reply-To: jmcneill@invisible.ca
To: gnats-bugs@NetBSD.org
Subject: Builtin modules cannot be unloaded
X-Send-Pr-Version: www-1.0
>Number: 45250
>Category: kern
>Synopsis: Builtin modules cannot be unloaded
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sat Aug 13 20:45:01 +0000 2011
>Closed-Date:
>Last-Modified: Sat Nov 28 22:13:49 +0000 2015
>Originator: Jared McNeill
>Release: 5.99.55
>Organization:
>Environment:
>Description:
It is impossible to unload modules that are built-in to the kernel (ie part of the kernel config), which means any module included with the GENERIC kernel cannot be removed or replaced at runtime.
>How-To-Repeat:
Run modstat, find a driver marked "builtin", try to modunload it.
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: kern-bug-people->pgoyette
Responsible-Changed-By: pgoyette@NetBSD.org
Responsible-Changed-When: Sat, 28 Nov 2015 04:42:35 +0000
Responsible-Changed-Why:
I'll own this one
State-Changed-From-To: open->feedback
State-Changed-By: pgoyette@NetBSD.org
State-Changed-When: Sat, 28 Nov 2015 04:42:35 +0000
State-Changed-Why:
Feedback provided to originator - working as designed
From: Paul Goyette <paul@vps1.whooppee.com>
To: gnats-bugs@NetBSD.org
Cc: jmcneill@invisible.ca
Subject: Re: kern/45250 Builtin modules cannot be unloaded
Date: Sat, 28 Nov 2015 12:41:30 +0800 (PHT)
This is working as designed. You _can_ disable built-in modules with
modunload(8), but they will not be removed from memory and cannot be
replaced with a different version.
If you want replaceable modules, don't include them in the kernel; load
them manually during boot (via /boot.cfg) or during system startup (via
/etc/modules.conf), or let them be auto-loaded.
+------------------+--------------------------+-------------------------+
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| (Retired) | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org |
+------------------+--------------------------+-------------------------+
State-Changed-From-To: feedback->open
State-Changed-By: jmcneill@NetBSD.org
State-Changed-When: Sat, 28 Nov 2015 14:16:56 +0000
State-Changed-Why:
Not sure what feedback you're looking for. The issue is still present, and I
don't see where this behaviour is by design, only by implementation. The
ability to unload or replace a built-in module would be a useful feature to
have.
Responsible-Changed-From-To: pgoyette->kern-bug-people
Responsible-Changed-By: pgoyette@NetBSD.org
Responsible-Changed-When: Sat, 28 Nov 2015 22:13:49 +0000
Responsible-Changed-Why:
This is more than I'm willing to bite off for now.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.