Three LOR in r264695

From: 小野寛生 <hiroo.ono+freebsd_at_gmail.com>
Date: Tue, 22 Apr 2014 23:38:31 +0900
I encountered three LOR in head r264695.

The 1st and 2nd are the same and it does not seem to be in
http://sources.zabbadoz.net/freebsd/lor.html ,
though similar LORs exist.
The 3rd seems to be LOR #276
did not look into further detail.

lock order reversal:
 1st 0xc6d3b7f8 ufs (ufs) _at_
/usr/local/poudriere/jails/head20140420/usr/src/sys/kern/vfs_subr.c:2101
 2nd 0xc5829838 bufwait (bufwait) _at_
/usr/local/poudriere/jails/head20140420/usr/src/sys/ufs/ffs/ffs_vnops.c:262
 3rd 0xc6bd3150 ufs (ufs) _at_
/usr/local/poudriere/jails/head20140420/usr/src/sys/kern/vfs_subr.c:2101
KDB: stack backtrace:
kdb_backtrace(c11684b4,c6082800,c119df21,c5d9acf8,c119db45,...) at
0xc0b1a620 = kdb_backtrace+0x30/frame 0xe8f6e7d4
witness_checkorder(c6082800,9,c119db45,11c,0,...) at 0xc0b36cf4 =
witness_checkorder+0xd04/frame 0xe8f6e820
_sx_xlock(c6082800,0,c119db45,11c,c667a000,...) at 0xc0ae84a5 =
_sx_xlock+0x75/frame 0xe8f6e850
ufsdirhash_add(c6a97c3c,e8f6e948,80c,e8f6e8d0,e8f6e8d4,...) at
0xc0d7f237 = ufsdirhash_add+0x37/frame 0xe8f6e880
ufs_direnter(c6aab8e0,c6c55b18,e8f6e948,e8f6eb64,c58cf5c0,...) at
0xc0d82144 = ufs_direnter+0x604/frame 0xe8f6e900
ufs_mkdir(e8f6ec00,c1410ba8,c6aab8e0,e8f6ebfc,12b,...) at 0xc0d8b0c2 =
ufs_mkdir+0x8c2/frame 0xe8f6ea9c
VOP_MKDIR_APV(c13fb850,e8f6ec00,e8f6eb64,e8f6eb90,28cd86b0,...) at
0xc101778e = VOP_MKDIR_APV+0xfe/frame 0xe8f6eac8
kern_mkdirat(c6a88000,ffffff9c,28cd86b0,0,1ff) at 0xc0ba05b8 =
kern_mkdirat+0x238/frame 0xe8f6ec24
sys_mkdir(c6a88000,e8f6ecc8,c608d064,0,c5f39314,...) at 0xc0ba02f1 =
sys_mkdir+0x31/frame 0xe8f6ec40
syscall(e8f6ed08) at 0xc0ff0a1c = syscall+0x30c/frame 0xe8f6ecfc
Xint0x80_syscall() at 0xc0fd8aa1 = Xint0x80_syscall+0x21/frame 0xe8f6ecfc
--- syscall (136, FreeBSD ELF32, sys_mkdir), eip = 0x286d2927, esp =
0xbfbfe4cc, ebp = 0xbfbfe4dc ---

lock order reversal:
 1st 0xc6d3b7f8 ufs (ufs) _at_
/usr/local/poudriere/jails/head20140420/usr/src/sys/kern/vfs_subr.c:2101
 2nd 0xc5829838 bufwait (bufwait) _at_
/usr/local/poudriere/jails/head20140420/usr/src/sys/ufs/ffs/ffs_vnops.c:262
 3rd 0xc6bd3150 ufs (ufs) _at_
/usr/local/poudriere/jails/head20140420/usr/src/sys/kern/vfs_subr.c:2101
KDB: stack backtrace:
db_trace_self_wrapper(c116454b,2f637273,2f737973,6e72656b,7366762f,...)
at 0xc05254ad = db_trace_self_wrapper+0x2d/frame 0xe6bfb3c0
kdb_backtrace(c11684cd,c6bd3150,c114e34a,c5d9ac90,c1172320,...) at
0xc0b1a620 = kdb_backtrace+0x30/frame 0xe6bfb424
witness_checkorder(c6bd3150,9,c1172320,835,c6bd3170,...) at 0xc0b36cf4
= witness_checkorder+0xd04/frame 0xe6bfb470
__lockmgr_args(c6bd3150,80100,c6bd3170,0,0,...) at 0xc0ac1c83 =
__lockmgr_args+0x8f3/frame 0xe6bfb550
ffs_lock(e6bfb5d0,c1488640,c5d79110,c5d7f978,c5d79110,...) at
0xc0d798f7 = ffs_lock+0x87/frame 0xe6bfb58c
VOP_LOCK1_APV(c13fb850,e6bfb5d0,104,1bb,c1410788,...) at 0xc101821a =
VOP_LOCK1_APV+0x10a/frame 0xe6bfb5b8
_vn_lock(c6bd311c,80100,c1172320,835,c11714ea,...) at 0xc0ba3b26 =
_vn_lock+0xa6/frame 0xe6bfb5f8
vget(c6bd311c,80100,c66b7c40,57,0,...) at 0xc0b91a14 = vget+0x74/frame
0xe6bfb630
vfs_hash_get(c665cd20,47618f,80000,c66b7c40,e6bfb730,...) at
0xc0b8544c = vfs_hash_get+0xfc/frame 0xe6bfb65c
ffs_vgetf(c665cd20,47618f,80000,e6bfb730,1,...) at 0xc0d742f4 =
ffs_vgetf+0x44/frame 0xe6bfb6b8
softdep_sync_buf(c6d3b7c4,c58297e0,1,0,0,...) at 0xc0d6b88f =
softdep_sync_buf+0xbdf/frame 0xe6bfb748
ffs_syncvnode(c6d3b7c4,1,0,0,c13fb850,...) at 0xc0d7a7bd =
ffs_syncvnode+0x2dd/frame 0xe6bfb7a0
ffs_fsync(e6bfb848,0,c665cd20,c7314e00,c6b52880,...) at 0xc0d79786 =
ffs_fsync+0x26/frame 0xe6bfb7c4
VOP_FSYNC_APV(c13fb850,e6bfb848,60000,0,477211,...) at 0xc101717e =
VOP_FSYNC_APV+0xfe/frame 0xe6bfb7f0
ufs_direnter(c6d3b7c4,c731c6a8,e6bfb8b8,e6bfbbcc,0,...) at 0xc0d8209e
= ufs_direnter+0x55e/frame 0xe6bfb870
ufs_makeinode(e6bfbbb8,e6bfbbcc) at 0xc0d8bdc4 =
ufs_makeinode+0x534/frame 0xe6bfb9f0
ufs_create(e6bfbad8,614,c665cd30,2,c665cd74,...) at 0xc0d8799f =
ufs_create+0x2f/frame 0xe6bfba04
VOP_CREATE_APV(c13fb850,e6bfbad8,e6bfbbcc,e6bfba68,c0acadb0,...) at
0xc101589e = VOP_CREATE_APV+0xfe/frame 0xe6bfba30
vn_open_cred(e6bfbb70,e6bfbbfc,1a4,0,c6626880,c66c18c0) at 0xc0ba3270
= vn_open_cred+0x2f0/frame 0xe6bfbb00
vn_open(e6bfbb70,e6bfbbfc,1a4,c66c18c0,28cba150,...) at 0xc0ba2f6d =
vn_open+0x3d/frame 0xe6bfbb28
kern_openat(c66b7c40,ffffff9c,28cba150,0,100a01,1a4) at 0xc0b9b300 =
kern_openat+0x310/frame 0xe6bfbc1c
sys_open(c66b7c40,e6bfbcc8,c608d064,0,db,...) at 0xc0b9af59 =
sys_open+0x39/frame 0xe6bfbc40
syscall(e6bfbd08) at 0xc0ff0a1c = syscall+0x30c/frame 0xe6bfbcfc
Xint0x80_syscall() at 0xc0fd8aa1 = Xint0x80_syscall+0x21/frame 0xe6bfbcfc
--- syscall (5, FreeBSD ELF32, sys_open), eip = 0x2841edc3, esp =
0xbfbfe9a0, ebp = 0xbfbfe9c8 ---

lock order reversal:
 1st 0xc82857f8 ufs (ufs) _at_
/usr/local/poudriere/jails/head20140420/usr/src/sys/kern/vfs_mount.c:851
 2nd 0xc9f12b4c devfs (devfs) _at_
/usr/local/poudriere/jails/head20140420/usr/src/sys/kern/vfs_subr.c:2101
KDB: stack backtrace:
db_trace_self_wrapper(c116454b,2f727375,2f637273,2f737973,6e72656b,...)
at 0xc05254ad = db_trace_self_wrapper+0x2d/frame 0xe8f98768
kdb_backtrace(c11684b4,c9f12b4c,c115a8c8,c5d9ab58,c1172320,...) at
0xc0b1a620 = kdb_backtrace+0x30/frame 0xe8f987cc
witness_checkorder(c9f12b4c,9,c1172320,835,c9f12b6c,...) at 0xc0b36cf4
= witness_checkorder+0xd04/frame 0xe8f98818
__lockmgr_args(c9f12b4c,80500,c9f12b6c,0,0,0,c1172320,835) at
0xc0ac1c83 = __lockmgr_args+0x8f3/frame 0xe8f988f4
vop_stdlock(e8f98968,c5d79110,c5d7bef8,c5d79110,c5d7bef8,...) at
0xc0b8155d = vop_stdlock+0x4d/frame 0xe8f98924
VOP_LOCK1_APV(c13c4b5c,e8f98968,0,0,c1410788,...) at 0xc101821a =
VOP_LOCK1_APV+0x10a/frame 0xe8f98950
_vn_lock(c9f12b18,80500,c1172320,835,c1145ac4,...) at 0xc0ba3b26 =
_vn_lock+0xa6/frame 0xe8f98990
vget(c9f12b18,80500,c6a86000,199,0,...) at 0xc0b91a14 =
vget+0x74/frame 0xe8f989c4
devfs_allocv(c5d77600,c665ca80,80000,e8f98a0c,c1725e84,...) at
0xc09c3a3c = devfs_allocv+0x10c/frame 0xe8f989f4
devfs_root(c665ca80,80000,e8f98bf8,35c,c665e640,...) at 0xc09c3472 =
devfs_root+0x52/frame 0xe8f98a18
vfs_donmount(c6a86000,0,0,c66a8700,c66a8700,...) at 0xc0b89892 =
vfs_donmount+0x1312/frame 0xe8f98c18
sys_nmount(c6a86000,e8f98cc8,c132613e,d5,d9fa9c80,...) at 0xc0b88558 =
sys_nmount+0x78/frame 0xe8f98c40
syscall(e8f98d08) at 0xc0ff0a1c = syscall+0x30c/frame 0xe8f98cfc
Xint0x80_syscall() at 0xc0fd8aa1 = Xint0x80_syscall+0x21/frame 0xe8f98cfc
--- syscall (378, FreeBSD ELF32, sys_nmount), eip = 0x280df61b, esp =
0xbfbfdcb0, ebp = 0xbfbfe208 ---
Received on Tue Apr 22 2014 - 12:38:32 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:48 UTC