From owner-freebsd-bugs@FreeBSD.ORG Fri Jul 23 19:10:23 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F239B16A4CF for ; Fri, 23 Jul 2004 19:10:22 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDFC643D31 for ; Fri, 23 Jul 2004 19:10:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i6NJAM2Q050883 for ; Fri, 23 Jul 2004 19:10:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i6NJAMRK050882; Fri, 23 Jul 2004 19:10:22 GMT (envelope-from gnats) Resent-Date: Fri, 23 Jul 2004 19:10:22 GMT Resent-Message-Id: <200407231910.i6NJAMRK050882@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Brooks Davis Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE61C16A4D0 for ; 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 ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/69502: kldload will load modules that are in the static kernel X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Brooks Davis List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jul 2004 19:10:23 -0000 >Number: 69502 >Category: kern >Synopsis: kldload will load modules that are in the static kernel >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 23 19:10:22 GMT 2004 >Closed-Date: >Last-Modified: >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: >Unformatted: