Skip to content

Instantly share code, notes, and snippets.

@kbruner
Created November 3, 2020 07:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kbruner/cb7d6ec280100f7129e738b0b3b85829 to your computer and use it in GitHub Desktop.
Save kbruner/cb7d6ec280100f7129e738b0b3b85829 to your computer and use it in GitHub Desktop.
FreeBSD lock order reversal panic
All buffers synced.
lock order reversal:
1st 0xfffff80007dc7c10 zfs (zfs, lockmgr) @ /usr/src/sys/kern/vfs_mount.c:1711
2nd 0xfffff801168baa20 devfs (devfs, lockmgr) @ /usr/src/sys/fs/msdosfs/msdosfs_vfsops.c:943
lock order devfs -> zfs established at:
#0 0xffffffff80c4ddfd at witness_checkorder+0x46d
#1 0xffffffff80bb1e25 at lockmgr_xlock+0x55
#2 0xffffffff80cd7874 at _vn_lock+0x54
#3 0xffffffff80cb72c1 at vfs_domount+0xe71
#4 0xffffffff80cb59c2 at vfs_donmount+0x872
#5 0xffffffff80cb9e27 at kernel_mount+0x57
#6 0xffffffff80cbc521 at parse_mount+0x4a1
#7 0xffffffff80cbaa49 at vfs_mountroot+0x589
#8 0xffffffff80b718bf at start_init+0x1f
#9 0xffffffff80b9b590 at fork_exit+0x80
#10 0xffffffff80ffe68e at fork_trampoline+0xe
lock order zfs -> devfs attempted at:
#0 0xffffffff80c4e75c at witness_checkorder+0xdcc
#1 0xffffffff80bb1e25 at lockmgr_xlock+0x55
#2 0xffffffff80cd7874 at _vn_lock+0x54
#3 0xffffffff80a8bae4 at msdosfs_sync+0x1d4
#4 0xffffffff80a8b69f at msdosfs_unmount+0x2f
#5 0xffffffff80cb839f at dounmount+0x41f
#6 0xffffffff80cc2f6a at vfs_unmountall+0x6a
#7 0xffffffff80c9817b at bufshutdown+0x2cb
#8 0xffffffff80bdff43 at kern_reboot+0x213
#9 0xffffffff80bdfcd4 at sys_reboot+0x3a4
#10 0xffffffff8102abe5 at amd64_syscall+0x135
#11 0xffffffff80ffdf5e at fast_syscall_common+0xf8
Uptime: 32m2s
---<>---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment