Subject: kern/5979: kernel dmesg/syslog buffer overflows at boot time
To: None <gnats-bugs@gnats.netbsd.org>
From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
List: netbsd-bugs
Date: 08/16/1998 11:02:12
>Number:         5979
>Category:       kern
>Synopsis:       kernel dmesg/syslog buffer overflows at boot time
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 16 11:05:01 1998
>Last-Modified:
>Originator:     Wolfgang Rupprecht
>Organization:
W S Rupprecht Computer Consulting, Fremont CA
>Release:        current (Aug 15 1998)
>Environment:
	
System: NetBSD capsicum.wsrcc.com 1.3G NetBSD 1.3G (WSRCC) #0: Sat Aug 15 17:29:13 PDT 1998 root@capsicum.wsrcc.com:/v/src/netbsd/NetBSD-current/usr/src/sys/arch/i386/compile/WSRCC i386


>Description:
	the kernel dmesg/syslog buffer needs to be expanded a bit.

>How-To-Repeat:
	boot, then type "dmesg" and look for the first few lines of the 
 	kprintf's (eg. the lines with the kernel compilation date etc.)

	look into /var/log/message for the same lines.  They will be missing. 
	This is what I get:

    Aug 15 19:00:00 capsicum newsyslog[986]: logfile turned over
    Aug 15 20:20:02 capsicum syslogd: exiting on signal 15

    <reboot happens at this point>

    Aug 15 20:26:46 capsicum /netbsd: ing 13504512 bytes of memory
    Aug 15 20:26:46 capsicum /netbsd: mainbus0 (root)
    Aug 15 20:26:46 capsicum /netbsd: pci0 at mainbus0 bus 0: configuration mode 1
    Aug 15 20:26:46 capsicum /netbsd: pci0: i/o enabled, memory enabled
    Aug 15 20:26:46 capsicum /netbsd: pchb0 at pci0 dev 0 function 0
    Aug 15 20:26:46 capsicum /netbsd: pchb0: Intel 82443LX PCI AGP Controller (PAC) (rev. 0x03)


>Fix:
	increase the static buffer in the kernel for the messages.
>Audit-Trail:
>Unformatted: