lor in in.c and if_ural.c

From: Erik Winge <erik.winge_at_gmail.com>
Date: Mon, 19 Sep 2005 22:30:39 +0200
Hi,

I got this lock order reversal on 7.0-CURRENT today:

lock order reversal: (Giant after non-sleepable)
 1st 0xc06aaea0 in_multi_mtx (in_multi_mtx) _at_ /usr/src/sys/netinet/in.c:964
 2nd 0xc065dee0 Giant (Giant) _at_ /usr/src/sys/dev/usb/if_ural.c:1401
KDB: stack backtrace:
witness_checkorder(c065dee0,9,c0605e2e,579,7d1) at witness_checkorder+0x66d
_mtx_lock_flags(c065dee0,0,c0605e2e,579,0) at _mtx_lock_flags+0x54
ural_ioctl(c165e000,80206931,0,7d1,c) at ural_ioctl+0x48
if_addmulti(c165e000,d61deb04,d61deb00,3c4,c1680aa0) at if_addmulti+0x177
in_addmulti(d61deb48,c165e000,1,c0611a7a,c1878bc8) at in_addmulti+0x66
in_ifinit(c18765d0,0,0,0,d61deb98) at in_ifinit+0x5cd
in_control(c17ed6f4,8040691a,c18765c0,c165e000,c1873000) at in_control+0xf4b
ifioctl(c17ed6f4,8040691a,c18765c0,c1873000,2) at ifioctl+0x12d
soo_ioctl(c1789678,8040691a,c18765c0,c154dc80,c1873000) at soo_ioctl+0x2cb
ioctl(c1873000,d61ded04,c,424,3) at ioctl+0x118
syscall(3b,3b,3b,8057f60,0) at syscall+0x134
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (54, FreeBSD ELF32, ioctl), eip = 0x281434a7, esp =
0xbfbfe5bc, ebp = 0xbfbfee28 ---

Looks related to http://sources.zabbadoz.net/freebsd/lor.html#157, but
with a different driver?

Regards,
Erik Winge
Received on Mon Sep 19 2005 - 18:30:40 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:43 UTC