From nobody@FreeBSD.org  Fri Dec  9 16:07:04 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 01AF616A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  9 Dec 2005 16:07:04 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A0E2D43D82
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  9 Dec 2005 16:07:03 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id jB9G73DQ046468
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 9 Dec 2005 16:07:03 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id jB9G73js046467;
	Fri, 9 Dec 2005 16:07:03 GMT
	(envelope-from nobody)
Message-Id: <200512091607.jB9G73js046467@www.freebsd.org>
Date: Fri, 9 Dec 2005 16:07:03 GMT
From: Tom Mller-Kortkamp <tmueko@kommunity.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pf_enable="YES" -> Fatal trap 12: page fault while in kernel mode
X-Send-Pr-Version: www-2.3

>Number:         90148
>Category:       kern
>Synopsis:       [pf] pf_enable="YES" -> Fatal trap 12: page fault while in kernel mode
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-pf
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 09 16:10:03 GMT 2005
>Closed-Date:    Tue Mar 28 15:08:02 GMT 2006
>Last-Modified:  Tue Mar 28 15:08:02 GMT 2006
>Originator:     Tom Mller-Kortkamp
>Release:        FreeBSD 6.0-RELEASE #0
>Organization:
komm://unity
>Environment:
FreeBSD durandal.kommunity.net 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005     root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
When I enable "pf_enable="YES"" in /etc/rc.conf (no matter if pf Module is loaded in Kernel or not)

I get a 
Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0xf
fault code              = supervisor write, page not present
instruction pointer     = 0x20:0xc0526699
stack pointer           = 0x28:0xcbf72c90
frame pointer           = 0x28:0xcbf72ca4
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         = 21 (irq10: fxp2 fxp7)
trap number             = 12
panic: page fault
Uptime: 7s


from /etc/rc.conf
[...]
ifconfig_fxp7="inet 195.20.112.2 up name ifB"
ifconfig_fxp5="name ifA"
ifconfig_fxp6="name ifC"
cloned_interfaces="bridge0"
ifconfig_ifB="inet 195.20.112.2 up"
ifconfig_bridge0="addm ifA addm ifB addm ifC"
[...]
pf_enable="YES"

Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005
    root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel Pentium III (996.31-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
  Features=0x387f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,PN,MMX,FXSR,SSE>
real memory  = 267386880 (255 MB)
avail memory = 252297216 (240 MB)
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
cpu0 on motherboard
pcib0: <Intel 82815 (i815 GMCH) Host To Hub bridge> pcibus 0 on motherboard
pir0: <PCI Interrupt Routing Table: 10 Entries> on motherboard
pci0: <PCI bus> on pcib0
agp0: <Intel 82815 (i815 GMCH) SVGA controller> mem 0xe0000000-0xe3ffffff,0xe8000000-0xe807ffff at device 2.0 on pci0
pcib1: <PCIBIOS PCI-PCI bridge> at device 30.0 on pci0
pci1: <PCI bus> on pcib1
fxp0: <Intel 82801BA/CAM (ICH2/3) Pro/100 Ethernet> port 0xa000-0xa03f mem 0xe7061000-0xe7061fff irq 5 at device 8.0 on pci1
miibus0: <MII bus> on fxp0
inphy0: <i82562EM 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:10:f3:06:0e:b6
pcib2: <PCI-PCI bridge> at device 9.0 on pci1
pci2: <PCI bus> on pcib2
$PIR: ROUTE_INTERRUPT failed.
fxp1: <Intel 82559ER Embedded 10/100 Ethernet> port 0x9000-0x903f mem 0xe5083000-0xe5083fff,0xe5000000-0xe501ffff irq 12 at device 9.0 on pci2
miibus1: <MII bus> on fxp1
inphy1: <i82555 10/100 media interface> on miibus1
inphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp1: Ethernet address: 00:10:f3:06:0e:ba
fxp2: <Intel 82559ER Embedded 10/100 Ethernet> port 0x9400-0x943f mem 0xe5081000-0xe5081fff,0xe5020000-0xe503ffff irq 10 at device 10.0 on pci2
miibus2: <MII bus> on fxp2
inphy2: <i82555 10/100 media interface> on miibus2
inphy2:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp2: Ethernet address: 00:10:f3:06:0e:bb
fxp3: <Intel 82559ER Embedded 10/100 Ethernet> port 0x9800-0x983f mem 0xe5080000-0xe5080fff,0xe5040000-0xe505ffff irq 11 at device 11.0 on pci2
miibus3: <MII bus> on fxp3
inphy3: <i82555 10/100 media interface> on miibus3
inphy3:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp3: Ethernet address: 00:10:f3:06:0e:bc
fxp4: <Intel 82559ER Embedded 10/100 Ethernet> port 0x9c00-0x9c3f mem 0xe5082000-0xe5082fff,0xe5060000-0xe507ffff irq 9 at device 12.0 on pci2
miibus4: <MII bus> on fxp4
inphy4: <i82555 10/100 media interface> on miibus4
inphy4:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp4: Ethernet address: 00:10:f3:06:0e:bd
fxp5: <Intel 82559ER Embedded 10/100 Ethernet> port 0xa400-0xa43f mem 0xe7063000-0xe7063fff,0xe7000000-0xe701ffff irq 9 at device 13.0 on pci1
miibus5: <MII bus> on fxp5
inphy5: <i82555 10/100 media interface> on miibus5
inphy5:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp5: Ethernet address: 00:10:f3:06:0e:b7
fxp6: <Intel 82559ER Embedded 10/100 Ethernet> port 0xa800-0xa83f mem 0xe7060000-0xe7060fff,0xe7020000-0xe703ffff irq 11 at device 14.0 on pci1
miibus6: <MII bus> on fxp6
inphy6: <i82555 10/100 media interface> on miibus6
inphy6:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp6: Ethernet address: 00:10:f3:06:0e:b8
fxp7: <Intel 82559ER Embedded 10/100 Ethernet> port 0xac00-0xac3f mem 0xe7062000-0xe7062fff,0xe7040000-0xe705ffff irq 10 at device 15.0 on pci1
miibus7: <MII bus> on fxp7
inphy7: <i82555 10/100 media interface> on miibus7
inphy7:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp7: Ethernet address: 00:10:f3:06:0e:b9
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH2 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 31.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
uhci0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> port 0xb000-0xb01f irq 9 at device 31.2 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xc7fff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A, console
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0c01> can't assign resources (memory)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0400> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
Timecounter "TSC" frequency 996311125 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 977MB <SanDisk SDCFB-1024 HDX 2.15> at ata0-master PIO4
Trying to mount root from ufs:/dev/ad0s1a
bridge0: Ethernet address: ac:de:48:cf:40:e8

>How-To-Repeat:

>Fix:
Use ipfw/dummynet instead of pf?
>Release-Note:
>Audit-Trail:

From: Kris Kennaway <kris@obsecurity.org>
To: Tom =?unknown-8bit?Q?M=FCller-Kortkamp?= <tmueko@kommunity.net>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/90148: pf_enable="YES" -> Fatal trap 12: page fault while in kernel mode
Date: Fri, 9 Dec 2005 13:12:28 -0500

 On Fri, Dec 09, 2005 at 04:07:03PM +0000, Tom Mller-Kortkamp wrote:
 > 
 > >Number:         90148
 > >Category:       misc
 > >Synopsis:       pf_enable="YES" -> Fatal trap 12: page fault while in kernel mode
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       low
 > >Responsible:    freebsd-bugs
 > >State:          open
 > >Quarter:        
 > >Keywords:       
 > >Date-Required:
 > >Class:          sw-bug
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Fri Dec 09 16:10:03 GMT 2005
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Tom Mller-Kortkamp
 > >Release:        FreeBSD 6.0-RELEASE #0
 > >Organization:
 > komm://unity
 > >Environment:
 > FreeBSD durandal.kommunity.net 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005     root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC  i386
 > 
 > >Description:
 > When I enable "pf_enable="YES"" in /etc/rc.conf (no matter if pf Module is loaded in Kernel or not)
 
 It sounds like your pf module is out of sync with your kernel.  Can
 you confirm they were built from the same sources?
 
 Kris
Responsible-Changed-From-To: freebsd-bugs->freebsd-pf 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Dec 9 19:20:19 GMT 2005 
Responsible-Changed-Why:  
Over to maintainer(s). 

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

From: =?ISO-8859-1?Q?Tom_M=FCller-Kortkamp?= <tmueko@kommunity.net>
To: bug-followup@FreeBSD.org,
        =?ISO-8859-1?Q?Tom_M=FCller-Kortkamp?= <tmueko@kommunity.net>
Cc:  
Subject: Re: kern/90148: [pf] pf_enable="YES" -> Fatal trap 12: page fault while in kernel mode
Date: Mon, 12 Dec 2005 08:08:47 +0100

 OK, I was too fast:
 It is not pf, it IS if_bridge.ko
 
 That Machnine also Panics with ipfw loaded.
 
 I disabled if_bridge and enabled ng_bridge. Now everything ist fine =20
 (I hope:-))
 
 --=20
 kommunity GmbH & Co.KG
 Tom M=FCller-Kortkamp
 Netzwerke & Internet
 Goseriede 4
 D-30159 Hannover
 
 Phone +49 (0)5 11 - 80 72 58 0
 Fax +49 (0)5 11 - 80 72 58 10
 http://www.kommunity.net
 
 

From: =?ISO-8859-1?Q?Tom_M=FCller-Kortkamp?= <tmueko@kommunity.net>
To: Kris Kennaway <kris@obsecurity.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/90148: pf_enable="YES" -> Fatal trap 12: page fault while in kernel mode
Date: Mon, 12 Dec 2005 09:11:20 +0100

 Am 09.12.2005 um 19:12 schrieb Kris Kennaway:
 
 > On Fri, Dec 09, 2005 at 04:07:03PM +0000, Tom Mller-Kortkamp wrote:
 >>
 >>> Number:         90148
 >>> Category:       misc
 >>> Synopsis:       pf_enable=3D"YES" -> Fatal trap 12: page fault =20
 >>> while in kernel mode
 >>> Confidential:   no
 >>> Severity:       non-critical
 >>> Priority:       low
 >>> Responsible:    freebsd-bugs
 >>> State:          open
 >>> Quarter:
 >>> Keywords:
 >>> Date-Required:
 >>> Class:          sw-bug
 >>> Submitter-Id:   current-users
 >>> Arrival-Date:   Fri Dec 09 16:10:03 GMT 2005
 >>> Closed-Date:
 >>> Last-Modified:
 >>> Originator:     Tom M=FCller-Kortkamp
 >>> Release:        FreeBSD 6.0-RELEASE #0
 >>> Organization:
 >> komm://unity
 >>> Environment:
 >> FreeBSD durandal.kommunity.net 6.0-RELEASE FreeBSD 6.0-RELEASE #0: =20=
 
 >> Thu Nov  3 09:36:13 UTC 2005     root@x64.samsco.home:/usr/obj/usr/=20=
 
 >> src/sys/GENERIC  i386
 >>
 >>> Description:
 >> When I enable "pf_enable=3D"YES"" in /etc/rc.conf (no matter if pf =20=
 
 >> Module is loaded in Kernel or not)
 >
 > It sounds like your pf module is out of sync with your kernel.  Can
 > you confirm they were built from the same sources?
 >
 > Kris
 Hi Kis
 
 Sorry for going round this: This was a fresh install with "mini_boot" =20=
 
 CD-Image and one of the German mirrors (something like =20
 ftp3.de.freebsd.org)
 I Used "minimal System" in sysinstall.
 
 --=20
 kommunity GmbH & Co.KG
 Tom M=FCller-Kortkamp
 Netzwerke & Internet
 Goseriede 4
 D-30159 Hannover
 
 Phone +49 (0)5 11 - 80 72 58 0
 Fax +49 (0)5 11 - 80 72 58 10
 http://www.kommunity.net
 
 

From: Max Laier <max@love2party.net>
To: bug-followup@freebsd.org,
 tmueko@kommunity.net
Cc:  
Subject: Re: kern/90148: [pf] pf_enable="YES" -> Fatal trap 12: page fault while in kernel mode
Date: Tue, 28 Mar 2006 15:04:17 +0200

 I'm unsure what to do with this PR?  Is the problem fixed?  Is there anything 
 left to investigate?  Thanks.
 -- 
   Max
State-Changed-From-To: open->closed 
State-Changed-By: mlaier 
State-Changed-When: Tue Mar 28 15:07:19 UTC 2006 
State-Changed-Why:  
Problem went away according to originator. 

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