Bug 225883 - lock order reversal during 'make cdrom'
Summary: lock order reversal during 'make cdrom'
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-14 11:07 UTC by vidwer+fbsdbugs
Modified: 2018-02-16 03:45 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 vidwer+fbsdbugs 2018-02-14 11:07:39 UTC
build: FreeBSD 12.0-CURRENT r329245
hardware: amd64

lock order reversal:
 1st 0xfffff8003358a530 fatlk (fatlk) @ /usr/src/sys/fs/msdosfs/msdosfs_fat.c:746
 2nd 0xfffffe0000e391c0 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:3566
stack backtrace:
#0 0xffffffff80b2e403 at witness_debugger+0x73
#1 0xffffffff80b2e284 at witness_checkorder+0xe34
#2 0xffffffff80a9ee0b at __lockmgr_args+0x88b
#3 0xffffffff80b7661d at getblk+0x13d
#4 0xffffffff80b762d4 at breadn_flags+0x34
#5 0xffffffff80999bb5 at chainalloc+0x2b5
#6 0xffffffff80998be5 at clusteralloc+0x265
#7 0xffffffff8099edaf at msdosfs_mkdir+0x6f
#8 0xffffffff810fd189 at VOP_MKDIR_APV+0xd9
#9 0xffffffff80ba6af2 at kern_mkdirat+0x1e2
#10 0xffffffff80f7eceb at amd64_syscall+0x79b
#11 0xffffffff80f5a80d at fast_syscall_common+0x101
lock order reversal:
 1st 0xfffff8016a0999a0 msdosfs (msdosfs) @ /usr/src/sys/fs/msdosfs/msdosfs_denode.c:164
 2nd 0xfffffe0000e3bc00 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:3566
stack backtrace:
#0 0xffffffff80b2e403 at witness_debugger+0x73
#1 0xffffffff80b2e284 at witness_checkorder+0xe34
#2 0xffffffff80a9ee0b at __lockmgr_args+0x88b
#3 0xffffffff80b7661d at getblk+0x13d
#4 0xffffffff80b762d4 at breadn_flags+0x34
#5 0xffffffff8099b4db at uniqdosname+0xbb
#6 0xffffffff8099f0b1 at msdosfs_mkdir+0x371
#7 0xffffffff810fd189 at VOP_MKDIR_APV+0xd9
#8 0xffffffff80ba6af2 at kern_mkdirat+0x1e2
#9 0xffffffff80f7eceb at amd64_syscall+0x79b
#10 0xffffffff80f5a80d at fast_syscall_common+0x101
lock order reversal:
 1st 0xfffff8006a7675f0 zfs (zfs) @ /usr/src/sys/kern/vfs_mount.c:1280
 2nd 0xfffff8006a703068 devfs (devfs) @ /usr/src/sys/fs/msdosfs/msdosfs_vfsops.c:934
stack backtrace:
#0 0xffffffff80b2e403 at witness_debugger+0x73
#1 0xffffffff80b2e284 at witness_checkorder+0xe34
#2 0xffffffff80a9e4d1 at lockmgr_lock_fast_path+0x1b1
#3 0xffffffff810fdc09 at VOP_LOCK1_APV+0xd9
#4 0xffffffff80ba99b6 at _vn_lock+0x66
#5 0xffffffff8099cdb0 at msdosfs_sync+0x1a0
#6 0xffffffff80b90515 at dounmount+0x555
#7 0xffffffff80b8ff30 at sys_unmount+0x310
#8 0xffffffff80f7eceb at amd64_syscall+0x79b
#9 0xffffffff80f5a80d at fast_syscall_common+0x101
lock order reversal:
 1st 0xffffffff81d1fb58 GEOM topology (GEOM topology) @ /usr/src/sys/fs/msdosfs/msdosfs_vfsops.c:795
 2nd 0xfffffe0000e36780 bufwait (bufwait) @ /usr/src/sys/kern/vfs_subr.c:1757
stack backtrace:
#0 0xffffffff80b2e403 at witness_debugger+0x73
#1 0xffffffff80b2e284 at witness_checkorder+0xe34
#2 0xffffffff80a9ee0b at __lockmgr_args+0x88b
#3 0xffffffff80b96453 at flushbuflist+0x103
#4 0xffffffff80b960e1 at bufobj_invalbuf+0x81
#5 0xffffffff80a197f6 at g_vfs_close+0x46
#6 0xffffffff8099ca9e at msdosfs_unmount+0x12e
#7 0xffffffff80b904d9 at dounmount+0x519
#8 0xffffffff80b8ff30 at sys_unmount+0x310
#9 0xffffffff80f7eceb at amd64_syscall+0x79b
#10 0xffffffff80f5a80d at fast_syscall_common+0x101