Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Sep 2013 05:00:01 GMT
From:      J B <jb.1234abcd@gmail.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/182139: lock order reversal
Message-ID:  <201309160500.r8G501Pv002014@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/182139; it has been noted by GNATS.

From: J B <jb.1234abcd@gmail.com>
To: bug-followup@FreeBSD.org, jb.1234abcd@gmail.com
Cc:  
Subject: Re: kern/182139: lock order reversal
Date: Mon, 16 Sep 2013 06:50:08 +0200

 --f46d0438eb6d4a888e04e678f0c5
 Content-Type: text/plain; charset=ISO-8859-1
 
 I got similar errors, I assume after umount.
 # mount -t ext2fs /dev/ada0s6 /mnt/
 # umount /mnt
 # cat /var/log/messages
 ...
 Sep 16 06:35:41 localhost kernel: lock order reversal:
 Sep 16 06:35:41 localhost kernel: 1st 0xc8077d84 ufs (ufs) @
 /usr/src/sys/kern/vfs_mount.c:1237
 Sep 16 06:35:41 localhost kernel: 2nd 0xc8077a30 syncer (syncer) @
 /usr/src/sys/kern/vfs_subr.c:2210
 Sep 16 06:35:41 localhost kernel: KDB: stack backtrace:
 Sep 16 06:35:41 localhost kernel:
 db_trace_self_wrapper(c117e5e0,7fffff00,0,ac,0,...) at
 db_trace_self_wrapper+0x2d/frame 0xf0
 b518a0
 Sep 16 06:35:41 localhost kernel:
 kdb_backtrace(c118211d,c8077a30,c118bdc2,c69979b8,c118b751,...) at
 kdb_backtrace+0x30/frame
 0xf0b51908
 Sep 16 06:35:41 localhost kernel:
 witness_checkorder(c8077a30,9,c118b751,8a2,c8077a50,...) at
 witness_checkorder+0xc8a/frame 0
 xf0b51958
 Sep 16 06:35:41 localhost kernel:
 __lockmgr_args(c8077a30,80100,c8077a50,0,0,0,c118b751,8a2) at
 __lockmgr_args+0x83f/frame 0xf
 0b51a2c
 Sep 16 06:35:41 localhost kernel:
 vop_stdlock(f0b51aa0,246,c143bf54,c143bf6c,c143bf58,...) at
 vop_stdlock+0x4d/frame 0xf0b51a5c
 Sep 16 06:35:41 localhost kernel:
 VOP_LOCK1_APV(c128a948,f0b51aa0,c0aac8c9,c8077a50,c12baff8,...) at
 VOP_LOCK1_APV+0x104/frame 0xf0b51a88
 Sep 16 06:35:41 localhost kernel:
 _vn_lock(c80779fc,80100,c118b751,8a2,c8077a60,...) at _vn_lock+0xa1/frame
 0xf0b51ac8
 Sep 16 06:35:41 localhost kernel:
 vputx(c80b42a0,0,c118ad5b,518,c1280cc8,...) at vputx+0x219/frame 0xf0b51b10
 Sep 16 06:35:41 localhost kernel:
 dounmount(c80b42a0,8000000,c7fc3930,494,c0f50777,...) at
 dounmount+0x3d1/frame 0xf0b51b70
 Sep 16 06:35:41 localhost kernel:
 sys_unmount(c7fc3930,f0b51cc8,14,c117c645,7b3,...) at
 sys_unmount+0x3a1/frame 0xf0b51c40
 Sep 16 06:35:41 localhost kernel: syscall(f0b51d08) at syscall+0x2de/frame
 0xf0b51cfc
 Sep 16 06:35:41 localhost kernel: Xint0x80_syscall() at
 Xint0x80_syscall+0x21/frame 0xf0b51cfc
 Sep 16 06:35:41 localhost kernel: --- syscall (22, FreeBSD ELF32,
 sys_unmount), eip = 0x280c826b, esp = 0xbfbfd284, ebp = 0xbfbfd350 ---
 Sep 16 06:35:41 localhost kernel: lock order reversal:
 Sep 16 06:35:41 localhost kernel: 1st 0xc8077d84 ufs (ufs) @
 /usr/src/sys/kern/vfs_mount.c:1237
 Sep 16 06:35:41 localhost kernel: 2nd 0xc757f4a4 devfs (devfs) @
 /usr/src/sys/modules/ext2fs/../../fs/ext2fs/ext2_vfsops.c:872
 Sep 16 06:35:41 localhost kernel: KDB: stack backtrace:
 Sep 16 06:35:41 localhost kernel:
 db_trace_self_wrapper(c117e5e0,7478652f,2f736632,32747865,7366765f,...) at
 db_trace_self_wrapper+0x2d/frame 0xf0b51888
 Sep 16 06:35:41 localhost kernel:
 kdb_backtrace(c118211d,c757f4a4,c11751ac,c69977b0,c80aadb3,...) at
 kdb_backtrace+0x30/frame 0xf0b518f0
 Sep 16 06:35:41 localhost kernel:
 witness_checkorder(c757f4a4,9,c80aadb3,368,0,...) at
 witness_checkorder+0xc8a/frame 0xf0b51940
 Sep 16 06:35:41 localhost kernel:
 __lockmgr_args(c757f4a4,80400,c757f4c4,0,0,0,c80aadb3,368) at
 __lockmgr_args+0x83f/frame 0xf0b51a14
 Sep 16 06:35:41 localhost kernel:
 vop_stdlock(f0b51a88,c118b751,0,f0b51ae4,c80b42b0,...) at
 vop_stdlock+0x4d/frame 0xf0b51a44
 Sep 16 06:35:41 localhost kernel:
 VOP_LOCK1_APV(c1270d7c,f0b51a88,c80b42a0,f0b51ae4,c12baff8,...) at
 VOP_LOCK1_APV+0x104/frame 0xf0b51a70
 Sep 16 06:35:41 localhost kernel:
 _vn_lock(c757f470,80400,c80aadb3,368,f0b51b10,...) at _vn_lock+0xa1/frame
 0xf0b51ab0
 Sep 16 06:35:41 localhost kernel:
 ext2_sync(c80b42a0,1,c118ad5b,518,c1280cc8,...) at ext2_sync+0x233/frame
 0xf0b51b10
 Sep 16 06:35:41 localhost kernel:
 dounmount(c80b42a0,8000000,c7fc3930,494,c0f50777,...) at
 dounmount+0x49c/frame 0xf0b51b70
 Sep 16 06:35:41 localhost kernel:
 sys_unmount(c7fc3930,f0b51cc8,14,c117c645,7b3,...) at
 sys_unmount+0x3a1/frame 0xf0b51c40
 Sep 16 06:35:41 localhost kernel: syscall(f0b51d08) at syscall+0x2de/frame
 0xf0b51cfc
 Sep 16 06:35:41 localhost kernel: Xint0x80_syscall() at
 Xint0x80_syscall+0x21/frame 0xf0b51cfc
 Sep 16 06:35:41 localhost kernel: --- syscall (22, FreeBSD ELF32,
 sys_unmount), eip = 0x280c826b, esp = 0xbfbfd284, ebp = 0xbfbfd350 ---
 
 --f46d0438eb6d4a888e04e678f0c5
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 <div dir=3D"ltr"><div>I got similar errors, I assume after umount.<br># mou=
 nt -t ext2fs /dev/ada0s6 /mnt/<br># umount /mnt<br></div># cat /var/log/mes=
 sages<br>...<br>Sep 16 06:35:41 localhost kernel: lock order reversal:<br>
 Sep 16 06:35:41 localhost kernel: 1st 0xc8077d84 ufs (ufs) @ /usr/src/sys/k=
 ern/vfs_mount.c:1237<br>Sep 16 06:35:41 localhost kernel: 2nd 0xc8077a30 sy=
 ncer (syncer) @ /usr/src/sys/kern/vfs_subr.c:2210<br>Sep 16 06:35:41 localh=
 ost kernel: KDB: stack backtrace:<br>
 Sep 16 06:35:41 localhost kernel: db_trace_self_wrapper(c117e5e0,7fffff00,0=
 ,ac,0,...) at db_trace_self_wrapper+0x2d/frame 0xf0<br>b518a0<br>Sep 16 06:=
 35:41 localhost kernel: kdb_backtrace(c118211d,c8077a30,c118bdc2,c69979b8,c=
 118b751,...) at kdb_backtrace+0x30/frame <br>
 0xf0b51908<br>Sep 16 06:35:41 localhost kernel: witness_checkorder(c8077a30=
 ,9,c118b751,8a2,c8077a50,...) at witness_checkorder+0xc8a/frame 0<br>xf0b51=
 958<br>Sep 16 06:35:41 localhost kernel: __lockmgr_args(c8077a30,80100,c807=
 7a50,0,0,0,c118b751,8a2) at __lockmgr_args+0x83f/frame 0xf<br>
 0b51a2c<br>Sep 16 06:35:41 localhost kernel: vop_stdlock(f0b51aa0,246,c143b=
 f54,c143bf6c,c143bf58,...) at vop_stdlock+0x4d/frame 0xf0b51a5c<br>Sep 16 0=
 6:35:41 localhost kernel: VOP_LOCK1_APV(c128a948,f0b51aa0,c0aac8c9,c8077a50=
 ,c12baff8,...) at VOP_LOCK1_APV+0x104/frame 0xf0b51a88<br>
 Sep 16 06:35:41 localhost kernel: _vn_lock(c80779fc,80100,c118b751,8a2,c807=
 7a60,...) at _vn_lock+0xa1/frame 0xf0b51ac8<br>Sep 16 06:35:41 localhost ke=
 rnel: vputx(c80b42a0,0,c118ad5b,518,c1280cc8,...) at vputx+0x219/frame 0xf0=
 b51b10<br>
 Sep 16 06:35:41 localhost kernel: dounmount(c80b42a0,8000000,c7fc3930,494,c=
 0f50777,...) at dounmount+0x3d1/frame 0xf0b51b70<br>Sep 16 06:35:41 localho=
 st kernel: sys_unmount(c7fc3930,f0b51cc8,14,c117c645,7b3,...) at sys_unmoun=
 t+0x3a1/frame 0xf0b51c40<br>
 Sep 16 06:35:41 localhost kernel: syscall(f0b51d08) at syscall+0x2de/frame =
 0xf0b51cfc<br>Sep 16 06:35:41 localhost kernel: Xint0x80_syscall() at Xint0=
 x80_syscall+0x21/frame 0xf0b51cfc<br>Sep 16 06:35:41 localhost kernel: --- =
 syscall (22, FreeBSD ELF32, sys_unmount), eip =3D 0x280c826b, esp =3D 0xbfb=
 fd284, ebp =3D 0xbfbfd350 ---<br>
 Sep 16 06:35:41 localhost kernel: lock order reversal:<br>Sep 16 06:35:41 l=
 ocalhost kernel: 1st 0xc8077d84 ufs (ufs) @ /usr/src/sys/kern/vfs_mount.c:1=
 237<br>Sep 16 06:35:41 localhost kernel: 2nd 0xc757f4a4 devfs (devfs) @ /us=
 r/src/sys/modules/ext2fs/../../fs/ext2fs/ext2_vfsops.c:872<br>
 Sep 16 06:35:41 localhost kernel: KDB: stack backtrace:<br>Sep 16 06:35:41 =
 localhost kernel: db_trace_self_wrapper(c117e5e0,7478652f,2f736632,32747865=
 ,7366765f,...) at db_trace_self_wrapper+0x2d/frame 0xf0b51888<br>Sep 16 06:=
 35:41 localhost kernel: kdb_backtrace(c118211d,c757f4a4,c11751ac,c69977b0,c=
 80aadb3,...) at kdb_backtrace+0x30/frame 0xf0b518f0<br>
 Sep 16 06:35:41 localhost kernel: witness_checkorder(c757f4a4,9,c80aadb3,36=
 8,0,...) at witness_checkorder+0xc8a/frame 0xf0b51940<br>Sep 16 06:35:41 lo=
 calhost kernel: __lockmgr_args(c757f4a4,80400,c757f4c4,0,0,0,c80aadb3,368) =
 at __lockmgr_args+0x83f/frame 0xf0b51a14<br>
 Sep 16 06:35:41 localhost kernel: vop_stdlock(f0b51a88,c118b751,0,f0b51ae4,=
 c80b42b0,...) at vop_stdlock+0x4d/frame 0xf0b51a44<br>Sep 16 06:35:41 local=
 host kernel: VOP_LOCK1_APV(c1270d7c,f0b51a88,c80b42a0,f0b51ae4,c12baff8,...=
 ) at VOP_LOCK1_APV+0x104/frame 0xf0b51a70<br>
 Sep 16 06:35:41 localhost kernel: _vn_lock(c757f470,80400,c80aadb3,368,f0b5=
 1b10,...) at _vn_lock+0xa1/frame 0xf0b51ab0<br>Sep 16 06:35:41 localhost ke=
 rnel: ext2_sync(c80b42a0,1,c118ad5b,518,c1280cc8,...) at ext2_sync+0x233/fr=
 ame 0xf0b51b10<br>
 Sep 16 06:35:41 localhost kernel: dounmount(c80b42a0,8000000,c7fc3930,494,c=
 0f50777,...) at dounmount+0x49c/frame 0xf0b51b70<br>Sep 16 06:35:41 localho=
 st kernel: sys_unmount(c7fc3930,f0b51cc8,14,c117c645,7b3,...) at sys_unmoun=
 t+0x3a1/frame 0xf0b51c40<br>
 Sep 16 06:35:41 localhost kernel: syscall(f0b51d08) at syscall+0x2de/frame =
 0xf0b51cfc<br>Sep 16 06:35:41 localhost kernel: Xint0x80_syscall() at Xint0=
 x80_syscall+0x21/frame 0xf0b51cfc<br>Sep 16 06:35:41 localhost kernel: --- =
 syscall (22, FreeBSD ELF32, sys_unmount), eip =3D 0x280c826b, esp =3D 0xbfb=
 fd284, ebp =3D 0xbfbfd350 ---<br>
 <br></div>
 
 --f46d0438eb6d4a888e04e678f0c5--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309160500.r8G501Pv002014>