From owner-freebsd-arm@FreeBSD.ORG Fri May 22 15:43:32 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A2CF9CC7 for ; Fri, 22 May 2015 15:43:32 +0000 (UTC) Received: from mail-vn0-x236.google.com (mail-vn0-x236.google.com [IPv6:2607:f8b0:400c:c0f::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B179166C for ; Fri, 22 May 2015 15:43:32 +0000 (UTC) Received: by vnbf190 with SMTP id f190so1537375vnb.5 for ; Fri, 22 May 2015 08:43:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=xce5hk1G+zl9P0ZBFyfDyIm5jBSseWlEsaNZDDHxrn8=; b=nPBd7J84rNpM622wX/RCRyuZtioBl9H8+BYctBmLaKoTnwG29P3ByyReGGVLkMTOc9 FD5q0sBZ5F3Lmeznw6eDuOP6JX2jyJsv585LdgKYaRrxisMcnam1gfKmP7boFlACl1fm 1wI1r1wBdmhY2i21ormNT+ghOGaxw+fMYCJSMK8yk99UnPCO5YebKMUdXzX77GVuHzGn YnMe/NaMUSgrkhiNEZbYwlDI3IdDx3Y567jDLWex8RzaUUt4KV3Oe53S8mcQY79gsOo0 A+JHA4xOeYoxcqaxb1NNvtBlF9Or/fuME+e9pLrEjyht8wYN39Pyw4hUPRALIMkPEs0G 100Q== X-Received: by 10.52.5.2 with SMTP id o2mr7585275vdo.97.1432309411266; Fri, 22 May 2015 08:43:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.185.134 with HTTP; Fri, 22 May 2015 08:43:10 -0700 (PDT) From: Pratik Singhal Date: Fri, 22 May 2015 21:13:10 +0530 Message-ID: Subject: Lock order traversal while running ~head on cubieboard To: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 May 2015 15:43:32 -0000 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 ?