LOR filedesc structure and Giant

Johan Karlsson johan at freebsd.org
Mon Jul 7 13:45:14 PDT 2003


I just got the following LOR with a kernel and world from today

lock order reversal
 1st 0xc49ce134 filedesc structure (filedesc structure) @ /home/k/FreeBSD-src/5-current/src/sys/kern/sys_generic.c:902
 2nd 0xc03149e0 Giant (Giant) @ /home/k/FreeBSD-src/5-current/src/sys/fs/specfs/spec_vnops.c:372
Stack backtrace:
backtrace(c02d42e0,c03149e0,c02d0996,c02d0996,c02cbf6c) at backtrace+0x17

witness_lock(c03149e0,8,c02cbf6c,174,c01881e0) at witness_lock+0x697
_mtx_lock_flags(c03149e0,0,c02cbf6c,174,c02d48f5) at _mtx_lock_flags+0xb1
spec_poll(e0f05af8,e0f05b18,c01f05fc,e0f05af8,c030b3e0) at spec_poll+0x104
spec_vnoperate(e0f05af8,c030b3e0,c413c6d8,40,c4951300) at spec_vnoperate+0x18
vn_poll(c4684440,40,c4951300,c4663be0,c4951300) at vn_poll+0x3c
selscan(c4663be0,e0f05b98,e0f05b88,7,4) at selscan+0x12e
kern_select(c4663be0,7,806b140,806b180,0) at kern_select+0x37f
select(c4663be0,e0f05d10,c02e692a,3fd,5) at select+0x66
syscall(2f,2f,2f,0,3) at syscall+0x26e
Xint0x80_syscall() at Xint0x80_syscall+0x1d
--- syscall (93), eip = 0x282bdbc3, esp = 0xbfbff3cc, ebp = 0xbfbff478 ---

Let me know if I can do anything to help with tracking this.
No local modifications to the source.

/Johan K

Johan Karlsson		mailto:johan at FreeBSD.org

More information about the freebsd-current mailing list