ipfw uid regression

Stefan Ehmann shoesoft at gmx.net
Sat Sep 13 18:57:19 UTC 2008

I've updated from 7.0 to RELENG_7 today.

ipfw uid rules have caused problems in the past with PREEMPTION enabled. 
This was fixed in 7.0, at least for me.

In RELENG_7 the old problems are back: Total freeze within some 
seconds/minutes after the first network access.

With WITNESS I get a LOR, see at the end of dmesg.

Copyright (c) 1992-2008 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.1-PRERELEASE #58: Sat Sep 13 19:38:47 CEST 2008
    stefan at taxman.pepperland:/usr/obj/usr/src/sys/TAXMAN
WARNING: WITNESS option enabled, expect reduced performance.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(TM) XP 2700+ (2166.44-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x681  Stepping = 1
  AMD Features=0xc0400800<SYSCALL,MMX+,3DNow!+,3DNow!>
real memory  = 1073725440 (1023 MB)
avail memory = 1032847360 (985 MB)
ACPI APIC Table: <ASUS   A7V8X-X >
ioapic0: Changing APIC ID to 2
ioapic0 <Version 0.3> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <ASUS A7V8X-X> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, 3ff00000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <32-bit timer at 3.579545MHz> port 0xe408-0xe40b 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 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
vgapci0: <VGA-compatible display> mem 
0xd7000000-0xd7ffffff,0xe0000000-0xefffffff,0xd6000000-0xd6ffffff irq 16 at device 0.0 
on pci1
nvidia0: <GeForce 6200> on vgapci0
vgapci0: child nvidia0 requested pci_enable_busmaster
vgapci0: child nvidia0 requested pci_enable_io
nvidia0: [GIANT-LOCKED]
nvidia0: [ITHREAD]
pcm0: <Envy24 audio (M Audio Audiophile 2496)> port 
0xd800-0xd81f,0xd400-0xd40f,0xd000-0xd00f,0xb800-0xb83f irq 16 at device 13.0 
on pci0
pcm0: [ITHREAD]
pcm0: system configuration
  SubVendorID: 0x1412, SubDeviceID: 0xd634
  XIN2 Clock Source: 22.5792MHz(44.1kHz*512)
  MPU-401 UART(s) #: 1
  AC'97 codec: not exist
  ADC #: 1
  DAC #: 1
  Multi-track converter type: I2S(96KHz support, 24bit resolution, ID#0x2)
  S/PDIF(IN/OUT): 1/1 ID# 0x00
  GPIO(mask/dir/state): 0x04/0xfb/0xfe
pci0: <multimedia, video> at device 15.0 (no driver attached)
uhci0: <VIA 83C572 USB controller> port 0xb400-0xb41f at device 16.0 on pci0
uhci0: [ITHREAD]
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xb000-0xb01f at device 16.1 on pci0
uhci1: [ITHREAD]
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
uhub1: 2 ports with 2 removable, self powered
uhci2: <VIA 83C572 USB controller> port 0xa800-0xa81f at device 16.2 on pci0
uhci2: [ITHREAD]
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub2: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb2
uhub2: 2 ports with 2 removable, self powered
ehci0: <VIA VT6202 USB 2.0 controller> mem 0xd5800000-0xd58000ff at device 16.3 
on pci0
ehci0: [ITHREAD]
usb3: EHCI version 1.0
usb3: companion controllers, 2 ports each: usb0 usb1 usb2
usb3: <VIA VT6202 USB 2.0 controller> on ehci0
usb3: USB revision 2.0
uhub3: <VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb3
uhub3: 6 ports with 6 removable, self powered
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 8235 UDMA133 controller> port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xa400-0xa40f at device 17.1 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xa000-0xa0ff mem 
0xd5000000-0xd50000ff at device 18.0 on pci0
vr0: Quirks: 0x0
vr0: Revision: 0x74
miibus0: <MII bus> on vr0
rlphy0: <RTL8201L 10/100 media interface> PHY 1 on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: 00:0e:a6:40:3f:d0
vr0: [ITHREAD]
cpu0: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
fdc0: <floppy drive controller> port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FILTER]
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio0: [FILTER]
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xd0000-0xd5fff pnpid ORM0000 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
ppbus0: <Parallel port bus> on ppc0
ppbus0: [ITHREAD]
plip0: <PLIP network interface> on ppbus0
plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ppc0: [ITHREAD]
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
ums0: <Microsoft Microsoft 3-Button Mouse with IntelliEye(TM), class 0/0, rev 
1.10/3.00, addr 2> on uhub0
ums0: 3 buttons and Z dir.
Timecounter "TSC" frequency 2166438045 Hz quality 800
Timecounters tick every 1.000 msec
ipfw2 (+ipv6) initialized, divert loadable, nat loadable, rule-based 
forwarding disabled, default to deny, logging disabled
ad0: 305245MB <SAMSUNG HD320LD BQ100-14> at ata0-master UDMA100
acd0: DVDROM <@LEP HB @D \^R/\^B0> at ata1-master UDMA33
acd1: DVDR <PLEXTOR DVDR PX-712A/1.08> at ata1-slave UDMA33
WARNING: WITNESS option enabled, expect reduced performance.
GEOM_LABEL: Label for provider acd0 is iso9660/K3b data project.
Trying to mount root from ufs:/dev/ad0s1a
lock order reversal:
 1st 0xc0a338cc IPFW static rules (IPFW static rules) @ 
 2nd 0xc08c1a4c tcp (tcp) @ 
KDB: stack backtrace:
db_trace_self_wrapper(c07e5ba8,e48b2770,c05a6ede,c07e80cd,c08c1a4c,...) at 
kdb_backtrace(c07e80cd,c08c1a4c,c07e817e,c07e817e,c0a31b2d,...) at 
witness_checkorder(c08c1a4c,1,c0a31b2d,7e0,c0a2c8e3,...) at 
_rw_rlock(c08c1a4c,c0a31b2d,7e0,0,0,...) at _rw_rlock+0x8e
ipfw_chk(e48b2abc,41ec0d7e,0,0,c4777100,...) at ipfw_chk+0x35a4
ipfw_check_in(0,e48b2bc0,c453c400,1,0,...) at ipfw_check_in+0xd7
pfil_run_hooks(c08c0d00,e48b2c14,c453c400,1,0,...) at pfil_run_hooks+0x88
ip_input(c4777100,14e,800,c453c400,800,...) at ip_input+0x24d
netisr_dispatch(2,c4777100,10,3,0,...) at netisr_dispatch+0x73
ether_demux(c453c400,c4777100,3,0,3,...) at ether_demux+0x1f1
ether_input(c453c400,c4777100,c09b95e3,585,e48b2cc0,...) at ether_input+0x37f
vr_intr(c453e000,0,c07df398,4b6,c437e3e8,...) at vr_intr+0x370
ithread_loop(c455b8d0,e48b2d38,c07df0fd,31c,c455d828,...) at 
fork_exit(c054c050,c455b8d0,e48b2d38) at fork_exit+0xb8
fork_trampoline() at fork_trampoline+0x8
--- trap 0, eip = 0, esp = 0xe48b2d70, ebp = 0 ---

More information about the freebsd-stable mailing list