Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 May 2015 21:13:10 +0530
From:      Pratik Singhal <ps06756@gmail.com>
To:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Lock order traversal while running ~head on cubieboard
Message-ID:  <CAGf2gkOmszGdNnZbgvGqqhBiopVrs2051rAy_MjRoxAqvFwQ2g@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I am getting the following lock order traversal error on running ~head on
cubieboard

All buffers synced.
lock order reversal:
 1st 0xc3e54b74 ufs (ufs) @
/root/pratiksinghal/cubie-head/sys/kern/vfs_mount.c:1229
 2nd 0xc3e55154 devfs (devfs) @
/root/pratiksinghal/cubie-head/sys/kern/vfs_subr.c:2176
KDB: stack backtrace:
lock order reversal: (sleepable after non-sleepable)
 1st 0xc3e55174 vnode interlock (vnode interlock) @
/root/pratiksinghal/cubie-head/sys/fs/devfs/devfs_vnops.c:434
 2nd 0xc0706d50 kernel linker (kernel linker) @
/root/pratiksinghal/cubie-head/sys/kern/kern_linker.c:552
KDB: stack backtrace:
db_trace_self() at db_trace_self
 pc = 0xc05c2aa8  lr = 0xc0234b2c (db_fetch_ksymtab+0x16c)
 sp = 0xd84c67b0  fp = 0xd84c68c8
r10 = 0xc06136e6
db_fetch_ksymtab() at db_fetch_ksymtab+0x16c
 pc = 0xc0234b2c  lr = 0xc03c18a0 (witness_checkorder+0xf0c)
 sp = 0xd84c68d0  fp = 0xd84c6918
 r4 = 0xc0619e8f  r5 = 0xc0706d50
 r6 = 0xc0619a85  r7 = 0xc06136e6
witness_checkorder() at witness_checkorder+0xf0c
 pc = 0xc03c18a0  lr = 0xc036f7ec (_sx_xlock+0x80)
 sp = 0xd84c6920  fp = 0xd84c6950
 r4 = 0x00000228  r5 = 0xc0619a85
 r6 = 0xc0706d60  r7 = 0xc0706d50
 r8 = 0x00000000  r9 = 0xc064cb88
r10 = 0xc06136e6
_sx_xlock() at _sx_xlock+0x80
 pc = 0xc036f7ec  lr = 0xc0346354 (linker_file_foreach+0x34)
 sp = 0xd84c6958  fp = 0xd84c6970
 r4 = 0xc0706d30  r5 = 0xd84c6978
 r6 = 0xc05d9eb0  r7 = 0xc05c2aa8
 r8 = 0xc0706d50 r10 = 0xc06136e6
linker_file_foreach() at linker_file_foreach+0x34
 pc = 0xc0346354  lr = 0xc05d9acc (unwind_stack_one+0x5c)
 sp = 0xd84c6978  fp = 0xd84c69a0
 r4 = 0xd84c69e0  r5 = 0xd84c6978
 r6 = 0x00000000  r7 = 0xc05c2aa8
 r8 = 0xc06becfc r10 = 0xc06136e6
unwind_stack_one() at unwind_stack_one+0x5c
 pc = 0xc05d9acc  lr = 0xc05c2940 (db_trace_thread+0xac)
 sp = 0xd84c69a8  fp = 0xd84c69d8
 r4 = 0xd84c69e0  r5 = 0xc062e9ce
 r6 = 0x00000000  r7 = 0xc061e377
 r8 = 0xc3e54b74  r9 = 0xc064cb88
r10 = 0xc06136e6
db_trace_thread() at db_trace_thread+0xac
 pc = 0xc05c2940  lr = 0xc05c2ad8 (db_trace_self+0x30)
 sp = 0xd84c69e0  fp = 0xd84c6a38
 r4 = 0x00000000  r5 = 0xd84c6a44
 r6 = 0xc062eb02  r7 = 0xc06136e6
 r8 = 0xc3e54b74  r9 = 0xc0747ee4
r10 = 0xc06136e6
db_trace_self() at db_trace_self+0x30
 pc = 0xc05c2ad8  lr = 0xc0234b2c (db_fetch_ksymtab+0x16c)
 sp = 0xd84c6a40  fp = 0xd84c6b58
r10 = 0xc06136e6
db_fetch_ksymtab() at db_fetch_ksymtab+0x16c
 pc = 0xc0234b2c  lr = 0xc03c18a0 (witness_checkorder+0xf0c)
 sp = 0xd84c6b60  fp = 0xd84c6ba8
 r4 = 0xc0619583  r5 = 0xc3e55154
 r6 = 0xc062eb02  r7 = 0xc06136e6
witness_checkorder() at witness_checkorder+0xf0c
 pc = 0xc03c18a0  lr = 0xc0349ef0 (__lockmgr_args+0x82c)
 sp = 0xd84c6bb0  fp = 0xd84c6c18
 r4 = 0xc062eb02  r5 = 0xc0619583
 r6 = 0x00080500  r7 = 0x00000100
 r8 = 0xc3e55154  r9 = 0xc3f31660
r10 = 0x00080000
__lockmgr_args() at __lockmgr_args+0x82c
 pc = 0xc0349ef0  lr = 0xc04052e0 (vop_stdlock+0x3c)
 sp = 0xd84c6c20  fp = 0xd84c6c30
 r4 = 0xd84c6c50  r5 = 0xc06e3938
 r6 = 0x00000000  r7 = 0x00080500
 r8 = 0xd84c6c50  r9 = 0x00000880
r10 = 0xc060ca74
vop_stdlock() at vop_stdlock+0x3c
 pc = 0xc04052e0  lr = 0xc05e62c8 (VOP_LOCK1_APV+0xe8)
 sp = 0xd84c6c38  fp = 0xd84c6c48
VOP_LOCK1_APV() at VOP_LOCK1_APV+0xe8
 pc = 0xc05e62c8  lr = 0xc04236b4 (_vn_lock+0x48)
 sp = 0xd84c6c50  fp = 0xd84c6c80
 r4 = 0xc3e55120  r5 = 0xc3d34bc0
 r6 = 0xc062eb02 r10 = 0xc060ca74
_vn_lock() at _vn_lock+0x48
 pc = 0xc04236b4  lr = 0xc0414394 (vget+0x60)
 sp = 0xd84c6c88  fp = 0xd84c6ca8
 r4 = 0xc3e55120  r5 = 0xc3d34bc0
 r6 = 0x00080500  r7 = 0xc3d34bd4
 r8 = 0xc3f31660  r9 = 0x00080500
r10 = 0xc060ca74
vget() at vget+0x60
 pc = 0xc0414394  lr = 0xc0296b48 (devfs_allocv+0xfc)
 sp = 0xd84c6cb0  fp = 0xd84c6ce0
 r4 = 0xc07781e4  r5 = 0xc3d34bc0
 r6 = 0xc3f2b400  r7 = 0xc3d34bd4
 r8 = 0xc3e55120 r10 = 0xc060ca74
devfs_allocv() at devfs_allocv+0xfc
 pc = 0xc0296b48  lr = 0xc02965f4 (devfs_unmount_final+0x4ec)
 sp = 0xd84c6ce8  fp = 0xd84c6d00
 r4 = 0xd84c6d20  r5 = 0xc3f6c560
 r6 = 0xc3d34bc0  r7 = 0x00000000
 r8 = 0xc3e54b40  r9 = 0x00080000
r10 = 0xc3f31660
devfs_unmount_final() at devfs_unmount_final+0x4ec
 pc = 0xc02965f4  lr = 0xc040d888 (dounmount+0x3b8)
 sp = 0xd84c6d08  fp = 0xd84c6d50
 r4 = 0x00000000  r5 = 0x00080000
 r6 = 0xc062e0cb r10 = 0xc3f31660
dounmount() at dounmount+0x3b8
 pc = 0xc040d888  lr = 0xc0416658 (vfs_unmountall+0x58)
 sp = 0xd84c6d58  fp = 0xd84c6d78
 r4 = 0xc3f31660  r5 = 0xc0619583
 r6 = 0xd9114eb0  r7 = 0xc3f6c560
 r8 = 0xc06e3be0  r9 = 0xc063efaa
r10 = 0xc062f19b
vfs_unmountall() at vfs_unmountall+0x58
 pc = 0xc0416658  lr = 0xc03677a8 (kern_reboot+0x4f0)
 sp = 0xd84c6d80  fp = 0xd84c6dd8
 r4 = 0x00000000  r5 = 0x00000000
 r6 = 0xd9114eb0  r7 = 0xd9114eb0
 r8 = 0x00000000  r9 = 0xc06f3a24
r10 = 0xc07798c4
kern_reboot() at kern_reboot+0x4f0
 pc = 0xc03677a8  lr = 0xc03672b8 (kern_reboot)
 sp = 0xd84c6de0  fp = 0xd84c6de8
 r4 = 0xd84c6e08  r5 = 0xc3f28000
 r6 = 0x60000013  r7 = 0x00000000
 r8 = 0xd84c6e00  r9 = 0x00000000
r10 = 0x00000004
kern_reboot() at kern_reboot
 pc = 0xc03672b8  lr = 0xc05d8628 (swi_handler+0x29c)
 sp = 0xd84c6df0  fp = 0xd84c6e50
 r4 = 0xd84c6e00  r5 = 0x00000000
 r6 = 0x00000004  r7 = 0xd84c6de8
 r8 = 0xc03672b8  r9 = 0xc3f31660
r10 = 0x00000004
swi_handler() at swi_handler+0x29c
 pc = 0xc05d8628  lr = 0xc05c40c0 (swi_exit)
 sp = 0xd84c6e58  fp = 0xbfbffe00
 r4 = 0x00000004  r5 = 0x00000002
 r6 = 0xbfbffddc  r7 = 0x00000037
 r8 = 0x00000000  r9 = 0x00000000
r10 = 0x00000004
swi_exit() at swi_exit
 pc = 0xc05c40c0  lr = 0xc05c40c0 (swi_exit)
 sp = 0xd84c6e58  fp = 0xbfbffe00
db_trace_self() at db_trace_self
 pc = 0xc05c2aa8  lr = 0xc0234b2c (db_fetch_ksymtab+0x16c)
 sp = 0xd84c6a40  fp = 0xd84c6b58
r10 = 0xc06136e6
db_fetch_ksymtab() at db_fetch_ksymtab+0x16c
 pc = 0xc0234b2c  lr = 0xc03c18a0 (witness_checkorder+0xf0c)
 sp = 0xd84c6b60  fp = 0xd84c6ba8
 r4 = 0xc0619583  r5 = 0xc3e55154
 r6 = 0xc062eb02  r7 = 0xc06136e6
witness_checkorder() at witness_checkorder+0xf0c
 pc = 0xc03c18a0  lr = 0xc0349ef0 (__lockmgr_args+0x82c)
 sp = 0xd84c6bb0  fp = 0xd84c6c18
 r4 = 0xc062eb02  r5 = 0xc0619583
 r6 = 0x00080500  r7 = 0x00000100
 r8 = 0xc3e55154  r9 = 0xc3f31660
r10 = 0x00080000
__lockmgr_args() at __lockmgr_args+0x82c
 pc = 0xc0349ef0  lr = 0xc04052e0 (vop_stdlock+0x3c)
 sp = 0xd84c6c20  fp = 0xd84c6c30
 r4 = 0xd84c6c50  r5 = 0xc06e3938
 r6 = 0x00000000  r7 = 0x00080500
 r8 = 0xd84c6c50  r9 = 0x00000880
r10 = 0xc060ca74
vop_stdlock() at vop_stdlock+0x3c
 pc = 0xc04052e0  lr = 0xc05e62c8 (VOP_LOCK1_APV+0xe8)
 sp = 0xd84c6c38  fp = 0xd84c6c48
VOP_LOCK1_APV() at VOP_LOCK1_APV+0xe8
 pc = 0xc05e62c8  lr = 0xc04236b4 (_vn_lock+0x48)
 sp = 0xd84c6c50  fp = 0xd84c6c80
 r4 = 0xc3e55120  r5 = 0xc3d34bc0
 r6 = 0xc062eb02 r10 = 0xc060ca74
_vn_lock() at _vn_lock+0x48
 pc = 0xc04236b4  lr = 0xc0414394 (vget+0x60)
 sp = 0xd84c6c88  fp = 0xd84c6ca8
 r4 = 0xc3e55120  r5 = 0xc3d34bc0
 r6 = 0x00080500  r7 = 0xc3d34bd4
 r8 = 0xc3f31660  r9 = 0x00080500
r10 = 0xc060ca74
vget() at vget+0x60
 pc = 0xc0414394  lr = 0xc0296b48 (devfs_allocv+0xfc)
 sp = 0xd84c6cb0  fp = 0xd84c6ce0
 r4 = 0xc07781e4  r5 = 0xc3d34bc0
 r6 = 0xc3f2b400  r7 = 0xc3d34bd4
 r8 = 0xc3e55120 r10 = 0xc060ca74
devfs_allocv() at devfs_allocv+0xfc
 pc = 0xc0296b48  lr = 0xc02965f4 (devfs_unmount_final+0x4ec)
 sp = 0xd84c6ce8  fp = 0xd84c6d00
 r4 = 0xd84c6d20  r5 = 0xc3f6c560
 r6 = 0xc3d34bc0  r7 = 0x00000000
 r8 = 0xc3e54b40  r9 = 0x00080000
r10 = 0xc3f31660
devfs_unmount_final() at devfs_unmount_final+0x4ec
 pc = 0xc02965f4  lr = 0xc040d888 (dounmount+0x3b8)
 sp = 0xd84c6d08  fp = 0xd84c6d50
 r4 = 0x00000000  r5 = 0x00080000
 r6 = 0xc062e0cb r10 = 0xc3f31660
dounmount() at dounmount+0x3b8
 pc = 0xc040d888  lr = 0xc0416658 (vfs_unmountall+0x58)
 sp = 0xd84c6d58  fp = 0xd84c6d78
 r4 = 0xc3f31660  r5 = 0xc0619583
 r6 = 0xd9114eb0  r7 = 0xc3f6c560
 r8 = 0xc06e3be0  r9 = 0xc063efaa
r10 = 0xc062f19b
vfs_unmountall() at vfs_unmountall+0x58
 pc = 0xc0416658  lr = 0xc03677a8 (kern_reboot+0x4f0)
 sp = 0xd84c6d80  fp = 0xd84c6dd8
 r4 = 0x00000000  r5 = 0x00000000
 r6 = 0xd9114eb0  r7 = 0xd9114eb0
 r8 = 0x00000000  r9 = 0xc06f3a24
r10 = 0xc07798c4
kern_reboot() at kern_reboot+0x4f0
 pc = 0xc03677a8  lr = 0xc03672b8 (kern_reboot)
 sp = 0xd84c6de0  fp = 0xd84c6de8
 r4 = 0xd84c6e08  r5 = 0xc3f28000
 r6 = 0x60000013  r7 = 0x00000000
 r8 = 0xd84c6e00  r9 = 0x00000000
r10 = 0x00000004
kern_reboot() at kern_reboot
 pc = 0xc03672b8  lr = 0xc05d8628 (swi_handler+0x29c)
 sp = 0xd84c6df0  fp = 0xd84c6e50
 r4 = 0xd84c6e00  r5 = 0x00000000
 r6 = 0x00000004  r7 = 0xd84c6de8
 r8 = 0xc03672b8  r9 = 0xc3f31660
r10 = 0x00000004
swi_handler() at swi_handler+0x29c
 pc = 0xc05d8628  lr = 0xc05c40c0 (swi_exit)
 sp = 0xd84c6e58  fp = 0xbfbffe00
 r4 = 0x00000004  r5 = 0x00000002
 r6 = 0xbfbffddc  r7 = 0x00000037
 r8 = 0x00000000  r9 = 0x00000000
r10 = 0x00000004
swi_exit() at swi_exit
 pc = 0xc05c40c0  lr = 0xc05c40c0 (swi_exit)
 sp = 0xd84c6e58  fp = 0xbfbffe00
Uptime: 3m40s
Rebooting...

Why is this commng ?



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