From ivo@fox.cis.vutbr.cz  Fri Apr 26 04:08:45 2002
Return-Path: <ivo@fox.cis.vutbr.cz>
Received: from fox.cis.vutbr.cz (fox.cis.vutbr.cz [147.229.3.24])
	by hub.freebsd.org (Postfix) with ESMTP id E4C6537B417
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 26 Apr 2002 04:08:44 -0700 (PDT)
Received: (from root@localhost)
	by fox.cis.vutbr.cz (8.12.2/8.11.6) id g3QB92YJ019216;
	Fri, 26 Apr 2002 13:09:02 +0200 (CEST)
	(envelope-from ivo)
Message-Id: <200204261109.g3QB92YJ019216@fox.cis.vutbr.cz>
Date: Fri, 26 Apr 2002 13:09:02 +0200 (CEST)
From: Ivo Hazmuk <ivo@vutbr.cz>
Reply-To: Ivo Hazmuk <ivo@vutbr.cz>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Memory dump after panic on machines with small disk
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         37483
>Category:       conf
>Synopsis:       Memory dump after panic on machines with small disk
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 26 04:10:01 PDT 2002
>Closed-Date:    Sat Apr 27 17:21:10 PDT 2002
>Last-Modified:  Mon Apr 29 02:50:21 PDT 2002
>Originator:     Ivo Hazmuk
>Release:        FreeBSD 4.5-RELEASE i386
>Organization:
Brno Universtity of Technology,
		Center of Information Services
>Environment:
System: FreeBSD fox.cis.vutbr.cz 4.5-RELEASE FreeBSD 4.5-RELEASE #4: Mon Mar 18 18:27:32 CET 2002 root@fox.cis.vutbr.cz:/usr/src/sys/compile/FOX i386


>Description:
	In rc.conf files is defined where the system save memory dump after
	panicing. But on machines with small disk is dangerous dump memory
	into disk. It can destroy file system where the dump is done.
	Administrator can control device via dumpon program. Parameter
	"off" switch off dumping.
	In rc scripts are defined two ways NO and setting some device.
	Option which said crash dump is disabled is missing.
	
>How-To-Repeat:
	Install FreeBSD on small disk (200MB) and provoke kernel panic.
	If variable $dumpdev is "NO" kernel dumps memory to any filesystem.
	On small disk it can destroy this filesystem.
>Fix:
	Add following lines to /etc/rc:
389,391d388
< [Oo][Ff][Ff])
<         /sbin/dumpon -v off
<         ;;

	If you want disable dumping set variable "dumpdev" to "OFF" in
	/etc/rc.conf or /etc/rc.conf.local:
dumpdev="OFF"


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: cjc 
State-Changed-When: Sat Apr 27 17:20:54 PDT 2002 
State-Changed-Why:  
Panic dumps should not be occuring if 'dumpdev="NO".' Also, no new 
code is required if you want to force a '/sbin/dumpon -v off' to be 
run at boot, just set 'dumpdev="off".' 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37483 

From: "Crist J. Clark" <cjc@FreeBSD.ORG>
To: Ivo Hazmuk <ivo@vutbr.cz>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: conf/37483: Memory dump after panic on machines with small disk
Date: Sat, 27 Apr 2002 17:18:47 -0700

 On Fri, Apr 26, 2002 at 01:09:02PM +0200, Ivo Hazmuk wrote:
 [snip]
 
 > >How-To-Repeat:
 > 	Install FreeBSD on small disk (200MB) and provoke kernel panic.
 > 	If variable $dumpdev is "NO" kernel dumps memory to any filesystem.
 > 	On small disk it can destroy this filesystem.
 
 When 'dumpdev="NO"', the dumpon(8) is not set to anything.
 
 > >Fix:
 > 	Add following lines to /etc/rc:
 > 389,391d388
 > < [Oo][Ff][Ff])
 > <         /sbin/dumpon -v off
 > <         ;;
 > 
 > 	If you want disable dumping set variable "dumpdev" to "OFF" in
 > 	/etc/rc.conf or /etc/rc.conf.local:
 > dumpdev="OFF"
 
 Setting it to "NO" already disables it (by never enabling it). If you
 are getting crash dumps even though dumpon(8) is never set, something
 is wrong.
 
 And all of this is moot. If you put,
 
   dumpdev="off"
 
 In rc.conf(5) today, the code in rc(5),
 
   case ${dumpdev} in
   [Nn][Oo] | '')
           dumpdev='NO'
           ;;
   *)
           /sbin/dumpon -v ${dumpdev}
           ;;
   esac
 
 Will run,
 
   /sbin/dumpon -v off
 
 For you. No need to add any code.
 -- 
 Crist J. Clark                     |     cjclark@alum.mit.edu
                                    |     cjclark@jhu.edu
 http://people.freebsd.org/~cjc/    |     cjc@freebsd.org

From: Ivo Hazmuk <ivo@vutbr.cz>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc:  
Subject: conf/37483: Memory dump after panic on machines with small disk
Date: Fri, 26 Apr 2002 13:09:02 +0200 (CEST)

 >Number:         37483
 >Category:       conf
 >Synopsis:       Memory dump after panic on machines with small disk
 >Confidential:   no
 >Severity:       serious
 >Priority:       medium
 >Responsible:    freebsd-bugs
 >State:          open
 >Quarter:        
 >Keywords:       
 >Date-Required:
 >Class:          sw-bug
 >Submitter-Id:   current-users
 >Arrival-Date:   Fri Apr 26 04:10:01 PDT 2002
 >Closed-Date:
 >Last-Modified:
 >Originator:     Ivo Hazmuk
 >Release:        FreeBSD 4.5-RELEASE i386
 >Organization:
 Brno Universtity of Technology,
 		Center of Information Services
 >Environment:
 System: FreeBSD fox.cis.vutbr.cz 4.5-RELEASE FreeBSD 4.5-RELEASE #4: Mon Mar 18 18:27:32 CET 2002 root@fox.cis.vutbr.cz:/usr/src/sys/compile/FOX i386
 
 
 >Description:
 	In rc.conf files is defined where the system save memory dump after
 	panicing. But on machines with small disk is dangerous dump memory
 	into disk. It can destroy file system where the dump is done.
 	Administrator can control device via dumpon program. Parameter
 	"off" switch off dumping.
 	In rc scripts are defined two ways NO and setting some device.
 	Option which said crash dump is disabled is missing.
 	
 >How-To-Repeat:
 	Install FreeBSD on small disk (200MB) and provoke kernel panic.
 	If variable $dumpdev is "NO" kernel dumps memory to any filesystem.
 	On small disk it can destroy this filesystem.
 >Fix:
 	Add following lines to /etc/rc:
 389,391d388
 < [Oo][Ff][Ff])
 <         /sbin/dumpon -v off
 <         ;;
 
 	If you want disable dumping set variable "dumpdev" to "OFF" in
 	/etc/rc.conf or /etc/rc.conf.local:
 dumpdev="OFF"
 
 
 >Release-Note:
 >Audit-Trail:
 >Unformatted:
 
 To Unsubscribe: send mail to majordomo@FreeBSD.org
 with "unsubscribe freebsd-bugs" in the body of the message
 
>Unformatted:
