kern/71422: LOR in sys/net/bpf

Michael Haro mharo at
Mon Sep 6 02:40:25 PDT 2004

>Number:         71422
>Category:       kern
>Synopsis:       LOR in sys/net/bpf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 06 09:40:24 GMT 2004
>Originator:     Michael Haro
>Release:        FreeBSD 5.3-BETA3 i386
System: FreeBSD ****.**** 5.3-BETA3 FreeBSD 5.3-BETA3 #0: Sat Sep  4 16:43:17 PDT 2004     root@****.****


When I boot my 5.3-BETA3 (RELENG_5 as of yesterday) system and start kismet
dmesg shows the following:

lock order reversal
 1st 0xc1701ad8 bpf interface lock (bpf interface lock) @ /usr/src/sys/net/bpf.c:1273
 2nd 0xc191ab64 bpf0 (bpf cdev lock) @ /usr/src/sys/net/bpf.c:1277
KDB: stack backtrace:
kdb_backtrace(0,ffffffff,c08bddc8,c08bd558,c084c8bc) at kdb_backtrace+0x29
witness_checkorder(c191ab64,9,c07f9506,4fd) at witness_checkorder+0x544
_mtx_lock_flags(c191ab64,0,c07f9506,4fd,c16d0200) at _mtx_lock_flags+0x5b
bpf_mtap2(c1701ac0,c1713020,10,c16d0200) at bpf_mtap2+0x8c
wi_rx_intr(c1711000) at wi_rx_intr+0x432
wi_intr(c1711000) at wi_intr+0x143
pccard_intr(c1705e00,c1701c00,cbd0cd1c,c05ed790,c15f4440) at pccard_intr+0x60
cbb_func_intr(c15f4440) at cbb_func_intr+0x45
ithread_loop(c150c400,cbd0cd48,c150c400,c05ed66c,0) at ithread_loop+0x124
fork_exit(c05ed66c,c150c400,cbd0cd48) at fork_exit+0xa4
fork_trampoline() at fork_trampoline+0x8
--- trap 0x1, eip = 0, esp = 0xcbd0cd7c, ebp = 0 ---

I've not done anything special with any tunable variables or anything.
Let me know if you'd like more information as I'm not really sure what to report.


If I reboot and start kismet it happens again.


Not sure, but willing to test patches.

More information about the freebsd-bugs mailing list