Lock order reversal in 5.2-CURRENT

Bjoern A. Zeeb bzeeb-lists at lists.zabbadoz.net
Wed Aug 11 07:05:09 PDT 2004

On Wed, 11 Aug 2004, Terrence Koeman wrote:

> lock order reversal
>  1st 0xc0645aa0 sched lock (sched lock) @
> /usr/src/sys/kern/subr_sleepqueue.c:623
>  2nd 0xc06486ec sleepq chain (sleepq chain) @
> /usr/src/sys/kern/subr_sleepqueue.c:223
> KDB: stack backtrace:
> kdb_backtrace(c05fe96f,c06486ec,c05fdc8a,c05fdc8a,c05fdc97) at
> kdb_backtrace+0x2e
> witness_checkorder(c06486ec,9,c05fdc97,df,67e) at witness_checkorder+0x6a6
> _mtx_lock_spin_flags(c06486ec,0,c05fdc97,df,0) at _mtx_lock_spin_flags+0x8d
> sleepq_lookup(c0641d80,c05fe5e3,687,c0645aa0,d3bbc9ec) at sleepq_lookup+0x57
> sleepq_broadcast(c0641d80,0,ffffffff,d3bbca14,c04b4152) at
> sleepq_broadcast+0x31
> wakeup(c0641d80,1,c05fbc09,179,c1a632c0) at wakeup+0x21

for the archives: looks quite similar to
so I added it there. It got patched in the other place.

Bjoern A. Zeeb				bzeeb at Zabbadoz dot NeT

More information about the freebsd-current mailing list