Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Sep 2005 14:05:40 +0100 (BST)
From:      "Dominic Marks" <dom@helenmarks.co.uk>
To:        "Dominic Marks" <dom@helenmarks.co.uk>
Cc:        freebsd-hackers@freebsd.org, dominic.marks@graphdata.co.uk
Subject:   Re: FreeBSD 6.0-BETA4 panics when when configuring pfsync0
Message-ID:  <3178.195.12.22.194.1126271140.squirrel@www.helenmarks.co.uk>
In-Reply-To: <2845.195.12.22.194.1126261787.squirrel@www.helenmarks.co.uk>
References:  <2845.195.12.22.194.1126261787.squirrel@www.helenmarks.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Dominic Marks wrote:
> Hello,
>
> I am setting up a redundant firewall setup for our company, the systems
> are identically configured Dell servers running FreeBSD 6.0-BETA4.
> Software being used is pf, carp, pfsync and altq.
>
> When I attempt to configure the pfsync0 interface the systems panic. The
> systems currently have HTT enabled, I've googled but I didn't find
> anything to suggest pfsync was not SMP/HTT friendly. Could this be a
> configuration problem?
>
> interface:
>
> # ifconfig em2
> em2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         options=b<RXCSUM,TXCSUM,VLAN_MTU>
>         inet 172.16.254.2 netmask 0xffffff00 broadcast 172.16.254.255
>         ether 00:04:23:bd:7a:ef
>         media: Ethernet autoselect (100baseTX <full-duplex>)
>         status: active
>
> command:
>
> # ifconfig pfsync0 syncdev em2 syncpeer 172.16.254.1

Following a little more testing:

If I don't specify a syncpeer I don't get the panic.

> panic message:
>
> Fatal trap 12: page fault while in kernel mode
> cpuid = 0; apic id = 00
> fault virtual address   = 0x24
> fault code              = supervisor read, page not present
> instruction pointer     = 0x20:0xc067bfdc
> stack pointer           = 0x28:0xcca18aa0
> frame pointer           = 0x28:0xcca18ab4
> code segment            = base 0x0, limit 0xfffff, type 0x1b
>                         = DPL 0, pres 1, def32 1, gran 1
> processor eflags        = resume, IOPL = 0
> current process         = 84 (swi4: clock sio)
> trap number             = 12
> panic: page fault
> cpuid = 0
> Uptime: 17m1s
> Dumping 255 MB (2 chunks)
>
> backtrace:
>
> #0  doadump () at pcpu.h:165
> 165     pcpu.h: No such file or directory.
>         in pcpu.h
> (kgdb) bt
> #0  doadump () at pcpu.h:165
> #1  0xc065b55d in boot (howto=260) at
> /usr/src/sys/kern/kern_shutdown.c:397
> #2  0xc065b881 in panic (fmt=0xc0854645 "%s")
>     at /usr/src/sys/kern/kern_shutdown.c:553
> #3  0xc080cdfc in trap_fatal (frame=0xcca18a60, eva=36)
>     at /usr/src/sys/i386/i386/trap.c:841
> #4  0xc080c5b6 in trap (frame=
>       {tf_fs = 8, tf_es = 40, tf_ds = 40, tf_edi = -1043696512, tf_esi =
> -106424                          5856, tf_ebp = -861828428, tf_isp =
> -861828468, tf_ebx = -1051017216, tf_edx = -
>  1043696512, tf_ecx = -1051126400, tf_eax = 0, tf_trapno = 12,
> tf_err = 0, tf_eip                           = -1066942500, tf_cs =
> 32, tf_eflags = 65670, tf_esp = 52, tf_ss = 0})
>     at /usr/src/sys/i386/i386/trap.c:272
> #5  0xc07fa5ca in calltrap () at /usr/src/sys/i386/i386/exception.s:139
> #6  0x00000008 in ?? ()
> #7  0x00000028 in ?? ()
> #8  0x00000028 in ?? ()
> #9  0xc1ca7480 in ?? ()
> #10 0xc090e5a0 in pfi_buffer_max ()
> #11 0xcca18ab4 in ?? ()
> #12 0xcca18a8c in ?? ()
> #13 0xc15ac000 in ?? ()
> #14 0xc1ca7480 in ?? ()
> #15 0xc1591580 in ?? ()
> #16 0x00000000 in ?? ()
> #17 0x0000000c in ?? ()
> #18 0x00000000 in ?? ()
> #19 0xc067bfdc in propagate_priority (td=0xc1ca7480)
>     at /usr/src/sys/kern/subr_turnstile.c:234
> #20 0xc067c8f1 in turnstile_wait (lock=0xc090e5a0, owner=0xc1ca7480)
>     at /usr/src/sys/kern/subr_turnstile.c:629
> #21 0xc0652cb0 in _mtx_lock_sleep (m=0xc090e5a0, tid=3243950080, opts=0,
>     file=0x0, line=0) at /usr/src/sys/kern/kern_mutex.c:549
> #22 0xc04768ed in pf_test (dir=2, ifp=0xc16ae000, m0=0xcca18c18, eh=0x0,
>     inp=0x0) at /usr/src/sys/contrib/pf/net/pf.c:6284
> #23 0xc047f74b in pf_check_out (arg=0x0, m=0xcca18c18, ifp=0xc16ae000,
> dir=2,
>     inp=0x0) at /usr/src/sys/contrib/pf/net/pf_ioctl.c:3386
> #24 0xc06d1837 in pfil_run_hooks (ph=0xc0934740, mp=0xcca18c8c,
>     ifp=0xc16ae000, dir=2, inp=0x0) at /usr/src/sys/net/pfil.c:139
> #25 0xc06f7172 in ip_output (m=0xc177e900, opt=0xc177e988, ro=0xcca18c58,
>     flags=2, imo=0xc16e3e08, inp=0x0) at
> /usr/src/sys/netinet/ip_output.c:666
> #26 0xc0469dc2 in pfsync_senddef (arg=0xc16e3e00)
>     at /usr/src/sys/contrib/pf/net/if_pfsync.c:1829
> #27 0xc0667bea in softclock (dummy=0x0) at
> /usr/src/sys/kern/kern_timeout.c:295
> #28 0xc0646d11 in ithread_loop (arg=0xc15bc480)
>     at /usr/src/sys/kern/kern_intr.c:545
> #29 0xc0645dd5 in fork_exit (callout=0xc0646bc4 <ithread_loop>,
>     arg=0xc15bc480, frame=0xcca18d38) at /usr/src/sys/kern/kern_fork.c:789
> #30 0xc07fa62c in fork_trampoline () at
> /usr/src/sys/i386/i386/exception.s:208
>
> dmesg:
>
> 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-BETA4 #1: Tue Sep  6 15:44:57 BST 2005
>     root@HOSTNAME:/usr/obj/usr/src/sys/FIREWALL
> ACPI APIC Table: <DELL   PESC1425>
> Timecounter "i8254" frequency 1193182 Hz quality 0
> CPU: Intel(R) Xeon(TM) CPU 3.20GHz (3200.12-MHz 686-class CPU)
>   Origin = "GenuineIntel"  Id = 0xf41  Stepping = 1
>   Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACP
> I,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
>   Features2=0x641d<SSE3,RSVD2,MON,DS_CPL,CNTX-ID,CX16,<b14>>
>   AMD Features=0x20100000<NX,LM>
>   Hyperthreading: 2 logical CPUs
> real memory  = 268173312 (255 MB)
> avail memory = 252772352 (241 MB)
> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
>  cpu0 (BSP): APIC ID:  0
>  cpu1 (AP): APIC ID:  1
> ioapic0: Changing APIC ID to 2
> ioapic1: Changing APIC ID to 3
> ioapic1: WARNING: intbase 32 != expected base 24
> ioapic2: Changing APIC ID to 4
> ioapic2: WARNING: intbase 64 != expected base 56
> ioapic0 <Version 2.0> irqs 0-23 on motherboard
> ioapic1 <Version 2.0> irqs 32-55 on motherboard
> ioapic2 <Version 2.0> irqs 64-87 on motherboard
> npx0: [FAST]
> npx0: <math processor> on motherboard
> npx0: INT 16 interface
> acpi0: <DELL PESC1425> on motherboard
> acpi0: Power Button (fixed)
> pci_link0: <ACPI PCI Link LNKA> irq 11 on acpi0
> pci_link1: <ACPI PCI Link LNKB> irq 11 on acpi0
> pci_link2: <ACPI PCI Link LNKC> irq 5 on acpi0
> pci_link3: <ACPI PCI Link LNKD> irq 10 on acpi0
> pci_link4: <ACPI PCI Link LNKE> irq 3 on acpi0
> pci_link5: <ACPI PCI Link LNKF> on acpi0
> pci_link6: <ACPI PCI Link LNKG> on acpi0
> pci_link7: <ACPI PCI Link LNKH> irq 6 on acpi0
> Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
> acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
> cpu0: <ACPI CPU> on acpi0
> cpu1: <ACPI CPU> on acpi0
> pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
> pci0: <ACPI PCI bus> on pcib0
> pcib1: <ACPI PCI-PCI bridge> at device 2.0 on pci0
> pci1: <ACPI PCI bus> on pcib1
> pcib2: <ACPI PCI-PCI bridge> at device 0.0 on pci1
> pci2: <ACPI PCI bus> on pcib2
> em0: <Intel(R) PRO/1000 Network Connection, Version - 2.1.7> port
> 0xecc0-0xecff mem 0xdfde0000-0xdfdfffff irq
>  32 at device 4.0 on pci2
> em0: Ethernet address: 00:14:22:72:7c:73
> em0:  Speed:N/A  Duplex:N/A
> pci1: <base peripheral, interrupt controller> at device 0.1 (no driver
> attached)
> pcib3: <ACPI PCI-PCI bridge> at device 0.2 on pci1
> pci3: <ACPI PCI bus> on pcib3
> em1: <Intel(R) PRO/1000 Network Connection, Version - 2.1.7> port
> 0xdcc0-0xdcff mem 0xdfbe0000-0xdfbfffff,0xd
> fb80000-0xdfbbffff irq 66 at device 7.0 on pci3
> em1: Ethernet address: 00:04:23:bd:79:0a
> em1:  Speed:N/A  Duplex:N/A
> em2: <Intel(R) PRO/1000 Network Connection, Version - 2.1.7> port
> 0xdc80-0xdcbf mem 0xdfbc0000-0xdfbdffff,0xd
> fb40000-0xdfb7ffff irq 67 at device 7.1 on pci3
> em2: Ethernet address: 00:04:23:bd:79:0b
> em2:  Speed:N/A  Duplex:N/A
> pci1: <base peripheral, interrupt controller> at device 0.3 (no driver
> attached)
> uhci0: <Intel 82801EB (ICH5) USB controller USB-A> port 0xbce0-0xbcff irq
> 16 at device 29.0 on pci0
> uhci0: [GIANT-LOCKED]
> usb0: <Intel 82801EB (ICH5) 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
> uhci1: <Intel 82801EB (ICH5) USB controller USB-B> port 0xbcc0-0xbcdf irq
> 19 at device 29.1 on pci0
> uhci1: [GIANT-LOCKED]
> usb1: <Intel 82801EB (ICH5) USB controller USB-B> on uhci1
> usb1: USB revision 1.0
> uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub1: 2 ports with 2 removable, self powered
> ehci0: <EHCI (generic) USB 2.0 controller> mem 0xdff00000-0xdff003ff irq
> 23 at device 29.7 on pci0
> ehci0: [GIANT-LOCKED]
> usb2: EHCI version 1.0
> usb2: companion controllers, 2 ports each: usb0 usb1
> usb2: <EHCI (generic) USB 2.0 controller> on ehci0
> usb2: USB revision 2.0
> uhub2: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
> uhub2: 4 ports with 4 removable, self powered
> pcib4: <ACPI PCI-PCI bridge> at device 30.0 on pci0
> pci4: <ACPI PCI bus> on pcib4
> em3: <Intel(R) PRO/1000 Network Connection, Version - 2.1.7> port
> 0xccc0-0xccff mem 0xdf7e0000-0xdf7fffff irq
>  20 at device 3.0 on pci4
> em3: Ethernet address: 00:14:22:72:7c:74
> em3:  Speed:N/A  Duplex:N/A
> pci4: <display, VGA> at device 13.0 (no driver attached)
> isab0: <PCI-ISA bridge> at device 31.0 on pci0
> isa0: <ISA bus> on isab0
> atapci0: <Intel ICH5 UDMA100 controller> port
> 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 31.
> 1 on pci0
> ata0: <ATA channel 0> on atapci0
> ata1: <ATA channel 1> on atapci0
> atapci1: <Intel ICH5 SATA150 controller> port
> 0xbcb8-0xbcbf,0xbcb0-0xbcb3,0xbca0-0xbca7,0xbc98-0xbc9b,0xbc80-
> 0xbc8f irq 18 at device 31.2 on pci0
> atapci1: failed to enable memory mapping!
> ata2: <ATA channel 0> on atapci1
> ata3: <ATA channel 1> on atapci1
> sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on
> acpi0
> sio0: type 16550A
> pmtimer0 on isa0
> orm0: <ISA Option ROMs> at iomem
> 0xc0000-0xcafff,0xcb000-0xcbfff,0xcc000-0xccfff,0xec000-0xeffff 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 not found.
> sc0: <System console> at flags 0x100 on isa0
> sc0: VGA <16 virtual consoles, flags=0x300>
> sio1: configured irq 3 not in bitmap of probed irqs 0
> sio1: port may not be enabled
> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
> Timecounters tick every 1.000 msec
> acd0: CDROM <HL-DT-ST GCR-8240N/1.06> at ata0-master UDMA33
> ad4: 152587MB <Maxtor 6Y160M0 YAR51HW0> at ata2-master SATA150
> SMP: AP CPU #1 Launched!
> Trying to mount root from ufs:/dev/ad4s1a
>
> A debug kernel and core file (45MB) are available to developers interested
> in investigating the problem. Mail me for access.
>
> Thanks,
> --
> Dominic Marks
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3178.195.12.22.194.1126271140.squirrel>