From owner-freebsd-bugs Thu Feb 6 00:20:08 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id AAA10880 for bugs-outgoing; Thu, 6 Feb 1997 00:20:08 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id AAA10852; Thu, 6 Feb 1997 00:20:04 -0800 (PST) Resent-Date: Thu, 6 Feb 1997 00:20:04 -0800 (PST) Resent-Message-Id: <199702060820.AAA10852@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, gdonl@tsc.tdk.com Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id AAA09824 for ; Thu, 6 Feb 1997 00:14:29 -0800 (PST) Received: from gatekeeper.tsc.tdk.com (root@gatekeeper.tsc.tdk.com [207.113.159.21]) by who.cdrom.com (8.7.5/8.6.11) with ESMTP id XAA18077 for ; Wed, 5 Feb 1997 23:59:57 -0800 (PST) Received: from sunrise.gv.tsc.tdk.com (root@sunrise.gv.tsc.tdk.com [192.168.241.191]) by gatekeeper.tsc.tdk.com (8.8.4/8.8.4) with ESMTP id XAA03773 for ; Wed, 5 Feb 1997 23:59:56 -0800 (PST) Received: from w3.gv.tsc.tdk.com (gdonl@w3.gv.tsc.tdk.com [192.168.240.195]) by sunrise.gv.tsc.tdk.com (8.8.4/8.8.4) with ESMTP id XAA13398 for ; Wed, 5 Feb 1997 23:59:55 -0800 (PST) Received: (from gdonl@localhost) by w3.gv.tsc.tdk.com (8.8.5/8.8.4) id XAA00978; Wed, 5 Feb 1997 23:59:52 -0800 (PST) Message-Id: <199702060759.XAA00978@w3.gv.tsc.tdk.com> Date: Wed, 5 Feb 1997 23:59:52 -0800 (PST) From: Don Lewis Reply-To: gdonl@tsc.tdk.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/2676: modstat passes garbage name to kernel if name is not specified Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2676 >Category: bin >Synopsis: modstat passes garbage name to kernel if name is not specified >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 6 00:20:02 PST 1997 >Last-Modified: >Originator: Don Lewis >Organization: TDK Semiconductor >Release: FreeBSD 2.1.6-internal-0225 i386 >Environment: >Description: If a module name is not specified on the command line for modstat, it fails to initialize the name field of the lmc_stat structure before passing this to the ioctl() call. This results in whatever random garbage is contained on the stack being used as the module name. This bug is present in all releases through -current. >How-To-Repeat: Run modstat without specifying a module name. >Fix: Clear the sbuf.name[] array in dostat() with bzero() or equivalent instead of just NUL terminating it. >Audit-Trail: >Unformatted: