Bug 142878 - [zfs] [vfs] lock order reversal
Summary: [zfs] [vfs] lock order reversal
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 8.0-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-16 10:20 UTC by Dmitry
Modified: 2021-11-02 18:29 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry 2010-01-16 10:20:03 UTC
During boot, after find core dump, i see this message:

lock order reversal:
1st 0xffffff002630c578 zfs (zfs) @ /usr/src/sys/kern/vfs_mount.c:1058
2nd 0xffffff0026353578 devfs (devfs) @ /usr/src/sys/kern/vfs_subr.c:2091
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2a
_witness_debugger() at _witness_debugger+0x49
witness_checkorder() at witness_checkorder+0x7ea
__lockmgr_args() at __lockmgr_args+0xcd4
vop_stdlock() at vop_stdlock+0x39
VOP_LOCK1_APV() at VOP_LOCK1_APV+0x9b
_vn_lock() at _vn_lock+0x5d
vget() at vget+0x6c
devfs_allocv() at devfs_allocv+0xee
devfs_root() at devfs_root+0x41
vfs_donmount() at vfs_donmount+0xfa8
nmount() at nmount+0x74
syscall() at syscall+0x1cd
Xfast_syscall() at Xfast_syscall+0xe1
--- syscall (378, FreeBSD ELF64, nmount), rip = 0x8007d266c, rsp = 0x7fffffffdcb8, rbp = 0x7fffffffe250 ---

How-To-Repeat: make kernel with debug options and boot:

options KDB
options KDB_TRACE
options KDB_UNATTENDED
options DDB

options INVARIANTS
options INVARIANT_SUPPORT

options WITNESS

options DEBUG_LOCKS
options DEBUG_VFS_LOCKS
options DIAGNOSTIC
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2010-01-16 12:36:43 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

Over to maintainer(s).
Comment 2 Andrei V. Lavreniyuk 2010-01-29 07:56:53 UTC
FreeBSD opensolaris.technica-03.local 8.0-STABLE FreeBSD 8.0-STABLE #0: 
Fri Jan 29 06:12:47 UTC 2010 
root@opensolaris.technica-03.local:/usr/obj/usr/src/sys/SMP64R  amd64




lock order reversal:
1st 0xffffff00093727f8 zfs (zfs) @ /usr/src/sys/kern/vfs_mount.c:1058
2nd 0xffffff000933f7f8 devfs (devfs) @ /usr/src/sys/kern/vfs_subr.c:2091
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2a
_witness_debugger() at _witness_debugger+0x2e
witness_checkorder() at witness_checkorder+0x80b
__lockmgr_args() at __lockmgr_args+0xcdd
vop_stdlock() at vop_stdlock+0x39
VOP_LOCK1_APV() at VOP_LOCK1_APV+0xbf
_vn_lock() at _vn_lock+0x47
vget() at vget+0x7b
devfs_allocv() at devfs_allocv+0x100
devfs_root() at devfs_root+0x48
vfs_donmount() at vfs_donmount+0xfa1
nmount() at nmount+0x63
syscall() at syscall+0x1e6
Xfast_syscall() at Xfast_syscall+0xe1
--- syscall (378, FreeBSD ELF64, nmount), rip = 0x8007aa6bc, rsp = 
0x7fffffffdd28, rbp = 0x800a06048 ---




-- 
  Best regards, Andrei V. Lavreniyuk.
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:13 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped