From owner-freebsd-current Wed Jun 30 17:26: 7 1999 Delivered-To: freebsd-current@freebsd.org Received: from lion.butya.kz (butya-gw.butya.kz [194.87.112.252]) by hub.freebsd.org (Postfix) with ESMTP id ECFE2156ED for ; Wed, 30 Jun 1999 17:25:55 -0700 (PDT) (envelope-from bp@butya.kz) Received: from bp (helo=localhost) by lion.butya.kz with local-esmtp (Exim 2.12 #1) id 10zUfm-000CSL-00 for freebsd-current@freebsd.org; Thu, 1 Jul 1999 07:25:50 +0700 Date: Thu, 1 Jul 1999 07:25:50 +0700 (ALMST) From: Boris Popov To: freebsd-current@freebsd.org Subject: Bad reference to zname in vm_zone struct Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, Here is a 'little' problem with vm_zone structure and field 'zname' in it. zinit() function takes a pointer to name of zone and assigns it to field zname. Since nfs module defines this name in the static module memory pointer to name becomes invalid when module unloaded via kldunload command. This will lead to trap in kernel or will produce junk in sysctl output: # kldload nfs # kldunload nfs # sysctl vm.zone Last command will produce panic. This has been reported as PR-kern/12464 -- Boris Popov http://www.butya.kz/~bp/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message