Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Feb 2018 23:18:45 -0600
From:      Jon Brawn <jon@brawn.org>
To:        FreeBSD current <freebsd-current@freebsd.org>
Subject:   lock order reversal
Message-ID:  <BE3A3E69-9C95-4F60-B3F6-1035183E4215@brawn.org>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Wotcha!

So, I’ve been using FreeBSD 12-CURRENT at various svn releases for a while now, and I get quite a few “lock order reversal” dumps. The one I’ve got on my screen at the moment is for ufs / bufwait / ufs:

root@brax:/usr/src/stand # lock order reversal:
 1st 0xfffffd0003ec17e8 ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2602
 2nd 0xffff0000410efa20 bufwait (bufwait) @ /usr/src/sys/ufs/ffs/ffs_vnops.c:282
 3rd 0xfffffd00b83ca7e8 ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2602
stack backtrace:
#0 0xffff0000003b59d4 at witness_debugger+0x64
#1 0xffff00000032bd34 at __lockmgr_args+0x6ac
#2 0xffff0000005c6af0 at ffs_lock+0x88
#3 0xffff000000679eb0 at VOP_LOCK1_APV+0xac
#4 0xffff000000426fa8 at _vn_lock+0x64
#5 0xffff000000417550 at vget+0x78
#6 0xffff000000409fdc at vfs_hash_get+0xec
#7 0xffff0000005c2b94 at ffs_vgetf+0x44
#8 0xffff0000005b96a8 at softdep_sync_buf+0x9f4
#9 0xffff0000005c7834 at ffs_syncvnode+0x26c
#10 0xffff0000005a1b5c at ffs_truncate+0x6b0
#11 0xffff0000005ce3cc at ufs_direnter+0x778
#12 0xffff0000005d64bc at ufs_makeinode+0x4b8
#13 0xffff0000005d2b90 at ufs_create+0x38
#14 0xffff000000677168 at VOP_CREATE_APV+0xac
#15 0xffff00000042691c at vn_open_cred+0x264
#16 0xffff00000041fc84 at kern_openat+0x208
#17 0xffff00000064b59c at do_el0_sync+0x8bc

Is there something I should be doing to help debug these?

Jon.
[-- Attachment #2 --]
0	*H
010	+0	*H
0%0
$sYԛy0
	*H
010	UGB10UGreater Manchester10USalford10U
COMODO CA Limited1=0;U4COMODO RSA Client Authentication and Secure Email CA0
171028000000Z
181028235959Z010	*H
	
jon@brawn.org0"0
	*H
0
,r	#\Gi7As 1bzE_(>dzh
[
jyg*?n>c!)&ۥY6]vVhR>1=֞Sxݳ]ˈ*p1k5%$ŗUia2:(M,}wi:h:/FN5k=Q_i0H^z8Y|eAY&.TѢJD##k! VǶrE00U#0la|=+qH^ċ0UX_`JX79"7VW0U0U00 U%0++10	`HB 0FU ?0=0;+10+0)+https://secure.comodo.net/CPS0ZUS0Q0OMKIhttp://crl.comodoca.com/COMODORSAClientAuthenticationandSecureEmailCA.crl0+0}0U+0Ihttp://crt.comodoca.com/COMODORSAClientAuthenticationandSecureEmailCA.crt0$+0http://ocsp.comodoca.com0U0
jon@brawn.org0
	*H
`YWqyTټE<JHT$?/ޟ4Zj;	2b%:!̢Oh-
^`l|Hz<]楌GTkp{}<zlvPt|@ɢo9zrC]
G/W=iDK>k`5H^|iT	ňhx?N
yra2~{O8AQur00Πj8;+kٸRV0
	*H
010	UGB10UGreater Manchester10USalford10U
COMODO CA Limited1+0)U"COMODO RSA Certification Authority0
130110000000Z
280109235959Z010	UGB10UGreater Manchester10USalford10U
COMODO CA Limited1=0;U4COMODO RSA Client Authentication and Secure Email CA0"0
	*H
0
W(vu@8v!P%yL}:X>1.4vلj=4HK hyt4z|e`'"2@rF5P3*UT+%4D5+
ZSu+­=7F_Zte
>)
94Fro8pNhFF#Ne6/M{UWֱmAYT"o)CI	m84$.zW4 r^M9,R$
<080U#0~=<8220Ula|=+qH^ċ0U0U00U 
00U 0LUE0C0A?=;http://crl.comodoca.com/COMODORSACertificationAuthority.crl0q+e0c0;+0/http://crt.comodoca.com/COMODORSAAddTrustCA.crt0$+0http://ocsp.comodoca.com0
	*H
x\(4O<_VΟV쏢kI/5@qB!fk&kn{hJd| q[Lǿᓬ?"@fCOݐrXurJH5;#68jle) )Y4’Nezyq{:kx%iچ:w#f6HLP~jo9KXnM#:!!69i\}^M;TSX7	̯3]Tc6O$voX*5!4.aKE8HIĹ7?Ar}r# R/h<סnuy<1	3mɔv#~&pvg' skMH#/ƨ$/uXqTu(|^-vM҆NKX7fA\X5sh2qP\YǟENRarpGtZp_"k7DdJVGz100010	UGB10UGreater Manchester10USalford10U
COMODO CA Limited1=0;U4COMODO RSA Client Authentication and Secure Email CA$sYԛy0	+0	*H
	1	*H
0	*H
	1
180226051846Z0#	*H
	1-[@O폄lQ´##0	+710010	UGB10UGreater Manchester10USalford10U
COMODO CA Limited1=0;U4COMODO RSA Client Authentication and Secure Email CA$sYԛy0*H
	1010	UGB10UGreater Manchester10USalford10U
COMODO CA Limited1=0;U4COMODO RSA Client Authentication and Secure Email CA$sYԛy0
	*H
bTSo%y*
ĄTJ]i/$P_?ݡYPPli~MX	%MzgeF>ֱ6-W8,dGhdsPf3!^*E!̉f)qE?J`VJ4>l&n{oc'qlYROADNAzB+EBa4Ep02&ȓX,+Y%F]Ÿ=2dž

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BE3A3E69-9C95-4F60-B3F6-1035183E4215>