From brooks@FreeBSD.org  Fri Jul 23 19:05:22 2004
Return-Path: <brooks@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id BE61C16A4D0
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 23 Jul 2004 19:05:22 +0000 (GMT)
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B84D743D1F
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 23 Jul 2004 19:05:22 +0000 (GMT)
	(envelope-from brooks@FreeBSD.org)
Received: from freefall.freebsd.org (brooks@localhost [127.0.0.1])
	by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i6NJ5Mdj047224
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 23 Jul 2004 19:05:22 GMT
	(envelope-from brooks@freefall.freebsd.org)
Received: (from brooks@localhost)
	by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i6NJ5M20047221;
	Fri, 23 Jul 2004 19:05:22 GMT
	(envelope-from brooks)
Message-Id: <200407231905.i6NJ5M20047221@freefall.freebsd.org>
Date: Fri, 23 Jul 2004 19:05:22 GMT
From: Brooks Davis <brooks@freebsd.org>
Reply-To: Brooks Davis <brooks@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: kldload will load modules that are in the static kernel
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         69502
>Category:       kern
>Synopsis:       [modules] kldload will load modules that are in the static kernel
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 23 19:10:22 GMT 2004
>Closed-Date:    Sun Feb 17 17:07:37 UTC 2008
>Last-Modified:  Sun Feb 17 17:07:37 UTC 2008
>Originator:     Brooks Davis
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD minya 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Fri Jul 16 09:09:10 PDT 2004     brooks@minya:/usr/obj/home/brooks/working/freebsd/p4/cleanup/sys/MINYA  i386


	
>Description:

It is possiable to compile a module such as tun into the kernel and then
load it with kldload. I'm not sure which on actually gets run if you
create a module. We should either forbid this or treat static modules
just like dynamic ones and allow them to be unloaded and replaced with
another module.

>How-To-Repeat:

Compile "device tun" into your kernel.  Then run "kldload if_tun".
Similar problems presumably exist with other modules.

>Fix:

	


>Release-Note:
>Audit-Trail:

From: Volker <volker@vwsoft.com>
To: bug-followup@FreeBSD.org, brooks@freebsd.org
Cc:  
Subject: Re: kern/69502: [modules] kldload will load modules that are in the
 static kernel
Date: Sun, 17 Feb 2008 14:46:25 +0100

 Brooks,
 
 I'm pretty sure, I've also seen this problem in the past. I've checked
 that now on a 7.0 and a 6.2 system and found FreeBSD will respond with a
 'File exists' error message.
 
 Unfortunately I'm unable to check on RELENG_5.
 
 Do you think we can close this PR?
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Sun Feb 17 16:01:44 UTC 2008 
State-Changed-Why:  
Note that submitter has been asked for feedback. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=69502 
State-Changed-From-To: feedback->closed 
State-Changed-By: brooks 
State-Changed-When: Sun Feb 17 17:06:47 UTC 2008 
State-Changed-Why:  
As far as I can tell, this is fixed in relevent versions of FreeBSD. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=69502 
>Unformatted:
