Bug 226007 - LOR after unmounting UFS partition on 'memstick' media
Summary: LOR after unmounting UFS partition on 'memstick' media
Status: Closed Not A Bug
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-fs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-18 18:40 UTC by vidwer+fbsdbugs
Modified: 2018-02-19 09:53 UTC (History)
0 users

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-18 18:40:32 UTC
lock order reversal:
 1st 0xfffff800b70d07c8 zfs (zfs) @ /usr/src/sys/kern/vfs_mount.c:1280
 2nd 0xfffff800b703db78 devfs (devfs) @ /usr/src/sys/ufs/ffs/ffs_vfsops.c:1373
stack backtrace:
#0 0xffffffff80b2e4d3 at witness_debugger+0x73
#1 0xffffffff80b2e354 at witness_checkorder+0xe34
#2 0xffffffff80a9e591 at lockmgr_lock_fast_path+0x1b1
#3 0xffffffff810fdc49 at VOP_LOCK1_APV+0xd9
#4 0xffffffff80ba9ae6 at _vn_lock+0x66
#5 0xffffffff80dc10a3 at ffs_flushfiles+0x93
#6 0xffffffff80dc3767 at ffs_unmount+0x87
#7 0xffffffff80b90609 at dounmount+0x519
#8 0xffffffff80b90060 at sys_unmount+0x310
#9 0xffffffff80f7ed0b at amd64_syscall+0x79b
#10 0xffffffff80f5a70d at fast_syscall_common+0x101

root@albatros:~ # gpart show da0
=>      3  8056821  da0  GPT  (3.8G)
        3     1600    1  efi  (800K)
     1603      137    2  freebsd-boot  (69K)
     1740  1942016    3  freebsd-ufs  (948M)
  1943756     2048    4  freebsd-swap  (1.0M)
  1945804  6111020       - free -  (2.9G)

root@albatros:~ # mount /dev/da0p3 /mnt
root@albatros:~ # umount /dev/da0p3
Comment 1 vidwer+fbsdbugs 2018-02-18 22:35:01 UTC
Build: FreeBSD 12-CURRENT r329531
Hardware: amd64

The commands executed to gather the LOR from dmesg were:

# mount /dev/da0p3 /mnt
# strings /mnt/boot/kernel/kernel | egrep '^@\(#\)'
# umount /mnt