Created attachment 193618 [details] LOR on 12-CURRENT shutdown after install is complete I'm getting the attached LOR when I install the FreeBSD 12-CURRENT snapshot r333017 on a Dell C6220 system. It happens with the i386 ISO (the screenshot is from amd64, with identical lines in vfs_mount and vfs_subr), too. It's difficult to get more information as the system is in the process of shutting down. I can reproduce the LOR on that system with a new install reliably. FreeBSD 11.1 does not have that LOR and the 11.2-BETA2 ISOs I was testing (amd64 and i386) also do not emit that warning.
CURRENT is a WITNESS kernel. 11.1 is not. I suspect 11.2-BETA2 is not either. Non-WITNESS kernels will never print LORs. So the distinction from 11.x is not really surprising. Here's the transcribed LOR for other readers: lock order reversal: 1st ... isofs (isofs) @ .../sys/kern/vfs_mount.c:1335 2nd ... devfs (devfs) @ .../sys/kern/vfs_subr.c:2570 (No other stack or previous order info.) I'm not sure if this is a known LOR or not. I'll look briefly.
Looks like a maybe similar LOR was reported in PR 161112 (FBSD 9 era). The stack there is: witness_checkorder+0x839 __lockmgr_args(c4a835a8,80400,c4a835c8,0,0,...) at __lockmgr_args+0x824 vop_stdlock(e7365af0,c0f30e50,e7365af4,80400,c4a83550,...) at vop_stdlock+0x62 VOP_LOCK1_VPU(c101f020,e7365af0,c4c30110,c1059a80,c4a83550,...) at VOP_LOCK1_APV+0xb5 vn_lock(c4a83550,80400,c0f30e50,55b,c492bd00,...) at _vn_lock+0x5e ffs_flushfiles(c496e798,2,c4b432e0,0,c1059aa0,...) at ffs_flushfiles+0xa7 ffs_unmount(c496e798,80000,e7365bc8,4ef,e7365bf8,...) at ffs_unmount+0x180 dounmount(c496e798,80000,c4b432e0,d8d3ec2c,0,...) at dounmount+0x4a1 vfs_unmountall(c0efb5ad,0,c0efb4fb,139,c09e17da,...) at vfs_unmountall+0x4e kern_reboot(8,0,c0efb4fb,ba,2,...) at kern_reboot+0x4d2 sys_reboot(c4b432e0,e7365cec,c0f493b6,e7365d80,246,...) at sys_reboot+0x6c The same LOR as 161112 was reported in PR 144929 comment #2 (9-CURRENT).
(No action was taken on either of these LORs, at least according to Bugzilla, so it is possible this is the same LOR. Yes, the line numbers are significantly different but functions sometimes move around.)
fixed in https://cgit.freebsd.org/src/commit?id=dbc689cdef0cc8ff11171642cdcf107dfbc3fb41