From mharo@bitsurf.net  Mon Jan  2 04:39:57 2006
Return-Path: <mharo@bitsurf.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B200B16A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  2 Jan 2006 04:39:57 +0000 (GMT)
	(envelope-from mharo@bitsurf.net)
Received: from coffee.bitsurf.net (coffee.bitsurf.net [66.92.2.80])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9DD5243D5C
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  2 Jan 2006 04:39:56 +0000 (GMT)
	(envelope-from mharo@bitsurf.net)
Received: from coffee.bitsurf.net (localhost [127.0.0.1])
	by coffee.bitsurf.net (8.13.4/8.13.4) with ESMTP id k024e57K001575
	(version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 1 Jan 2006 20:40:05 -0800 (PST)
	(envelope-from mharo@coffee.bitsurf.net)
Received: (from mharo@localhost)
	by coffee.bitsurf.net (8.13.4/8.13.4/Submit) id k024e47N001574;
	Sun, 1 Jan 2006 20:40:04 -0800 (PST)
	(envelope-from mharo)
Message-Id: <200601020440.k024e47N001574@coffee.bitsurf.net>
Date: Sun, 1 Jan 2006 20:40:04 -0800 (PST)
From: Michael Haro <mharo@bitsurf.net>
Reply-To: Michael Haro <mharo@bitsurf.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Kernel Panic
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         91196
>Category:       kern
>Synopsis:       [panic] kernel panic with firewall
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 02 04:40:09 GMT 2006
>Closed-Date:    Mon Dec 25 14:49:42 GMT 2006
>Last-Modified:  Mon Dec 25 14:49:42 GMT 2006
>Originator:     Michael Haro
>Release:        FreeBSD 6.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD firewall.bitsurf.net 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Sun Dec 25 01:32:38 PST 2005 root@soekrisbuilder.bitsurf.net:/usr/obj/nanobsd.net4801/u
sr/src/sys/NET4801 i386

Soekris 4801 using read-only compact flash.

>Description:

Since I'm using flash memory, I don't have a swap partition and thus I don't
know how to capture a kernel dump when the system panics.  Let me know if
there is a way and I'll capture one

When the system panics it shows the following on the console:

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x1c
fault code              = supervisor write, page not present
instruction pointer     = 0x20:0xc0447876
stack pointer           = 0x28:0xc7db8960
frame pointer           = 0x28:0xc7db8978
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 27 (swi1: net)
trap number             = 12
panic: page fault
Uptime: 8h23m13s
Cannot dump. No dump device defined.

This machine is used as my firewall/router/bridge and some of the network
interfaces are configured to use polling.  I'm using pf for the firewall and
if_bridge for bridging some of the interfaces together (it has 7 interfaces).


>How-To-Repeat:

Here's my kernel config:

    machine         i386
    cpu             I586_CPU
    ident           NET4801
    
    makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
    
    options 	SCHED_4BSD		# 4BSD scheduler
    options 	PREEMPTION		# Enable kernel thread preemption
    options 	INET			# InterNETworking
    options 	INET6			# IPv6 communications protocols
    options 	FFS			# Berkeley Fast Filesystem
    options 	SOFTUPDATES		# Enable FFS soft updates support
    options 	UFS_ACL			# Support for access control lists
    options 	UFS_DIRHASH		# Improve performance on big directories
    options 	MD_ROOT			# MD is a potential root device
    options 	NFSCLIENT		# Network Filesystem Client
    options 	NFS_ROOT		# NFS usable as /, requires NFSCLIENT
    #options 	MSDOSFS			# MSDOS Filesystem
    #options 	CD9660			# ISO 9660 Filesystem
    options 	PROCFS			# Process filesystem (requires PSEUDOFS)
    options 	PSEUDOFS		# Pseudo-filesystem framework
    #options 	GEOM_GPT		# GUID Partition Tables.
    options 	COMPAT_43		# Compatible with BSD 4.3 [KEEP THIS!]
    options 	COMPAT_FREEBSD4		# Compatible with FreeBSD4
    options 	COMPAT_FREEBSD5		# Compatible with FreeBSD5
    
    options 	KTRACE			# ktrace(1) support
    options 	SYSVSHM			# SYSV-style shared memory
    options 	SYSVMSG			# SYSV-style message queues
    options 	SYSVSEM			# SYSV-style semaphores
    options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
    
    options		CPU_GEODE		# Mandatory
    options		CPU_SOEKRIS		# Recommended
    
    options 	ADAPTIVE_GIANT		# Giant mutex is adaptive.
    
    device		apic			# I/O APIC
    
    device          isa
    device          pci
    
    # Floating point support - do not disable.
    device          npx
    
    # ATA (IDE) disk - required for CompactFlash too
    device          ata
    device          atadisk         # ATA disk drives
    
    # Serial (COM) ports
    device          sio
    
    # MII bus support is required for some PCI 10/100 ethernet NICs
    device          miibus          # MII bus support
    device          sis             # NS DP83815 Fast Ethernet device driver
    
    # Soekris vpn1211
    #device          hifn            # Hifn 7951, 7781, etc.
    
    device          random          # Entropy device
    device          loop            # Loopback
    device          ether           # Ethernet
    device          pty             # Pseudo-TTY
    device		md		# Memory "disks"
    device		gif		# IPv6 and IPv4 tunneling
    device          tun             # Packet tunnel (required by PPP)
    device          bpf             # Berkeley packet filter
    device		pf
    device		pflog
    device		pfsync
    device		if_bridge
    
    # USB support
    device          ohci            # OHCI PCI->USB interface
    device          usb             # USB Bus (required)
    device          ugen            # Generic
    device          uhid            # "Human Interface Devices"
    device          ukbd            # Keyboard
    device          ulpt            # Printer
    device          umass           # Disks/Mass storage - Requires scbus and da
    
    # SCSI peripherals (required by USB)
    device          scbus           # SCSI bus (required)
    device          da              # Direct Access (disks)
    
    options ALTQ
    options ALTQ_CBQ
    options ALTQ_RED
    options ALTQ_RIO
    options ALTQ_HFSC
    options ALTQ_CDNR
    options ALTQ_PRIQ
    
    options DEVICE_POLLING
    options NSWAPDEV=0

>Fix:
	don't know


>Release-Note:
>Audit-Trail:

From: Kris Kennaway <kris@obsecurity.org>
To: Michael Haro <mharo@bitsurf.net>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: kern/91196: Kernel Panic
Date: Wed, 18 Jan 2006 21:40:42 -0500

 On Sun, Jan 01, 2006 at 08:40:04PM -0800, Michael Haro wrote:
 > 
 > >Number:         91196
 > >Category:       kern
 > >Synopsis:       Kernel Panic
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       medium
 > >Responsible:    freebsd-bugs
 > >State:          open
 > >Quarter:        
 > >Keywords:       
 > >Date-Required:
 > >Class:          sw-bug
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Mon Jan 02 04:40:09 GMT 2006
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Michael Haro
 > >Release:        FreeBSD 6.0-RELEASE i386
 > >Organization:
 > >Environment:
 > System: FreeBSD firewall.bitsurf.net 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Sun Dec 25 01:32:38 PST 2005 root@soekrisbuilder.bitsurf.net:/usr/obj/nanobsd.net4801/u
 > sr/src/sys/NET4801 i386
 > 
 > Soekris 4801 using read-only compact flash.
 > 
 > >Description:
 > 
 > Since I'm using flash memory, I don't have a swap partition and thus I don't
 > know how to capture a kernel dump when the system panics.  Let me know if
 > there is a way and I'll capture one
 > 
 > When the system panics it shows the following on the console:
 > 
 > Fatal trap 12: page fault while in kernel mode
 > fault virtual address   = 0x1c
 > fault code              = supervisor write, page not present
 > instruction pointer     = 0x20:0xc0447876
 > stack pointer           = 0x28:0xc7db8960
 > frame pointer           = 0x28:0xc7db8978
 > code segment            = base 0x0, limit 0xfffff, type 0x1b
 >                         = DPL 0, pres 1, def32 1, gran 1
 > processor eflags        = interrupt enabled, resume, IOPL = 0
 > current process         = 27 (swi1: net)
 > trap number             = 12
 > panic: page fault
 > Uptime: 8h23m13s
 > Cannot dump. No dump device defined.
 
 You need to at least use the addr2line trick (or use kgdb on the debug
 kernel) to obtain the line number corresponding to the IP.  Also try
 to configure DDB and obtain a traceback.  See the developers' handbook
 for full details.
 
 Kris
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Mon Dec 25 14:49:41 UTC 2006 
State-Changed-Why:  
Kris requested actions from the submitter which hadn't been done, this 
would classify as feedback-timeout, please notify us if there is 
feedback so that we can continue to investigate this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=91196 
>Unformatted:
