LOR when booting CURRENT (ip_divert.c, PFil hook read/write mutex)

Ganbold ganbold at micom.mng.net
Wed Mar 22 08:21:18 UTC 2006


When booting recent current I get LOR:

Mar 22 15:43:25 gw kernel: lock order reversal:
Mar 22 15:43:25 gw kernel: 1st 0xc23d5090 inp (divinp) @ 
Mar 22 15:43:25 gw kernel: 2nd 0xc07f21d8 PFil hook read/write mutex 
(PFil hook read/write mutex) @ /usr/src/sys/net/pfil.c:73
Mar 22 15:43:25 gw kernel: KDB: stack backtrace:
Mar 22 15:43:25 gw kernel: 
kdb_backtrace(0,ffffffff,c07b2018,c07b2388,c0779ea4) at kdb_backtrace+0x29
Mar 22 15:43:25 gw kernel: witness_checkorder(c07f21d8,1,c0710d56,49) at 
Mar 22 15:43:25 gw kernel: _rw_rlock(c07f21d8,c0710d56,49) at _rw_rlock+0x52
Mar 22 15:43:25 gw kernel: 
pfil_run_hooks(c07f21c0,cc8e6b28,c224b800,2,0) at pfil_run_hooks+0x2c
Mar 22 15:43:25 gw kernel: ip_output(c230f200,0,cc8e6af4,22,0) at 
Mar 22 15:43:25 gw kernel: 
div_output(c23cd000,c230f200,c226a170,0,cc8e6bb0) at div_output+0x185
Mar 22 15:43:25 gw kernel: div_send(c23cd000,0,c230f200,c226a170,0) at 
Mar 22 15:43:25 gw kernel: sosend(c23cd000,c226a170,cc8e6be4,c230f200,0) 
at sosend+0x3e5
Mar 22 15:43:25 gw kernel: kern_sendit(c224e000,3,cc8e6c64,0,0) at 
Mar 22 15:43:25 gw kernel: sendit(c224e000,3,cc8e6c64,0,bfbdec10) at 
Mar 22 15:43:25 gw kernel: sendto(c224e000,cc8e6d04,c2336000,c,c224e000) 
at sendto+0x4d
Mar 22 15:43:25 gw kernel: syscall(3b,3b,3b,2,60) at syscall+0x27e
Mar 22 15:43:25 gw kernel: Xint0x80_syscall() at Xint0x80_syscall+0x1f
Mar 22 15:43:25 gw kernel: --- syscall (133, FreeBSD ELF32, sendto), eip 
= 0x2812fa8f, esp = 0xbfbdeb1c, ebp = 0xbfbeebc8 ---

gw# uname -an
FreeBSD gw.micom.mng.net 7.0-CURRENT FreeBSD 7.0-CURRENT #2: Wed Mar 22 
14:48:22 ULAT 2006     tsgan at gw.micom.mng.net:/usr/obj/usr/src/sys/GW  i386

kernel config part:
options         ALTQ
options         ALTQ_CBQ        # Class Bases Queueing
options         ALTQ_RED        # Random Early Detection
options         ALTQ_RIO        # RED In/Out
options         ALTQ_HFSC       # Hierarchical Packet Scheduler
options         ALTQ_CDNR       # Traffic conditioner
options         ALTQ_PRIQ       # Priority Queueing
options         ALTQ_NOPCC      # Required if the TSC is unusable
options         ALTQ_DEBUG

options         NETGRAPH                # netgraph(4) system
options         NETGRAPH_ASYNC
options         NETGRAPH_BPF
options         NETGRAPH_BRIDGE
options         NETGRAPH_CISCO
options         NETGRAPH_DEVICE
options         NETGRAPH_ECHO
options         NETGRAPH_EIFACE
options         NETGRAPH_ETHER
options         NETGRAPH_FEC
options         NETGRAPH_FRAME_RELAY
options         NETGRAPH_HOLE
options         NETGRAPH_IFACE
options         NETGRAPH_IP_INPUT
options         NETGRAPH_IPFW
options         NETGRAPH_KSOCKET
options         NETGRAPH_L2TP
options         NETGRAPH_LMI
options         NETGRAPH_NETFLOW
options         NETGRAPH_ONE2MANY
options         NETGRAPH_PPPOE
options         NETGRAPH_PPTPGRE
options         NETGRAPH_RFC1490
options         NETGRAPH_SOCKET
options         NETGRAPH_SPLIT
options         NETGRAPH_TCPMSS
options         NETGRAPH_TEE
options         NETGRAPH_TTY
options         NETGRAPH_UI
options         NETGRAPH_VJC

options         TCP_DROP_SYNFIN         #drop TCP packets with SYN+FIN

options         DUMMYNET
device          gre                     #IP over IP tunneling
device          if_bridge               #Bridge interface
device          pf                      #PF OpenBSD packet-filter firewall
device          pflog                   #logging support interface for PF
device          pfsync                  #synchronization interface for PF
device          carp                    #Common Address Redundancy Protocol

options         IPFIREWALL              #firewall
options         IPFIREWALL_VERBOSE      #enable logging to syslogd(8)
options         IPFIREWALL_VERBOSE_LIMIT=100    #limit verbosity
options         IPFIREWALL_DEFAULT_TO_ACCEPT    #allow everything by default
options         IPFIREWALL_FORWARD      #packet destination changes
options         IPDIVERT                #divert sockets
options         IPSTEALTH               #support for stealth forwarding
options         TCPDEBUG
options         HZ=1000


More information about the freebsd-current mailing list