Summary: | [lor] lock order reversal: backtrace while writing to SD/eMMC | ||
---|---|---|---|
Product: | Base System | Reporter: | Winston Smith <smith.winston.101> |
Component: | arm | Assignee: | freebsd-arm (Nobody) <freebsd-arm> |
Status: | Open --- | ||
Severity: | Affects Only Me | CC: | skeldoy |
Priority: | Normal | ||
Version: | 10.0-STABLE | ||
Hardware: | Any | ||
OS: | Any |
Description
Winston Smith
2014-04-24 01:40:00 UTC
Happened again, with a different report: lock order reversal: 1st 0xc2ad7814 ufs (ufs) @ /usr/src/FreeBSD-stable-10/sys/kern/vfs_subr.c:2101 2nd 0xcd2533f0 bufwait (bufwait) @ /usr/src/FreeBSD-stable-10/sys/ufs/ffs/ffs_vnops.c:262 3rd 0xc34e1814 ufs (ufs) @ /usr/src/FreeBSD-stable-10/sys/kern/vfs_subr.c:2101 KDB: stack backtrace: db_trace_self() at db_trace_self pc = 0xc0540880 lr = 0xc0230328 (db_trace_self_wrapper+0x30) sp = 0xdd9483f8 fp = 0xdd948510 r10 = 0xc34e1814 db_trace_self_wrapper() at db_trace_self_wrapper+0x30 pc = 0xc0230328 lr = 0xc0398c90 (kdb_backtrace+0x38) sp = 0xdd948518 fp = 0xdd948520 r4 = 0xc067e3a4 r5 = 0xc05a5545 r6 = 0xc05ad9ad r7 = 0xc05c0ac2 kdb_backtrace() at kdb_backtrace+0x38 pc = 0xc0398c90 lr = 0xc03b367c (witness_checkorder+0xe48) sp = 0xdd948528 fp = 0xdd948578 r4 = 0xc05940e2 witness_checkorder() at witness_checkorder+0xe48 pc = 0xc03b367c lr = 0xc0344d3c (__lockmgr_args+0x8f0) sp = 0xdd948580 fp = 0xdd9485e8 r4 = 0x00000100 r5 = 0x00080100 r6 = 0x00000835 r7 = 0xc34e1834 r8 = 0xc34e1814 r9 = 0x00080000 r10 = 0xc05ad9aa __lockmgr_args() at __lockmgr_args+0x8f0 pc = 0xc0344d3c lr = 0xc04f6e54 (ffs_lock+0x80) sp = 0xdd9485f0 fp = 0xdd948618 r4 = 0xdd948638 r5 = 0x00080100 r6 = 0xc34e17e0 r7 = 0xc34e1814 r8 = 0xc34e1834 r9 = 0x00000000 r10 = 0x00000835 ffs_lock() at ffs_lock+0x80 pc = 0xc04f6e54 lr = 0xc0565e74 (VOP_LOCK1_APV+0xd8) sp = 0xdd948620 fp = 0xdd948630 r4 = 0xdd948638 r5 = 0xc06624c0 r6 = 0x00000000 r7 = 0x00080100 r8 = 0xdd948638 r9 = 0xc05acbea VOP_LOCK1_APV() at VOP_LOCK1_APV+0xd8 pc = 0xc0565e74 lr = 0xc0414b20 (_vn_lock+0x44) sp = 0xdd948638 fp = 0xdd948668 r4 = 0xc34e17e0 r5 = 0x00000004 r6 = 0xc05ad9aa _vn_lock() at _vn_lock+0x44 pc = 0xc0414b20 lr = 0xc04054d0 (vget+0x60) sp = 0xdd948670 fp = 0xdd948690 r4 = 0xc34e17e0 r5 = 0x00000004 r6 = 0x00080100 r7 = 0xc07dbdac r8 = 0xc2c42c80 r9 = 0xc05acbea r10 = 0x00000000 vget() at vget+0x60 pc = 0xc04054d0 lr = 0xc03f9b4c (vfs_hash_get+0xd8) sp = 0xdd948698 fp = 0xdd9486c8 r4 = 0xc07dbd90 r5 = 0x00000004 r6 = 0xc29e4ac0 r7 = 0xc07dbdac r8 = 0xc34e17e0 vfs_hash_get() at vfs_hash_get+0xd8 pc = 0xc03f9b4c lr = 0xc04f1ea4 (ffs_vgetf+0x3c) sp = 0xdd9486d0 fp = 0xdd948728 r4 = 0xc325b0c0 r5 = 0x00080000 r6 = 0xc29e4ac0 r7 = 0x00000004 r8 = 0xc325b0c0 r9 = 0x00000000 r10 = 0xdd948788 ffs_vgetf() at ffs_vgetf+0x3c pc = 0xc04f1ea4 lr = 0xc04e8d40 (softdep_sync_buf+0x9c8) sp = 0xdd948730 fp = 0xdd9487a8 r4 = 0xc325b0c0 r5 = 0xc05bcdd9 r6 = 0xc05bcdd9 r7 = 0xc29f1300 r8 = 0xc325b0c0 r9 = 0x00000000 r10 = 0x00000004 softdep_sync_buf() at softdep_sync_buf+0x9c8 pc = 0xc04e8d40 lr = 0xc04f7c6c (ffs_syncvnode+0x2ec) sp = 0xdd9487b0 fp = 0xdd948800 r4 = 0xc2ad77e0 r5 = 0x00000000 r6 = 0xc05c0abf r7 = 0x00000001 r8 = 0xcd2533f0 r9 = 0x00000010 r10 = 0xcd253398 ffs_syncvnode() at ffs_syncvnode+0x2ec pc = 0xc04f7c6c lr = 0xc04cb414 (ffs_truncate+0x6d8) sp = 0xdd948808 fp = 0xdd9489b8 r4 = 0xc2ad77e0 r5 = 0x00000000 r6 = 0x00000200 r7 = 0xc2a01c80 r8 = 0x00000880 r9 = 0x00000000 r10 = 0x00000200 ffs_truncate() at ffs_truncate+0x6d8 pc = 0xc04cb414 lr = 0xc04ff5bc (ufs_direnter+0x8a8) sp = 0xdd9489c0 fp = 0xdd948a28 r4 = 0xc2ad77e0 r5 = 0xc2a01c80 r6 = 0x00000000 r7 = 0x00000000 r8 = 0xc34e17e0 r9 = 0xc2ad77e0 r10 = 0x00000000 ufs_direnter() at ufs_direnter+0x8a8 pc = 0xc04ff5bc lr = 0xc05087f4 (ufs_makeinode+0x3ec) sp = 0xdd948a30 fp = 0xdd948b90 r4 = 0x00000000 r5 = 0xdd948d30 r6 = 0xdd948a50 r7 = 0x00000000 r8 = 0xdd948d48 r9 = 0xc2ad77e0 r10 = 0xc34df780 ufs_makeinode() at ufs_makeinode+0x3ec pc = 0xc05087f4 lr = 0xc0504bdc (ufs_create+0x24) sp = 0xdd948b98 fp = 0xdd948b98 r4 = 0xdd948c68 r5 = 0xc06629d0 r6 = 0x00000000 r7 = 0x00000a03 r8 = 0x00000000 r9 = 0xdd948d50 r10 = 0xdd948d30 ufs_create() at ufs_create+0x24 pc = 0xc0504bdc lr = 0xc0563fc4 (VOP_CREATE_APV+0xd0) sp = 0xdd948ba0 fp = 0xdd948bb0 VOP_CREATE_APV() at VOP_CREATE_APV+0xd0 pc = 0xc0563fc4 lr = 0xc04143ac (vn_open_cred+0x274) sp = 0xdd948bb8 fp = 0xdd948c98 r4 = 0xdd948ce0 r5 = 0xdd948d30 r6 = 0xc2ad77e0 vn_open_cred() at vn_open_cred+0x274 pc = 0xc04143ac lr = 0xc0414130 (vn_open+0x24) sp = 0xdd948ca0 fp = 0xdd948ca8 r4 = 0xc2c42c80 r5 = 0x000500cf r6 = 0x00000012 r7 = 0xdd948ce0 r8 = 0x00000000 r9 = 0xbfffe25c r10 = 0xdd948cd0 vn_open() at vn_open+0x24 pc = 0xc0414130 lr = 0xc040d668 (kern_openat+0x248) sp = 0xdd948cb0 fp = 0xdd948da8 kern_openat() at kern_openat+0x248 pc = 0xc040d668 lr = 0xc040d3b0 (sys_open+0x28) sp = 0xdd948db0 fp = 0xdd948db8 r4 = 0xc2c42c80 r5 = 0xc2c2c640 r6 = 0x00000000 r7 = 0x00000000 r8 = 0xffffffe4 r9 = 0xdd948e10 r10 = 0x01650f48 sys_open() at sys_open+0x28 pc = 0xc040d3b0 lr = 0xc0552a7c (swi_handler+0x284) sp = 0xdd948dc0 fp = 0xdd948e58 swi_handler() at swi_handler+0x284 pc = 0xc0552a7c lr = 0xc05421ac (swi_entry+0x2c) sp = 0xdd948e60 fp = 0xbfffe188 r4 = 0xbfffdfa8 r5 = 0xffffffe4 r6 = 0xbfffe250 r7 = 0x00000005 r8 = 0xffffffe4 r9 = 0x00000001 swi_entry() at swi_entry+0x2c pc = 0xc05421ac lr = 0xc05421ac (swi_entry+0x2c) sp = 0xdd948e60 fp = 0xbfffe188 Unable to unwind further I found the exact same issue testing on FreeBSD-CURRENT on the BBB; this was removing a directory tree with `rm -rf` on the eMMC: FreeBSD beaglebone 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r264670: Fri Apr 18 18:55:02 EDT 2014 root@freebsd:/root/Work/crochet-freebsd/work/obj/arm.armv6/usr/src/FreeBSD-CURRENT/sys/BEAGLEBONE arm lock order reversal: 1st 0xcd25b0f8 bufwait (bufwait) @ /usr/src/FreeBSD-CURRENT/sys/kern/vfs_bio.c:3081 2nd 0xc3260600 dirhash (dirhash) @ /usr/src/FreeBSD-CURRENT/sys/ufs/ufs/ufs_dirhash.c:284 KDB: stack backtrace: db_trace_self() at db_trace_self pc = 0xc0542258 lr = 0xc02324bc (db_trace_self_wrapper+0x30) sp = 0xde6c89e0 fp = 0xde6c8af8 r10 = 0xc3260600 db_trace_self_wrapper() at db_trace_self_wrapper+0x30 pc = 0xc02324bc lr = 0xc039b358 (kdb_backtrace+0x38) sp = 0xde6c8b00 fp = 0xde6c8b08 r4 = 0xc0689484 r5 = 0xc059401b r6 = 0xc05c7b91 r7 = 0xc05b16e0 kdb_backtrace() at kdb_backtrace+0x38 pc = 0xc039b358 lr = 0xc03b5c78 (witness_checkorder+0xe50) sp = 0xde6c8b10 fp = 0xde6c8b60 r4 = 0xc05c7f53 witness_checkorder() at witness_checkorder+0xe50 pc = 0xc03b5c78 lr = 0xc036c1bc (_sx_xlock+0x7c) sp = 0xde6c8b68 fp = 0xde6c8b90 r4 = 0x0000011c r5 = 0xc05c7b8e r6 = 0xc3260610 r7 = 0xc3260600 r8 = 0x00000000 r9 = 0xc31a3280 r10 = 0x00000000 _sx_xlock() at _sx_xlock+0x7c pc = 0xc036c1bc lr = 0xc04fe408 (ufsdirhash_remove+0x38) sp = 0xde6c8b98 fp = 0xde6c8bb0 r4 = 0xc3260600 r5 = 0xc31a024c r6 = 0xce430018 r7 = 0xc31a3280 r8 = 0x00000018 ufsdirhash_remove() at ufsdirhash_remove+0x38 pc = 0xc04fe408 lr = 0xc0501260 (ufs_dirremove+0x14c) sp = 0xde6c8bb8 fp = 0xde6c8be8 r4 = 0xc3048c00 r5 = 0xc31a024c r6 = 0xc31a0240 r7 = 0xce430018 r8 = 0x00000000 ufs_dirremove() at ufs_dirremove+0x14c pc = 0xc0501260 lr = 0xc05076e8 (ufs_remove+0x64) sp = 0xde6c8bf0 fp = 0xde6c8c18 r4 = 0xc3041d80 r5 = 0x00000001 r6 = 0xc31a0240 r7 = 0xc3048c00 r8 = 0xc2e05000 r9 = 0xc3041d80 r10 = 0x00000000 ufs_remove() at ufs_remove+0x64 pc = 0xc05076e8 lr = 0xc056bd5c (VOP_REMOVE_APV+0xd0) sp = 0xde6c8c20 fp = 0xde6c8c30 r4 = 0xde6c8d78 r5 = 0xc066acd0 r6 = 0x00000000 r7 = 0xffffff9c r8 = 0x00000000 VOP_REMOVE_APV() at VOP_REMOVE_APV+0xd0 pc = 0xc056bd5c lr = 0xc04126dc (kern_unlinkat+0x1b4) sp = 0xde6c8c38 fp = 0xde6c8da8 r4 = 0xde6c8cd8 r5 = 0xc2e05000 r6 = 0x2081b358 kern_unlinkat() at kern_unlinkat+0x1b4 pc = 0xc04126dc lr = 0xc04122fc (sys_unlink+0x24) sp = 0xde6c8db0 fp = 0xde6c8db8 r4 = 0xc2e05000 r5 = 0xc2dfb640 r6 = 0x00000000 r7 = 0x00000000 r8 = 0x00000001 r9 = 0xde6c8e10 r10 = 0x00012790 sys_unlink() at sys_unlink+0x24 pc = 0xc04122fc lr = 0xc0557878 (swi_handler+0x284) sp = 0xde6c8dc0 fp = 0xde6c8e58 swi_handler() at swi_handler+0x284 pc = 0xc0557878 lr = 0xc0543d74 (swi_exit) sp = 0xde6c8e60 fp = 0xbffffce0 r4 = 0x20803080 r5 = 0x0000a4ce r6 = 0x00000000 r7 = 0x0000000a r8 = 0x00000001 r9 = 0x00000000 swi_exit() at swi_exit pc = 0xc0543d74 lr = 0xc0543d74 (swi_exit) sp = 0xde6c8e60 fp = 0xbffffce0 Unable to unwind further Got the same when using the copy-to-emmc.sh script that is supplied with the freebsd-image of 10.1-RELEASE for BBB: Copying the system from SD to eMMC lock order reversal: 1st 0xcd139da0 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:3097 2nd 0xc2f39800 dirhash (dirhash) @ /usr/src/sys/ufs/ufs/ufs_dirhash.c:285 KDB: stack backtrace: db_trace_self() at db_trace_self pc = 0xc05d62e0 lr = 0xc0233ff4 (db_trace_self_wrapper+0x30) sp = 0xde6eb7f0 fp = 0xde6eb908 r10 = 0xc062db9b db_trace_self_wrapper() at db_trace_self_wrapper+0x30 pc = 0xc0233ff4 lr = 0xc03cdbd4 (witness_checkorder+0xf4c) sp = 0xde6eb910 fp = 0xde6eb960 r4 = 0xc06649a9 r5 = 0xc2f39800 r6 = 0xc06645f7 r7 = 0xc06645f4 witness_checkorder() at witness_checkorder+0xf4c pc = 0xc03cdbd4 lr = 0xc037a5bc (_sx_xlock+0x80) sp = 0xde6eb968 fp = 0xde6eb998 r4 = 0x0000011d r5 = 0xc06645f4 r6 = 0xc2f39810 r7 = 0xc2f39800 r8 = 0x00000000 r9 = 0x0000000c r10 = 0xde6eba60 _sx_xlock() at _sx_xlock+0x80 pc = 0xc037a5bc lr = 0xc058fea8 (ufsdirhash_add+0x3c) sp = 0xde6eb9a0 fp = 0xde6eb9c0 r4 = 0xc2f39800 r5 = 0x00000028 r6 = 0xc2faf880 r7 = 0x00000010 r8 = 0xde6eba60 r10 = 0xde6eba60 ufsdirhash_add() at ufsdirhash_add+0x3c pc = 0xc058fea8 lr = 0xc0592b1c (ufs_direnter+0x46c) sp = 0xde6eb9c8 fp = 0xde6eba30 r4 = 0xc2faf880 r5 = 0xc2faac60 r6 = 0xcd774028 r7 = 0x00000010 r8 = 0x00000000 r9 = 0x0000000c r10 = 0xde6eba60 ufs_direnter() at ufs_direnter+0x46c pc = 0xc0592b1c lr = 0xc059bab4 (ufs_mkdir+0x734) sp = 0xde6eba38 fp = 0xde6ebbc0 r4 = 0xde6eba60 r5 = 0xc2faac60 r6 = 0xde6ebd48 r7 = 0x00000000 r8 = 0xc2fb0380 r9 = 0xc2faf880 r10 = 0xde6ebc80 ufs_mkdir() at ufs_mkdir+0x734 pc = 0xc059bab4 lr = 0xc0602c20 (VOP_MKDIR_APV+0x12c) sp = 0xde6ebbc8 fp = 0xde6ebbe0 r4 = 0xde6ebd48 r5 = 0xc0722db4 r6 = 0x00000000 r7 = 0x20c0c3a0 r8 = 0x00000000 r9 = 0x00000000 r10 = 0xde6ebc88 VOP_MKDIR_APV() at VOP_MKDIR_APV+0x12c pc = 0xc0602c20 lr = 0xc042cee4 (kern_mkdirat+0x194) sp = 0xde6ebbe8 fp = 0xde6ebd80 r4 = 0xde6ebc18 r5 = 0xde6ebcb0 r6 = 0xde6ebd44 r10 = 0xde6ebc88 kern_mkdirat() at kern_mkdirat+0x194 pc = 0xc042cee4 lr = 0xc042cd48 (sys_mkdir+0x24) sp = 0xde6ebd88 fp = 0xde6ebd90 r4 = 0xc2fe0cc0 r5 = 0x00000000 r6 = 0xc07b5840 r7 = 0x00000000 r8 = 0xde6ebdf8 r9 = 0xc2fbb000 r10 = 0x20c14200 sys_mkdir() at sys_mkdir+0x24 pc = 0xc042cd48 lr = 0xc05ea080 (swi_handler+0x2e4) sp = 0xde6ebd98 fp = 0xde6ebe48 swi_handler() at swi_handler+0x2e4 pc = 0xc05ea080 lr = 0xc05d7990 (swi_exit) sp = 0xde6ebe50 fp = 0xbffffa30 r4 = 0x20c14200 r5 = 0x000001ed r6 = 0x20c14364 r7 = 0x00000088 r8 = 0x00000001 r9 = 0xffffffe2 r10 = 0x20c14200 swi_exit() at swi_exit pc = 0xc05d7990 lr = 0xc05d7990 (swi_exit) sp = 0xde6ebe50 fp = 0xbffffa30 lock order reversal: 1st 0xc2faac94 ufs (ufs) @ /usr/src/sys/kern/vfs_lookup.c:509 2nd 0xcd139da0 bufwait (bufwait) @ /usr/src/sys/ufs/ffs/ffs_vnops.c:263 3rd 0xc316e394 ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2176 KDB: stack backtrace: db_trace_self() at db_trace_self pc = 0xc05d62e0 lr = 0xc0233ff4 (db_trace_self_wrapper+0x30) sp = 0xde6eb408 fp = 0xde6eb520 r10 = 0xc062db9b db_trace_self_wrapper() at db_trace_self_wrapper+0x30 pc = 0xc0233ff4 lr = 0xc03cdbd4 (witness_checkorder+0xf4c) sp = 0xde6eb528 fp = 0xde6eb578 r4 = 0xc06344ca r5 = 0xc316e394 r6 = 0xc064e6c8 r7 = 0xc062db9b witness_checkorder() at witness_checkorder+0xf4c pc = 0xc03cdbd4 lr = 0xc0354628 (__lockmgr_args+0x838) sp = 0xde6eb580 fp = 0xde6eb5e8 r4 = 0xc064e6c5 r5 = 0xc06344ca r6 = 0xc316e394 r7 = 0x00000100 r8 = 0xc316e3b4 r9 = 0x00080100 r10 = 0x00080000 __lockmgr_args() at __lockmgr_args+0x838 pc = 0xc0354628 lr = 0xc058a648 (ffs_lock+0x80) sp = 0xde6eb5f0 fp = 0xde6eb620 r4 = 0xde6eb648 r5 = 0x00080100 r6 = 0xc316e360 r7 = 0xc316e394 r8 = 0xc316e3b4 r9 = 0x00000000 r10 = 0x00000008 ffs_lock() at ffs_lock+0x80 pc = 0xc058a648 lr = 0xc060374c (VOP_LOCK1_APV+0x128) sp = 0xde6eb628 fp = 0xde6eb640 r4 = 0xde6eb648 r5 = 0xc0722850 r6 = 0x00000000 r7 = 0x00080100 r8 = 0xde6eb648 r9 = 0x00000000 r10 = 0x00000880 VOP_LOCK1_APV() at VOP_LOCK1_APV+0x128 pc = 0xc060374c lr = 0xc0430044 (_vn_lock+0x48) sp = 0xde6eb648 fp = 0xde6eb678 r4 = 0xc316e360 r5 = 0x0003ac80 r6 = 0xc064e6c5 r10 = 0x00000880 _vn_lock() at _vn_lock+0x48 pc = 0xc0430044 lr = 0xc0420bf4 (vget+0x60) sp = 0xde6eb680 fp = 0xde6eb6a0 r4 = 0xc316e360 r5 = 0x0003ac80 r6 = 0x00080100 r7 = 0xc07ab29c r8 = 0xc2fe0cc0 r9 = 0x00000000 r10 = 0xc07ab280 vget() at vget+0x60 pc = 0xc0420bf4 lr = 0xc0414cd4 (vfs_hash_get+0xe0) sp = 0xde6eb6a8 fp = 0xde6eb6d8 r4 = 0xc064d903 r5 = 0x0003ac80 r6 = 0xc2d5a2b0 r7 = 0xc07ab29c r8 = 0xc316e360 r10 = 0xc07ab280 vfs_hash_get() at vfs_hash_get+0xe0 pc = 0xc0414cd4 lr = 0xc058581c (ffs_vgetf+0x38) sp = 0xde6eb6e0 fp = 0xde6eb730 r4 = 0x0003ac80 r5 = 0x00080000 r6 = 0xc2d5a2b0 r7 = 0x0003ac80 r8 = 0xc2fce900 r9 = 0xc30c81b0 r10 = 0xde6eb790 ffs_vgetf() at ffs_vgetf+0x38 pc = 0xc058581c lr = 0xc057c408 (softdep_sync_buf+0x32c) sp = 0xde6eb738 fp = 0xde6eb7b0 r4 = 0x0003ac80 r5 = 0xc2d65900 r6 = 0xc2fce900 r7 = 0xc2d65900 r8 = 0xc2fce900 r9 = 0xc30c81b0 r10 = 0xc06602f8 softdep_sync_buf() at softdep_sync_buf+0x32c pc = 0xc057c408 lr = 0xc058b334 (ffs_syncvnode+0x2f4) sp = 0xde6eb7b8 fp = 0xde6eb808 r4 = 0xc06640d1 r5 = 0xc2faac60 r6 = 0x00000000 r7 = 0x00000001 r8 = 0xcd139da0 r9 = 0xcd139d50 r10 = 0x00000010 ffs_syncvnode() at ffs_syncvnode+0x2f4 pc = 0xc058b334 lr = 0xc055ff7c (ffs_truncate+0x754) sp = 0xde6eb810 fp = 0xde6eb9c0 r4 = 0xc2faac60 r5 = 0x00000400 r6 = 0xc2faf880 r7 = 0x00000000 r8 = 0xc2faf8d8 r9 = 0x00000000 r10 = 0xc309b000 ffs_truncate() at ffs_truncate+0x754 pc = 0xc055ff7c lr = 0xc0592edc (ufs_direnter+0x82c) sp = 0xde6eb9c8 fp = 0xde6eba30 r4 = 0xc2faac60 r5 = 0xc2faac60 r6 = 0xc2faf880 r7 = 0xc316e360 r8 = 0x00000000 r9 = 0x0000000c r10 = 0xde6eba60 ufs_direnter() at ufs_direnter+0x82c pc = 0xc0592edc lr = 0xc059bab4 (ufs_mkdir+0x734) sp = 0xde6eba38 fp = 0xde6ebbc0 r4 = 0xde6eba60 r5 = 0xc2faac60 r6 = 0xde6ebd48 r7 = 0x00000000 r8 = 0xc2fb0380 r9 = 0xc2faf880 r10 = 0xde6ebc80 ufs_mkdir() at ufs_mkdir+0x734 pc = 0xc059bab4 lr = 0xc0602c20 (VOP_MKDIR_APV+0x12c) sp = 0xde6ebbc8 fp = 0xde6ebbe0 r4 = 0xde6ebd48 r5 = 0xc0722db4 r6 = 0x00000000 r7 = 0x20c0c3a0 r8 = 0x00000000 r9 = 0x00000000 r10 = 0xde6ebc88 VOP_MKDIR_APV() at VOP_MKDIR_APV+0x12c pc = 0xc0602c20 lr = 0xc042cee4 (kern_mkdirat+0x194) sp = 0xde6ebbe8 fp = 0xde6ebd80 r4 = 0xde6ebc18 r5 = 0xde6ebcb0 r6 = 0xde6ebd44 r10 = 0xde6ebc88 kern_mkdirat() at kern_mkdirat+0x194 pc = 0xc042cee4 lr = 0xc042cd48 (sys_mkdir+0x24) sp = 0xde6ebd88 fp = 0xde6ebd90 r4 = 0xc2fe0cc0 r5 = 0x00000000 r6 = 0xc07b5840 r7 = 0x00000000 r8 = 0xde6ebdf8 r9 = 0xc2fbb000 r10 = 0x20c14200 sys_mkdir() at sys_mkdir+0x24 pc = 0xc042cd48 lr = 0xc05ea080 (swi_handler+0x2e4) sp = 0xde6ebd98 fp = 0xde6ebe48 swi_handler() at swi_handler+0x2e4 pc = 0xc05ea080 lr = 0xc05d7990 (swi_exit) sp = 0xde6ebe50 fp = 0xbffffa30 r4 = 0x20c14200 r5 = 0x000001ed r6 = 0x20c14364 r7 = 0x00000088 r8 = 0x00000001 r9 = 0xffffffe2 r10 = 0x20c14200 swi_exit() at swi_exit pc = 0xc05d7990 lr = 0xc05d7990 (swi_exit) sp = 0xde6ebe50 fp = 0xbffffa30 aintc0: Spurious interrupt detected (0xffffffff) Cleaning up the copied system Actually I get the same when I do shutdown -p now on the BBB as well: Syncing disks, vnodes remaining...4 4 3 3 0 0 0 done All buffers synced. lock order reversal: 1st 0xc2fa94b4 ufs (ufs) @ /usr/src/sys/kern/vfs_mount.c:1229 2nd 0xc2faaa54 devfs (devfs) @ /usr/src/sys/ufs/ffs/ffs_vfsops.c:1375 KDB: stack backtrace: db_trace_self() at db_trace_self pc = 0xc05d62e0 lr = 0xc0233ff4 (db_trace_self_wrapper+0x30) sp = 0xcd2ff980 fp = 0xcd2ffa98 r10 = 0xc062db9b db_trace_self_wrapper() at db_trace_self_wrapper+0x30 pc = 0xc0233ff4 lr = 0xc03cdbd4 (witness_checkorder+0xf4c) sp = 0xcd2ffaa0 fp = 0xcd2ffaf0 r4 = 0xc063999a r5 = 0xc2faaa54 r6 = 0xc066399f r7 = 0xc066399c witness_checkorder() at witness_checkorder+0xf4c pc = 0xc03cdbd4 lr = 0xc0354628 (__lockmgr_args+0x838) sp = 0xcd2ffaf8 fp = 0xcd2ffb60 r4 = 0xc066399c r5 = 0xc063999a r6 = 0xc2faaa54 r7 = 0x00000000 r8 = 0xc2faaa74 r9 = 0x00080400 r10 = 0x00080000 __lockmgr_args() at __lockmgr_args+0x838 pc = 0xc0354628 lr = 0xc0411aa8 (vop_stdlock+0x3c) sp = 0xcd2ffb68 fp = 0xcd2ffb78 r4 = 0xcd2ffba0 r5 = 0xc07140e8 r6 = 0x00000000 r7 = 0x00080400 r8 = 0xcd2ffba0 r9 = 0xc06602f8 r10 = 0x0000055f vop_stdlock() at vop_stdlock+0x3c pc = 0xc0411aa8 lr = 0xc060374c (VOP_LOCK1_APV+0x128) sp = 0xcd2ffb80 fp = 0xcd2ffb98 VOP_LOCK1_APV() at VOP_LOCK1_APV+0x128 pc = 0xc060374c lr = 0xc0430044 (_vn_lock+0x48) sp = 0xcd2ffba0 fp = 0xcd2ffbd0 r4 = 0xc2faaa20 r5 = 0xc2a7d660 r6 = 0xc066399c r10 = 0x0000055f _vn_lock() at _vn_lock+0x48 pc = 0xc0430044 lr = 0xc0585760 (ffs_flushfiles+0x118) sp = 0xcd2ffbd8 fp = 0xcd2ffc10 r4 = 0xc2d65900 r5 = 0xc2a7d660 r6 = 0xc2d5a2b0 r7 = 0x00000000 r8 = 0x0000000a r9 = 0xc06602f8 r10 = 0xc2a7d660 ffs_flushfiles() at ffs_flushfiles+0x118 pc = 0xc0585760 lr = 0xc0569810 (softdep_flushfiles+0xdc) sp = 0xcd2ffc18 fp = 0xcd2ffc68 r4 = 0x00000008 r5 = 0xc2a7d660 r6 = 0x00000002 r7 = 0x0000000a r8 = 0x00000000 r9 = 0xc06602f8 r10 = 0xc2d5a2b0 softdep_flushfiles() at softdep_flushfiles+0xdc pc = 0xc0569810 lr = 0xc05883f4 (ffs_unmount+0x88) sp = 0xcd2ffc70 fp = 0xcd2ffca8 r4 = 0x00000000 r5 = 0xc2d65900 r6 = 0x00000002 r7 = 0xc2a7d660 r8 = 0x00000001 r9 = 0xc2d5a2b0 r10 = 0xc309b000 ffs_unmount() at ffs_unmount+0x88 pc = 0xc05883f4 lr = 0xc041a2e8 (dounmount+0x4c0) sp = 0xcd2ffcb0 fp = 0xcd2ffcf8 r4 = 0x00000000 r5 = 0x00000000 r6 = 0x00080000 r7 = 0x00000000 r8 = 0xc2fa9480 r9 = 0x00080000 r10 = 0xc2a7d660 dounmount() at dounmount+0x4c0 pc = 0xc041a2e8 lr = 0xc0422ea0 (vfs_unmountall+0x58) sp = 0xcd2ffd00 fp = 0xcd2ffd20 r4 = 0xc2a7d660 r5 = 0xc063999a r6 = 0xc07404e0 r7 = 0xc2d5a2b0 r8 = 0xc0714470 r9 = 0xc065e3f8 r10 = 0xc064ed48 vfs_unmountall() at vfs_unmountall+0x58 pc = 0xc0422ea0 lr = 0xc0372510 (kern_reboot+0x4ec) sp = 0xcd2ffd28 fp = 0xcd2ffd80 r4 = 0x00000000 r5 = 0x00000000 r6 = 0xc07404e0 r7 = 0xcd114eb0 r8 = 0x00004008 r9 = 0xc0725614 r10 = 0xc07b5ecc kern_reboot() at kern_reboot+0x4ec pc = 0xc0372510 lr = 0xc0372024 (kern_reboot) sp = 0xcd2ffd88 fp = 0xcd2ffd90 r4 = 0xcd2ffe00 r5 = 0x00000000 r6 = 0xc07b5840 r7 = 0x00000000 r8 = 0xcd2ffdf8 r9 = 0xc2a7a000 r10 = 0x0000001e kern_reboot() at kern_reboot pc = 0xc0372024 lr = 0xc05ea080 (swi_handler+0x2e4) sp = 0xcd2ffd98 fp = 0xcd2ffe48 r4 = 0xcd2ffdf8 r5 = 0xc2a7a000 r6 = 0x0000001e r7 = 0xcd2ffd90 r8 = 0xc0372024 r9 = 0xc2a7d660 r10 = 0x0000001e swi_handler() at swi_handler+0x2e4 pc = 0xc05ea080 lr = 0xc05d7990 (swi_exit) sp = 0xcd2ffe50 fp = 0xbffff938 r4 = 0x00008a18 r5 = 0x000ddd5c r6 = 0x0000003c r7 = 0x00000037 r8 = 0x0000001f r9 = 0x000e0430 r10 = 0x0000001e swi_exit() at swi_exit pc = 0xc05d7990 lr = 0xc05d7990 (swi_exit) sp = 0xcd2ffe50 fp = 0xbffff938 Uptime: 12m56s The operating system has halted. Please press any key to reboot. batch change: For bugs that match the following - Status Is In progress AND - Untouched since 2018-01-01. AND - Affects Base System OR Documentation DO: Reset to open status. Note: I did a quick pass but if you are getting this email it might be worthwhile to double check to see if this bug ought to be closed. The vfs_bio/ufs_dirhash pair also appears in bug 206923, where it is described as a known false positive. I saw it installing the latest CURRENT (FreeBSD-13.0-CURRENT-arm64-aarch64-20190221-r344398-memstick.img). Should some of these filesystem lock ordering bugs be closed as duplicates? |