Bug 269608 - [lor] Lock order reversal ufs/defs/nullfs
Summary: [lor] Lock order reversal ufs/defs/nullfs
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 13.1-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-17 01:17 UTC by artem
Modified: 2023-02-17 01:18 UTC (History)
0 users

See Also:


Attachments
startup lor (4.92 KB, text/plain)
2023-02-17 01:17 UTC, artem
no flags Details
shutdown lor (2.25 KB, text/plain)
2023-02-17 01:18 UTC, artem
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description artem 2023-02-17 01:17:42 UTC
Created attachment 240195 [details]
startup lor

Running 13-stable. gmirror, SU, SU journaling

On every boot i get LOR and on shutdown too

startup lor is in the attachement (between ufs/nullfs/devfs)

the shutdown lor is this:

Feb 17 03:55:36 omni kernel: lock order reversal:
Feb 17 03:55:36 omni kernel:  1st 0xfffffe0107607040 struct mount mtx (struct mount mtx, sleep mutex) @ /usr/src/sys/ufs/ffs/ffs_softdep.c:2150
Feb 17 03:55:36 omni kernel:  2nd 0xfffff80006a0a898 FFS (FFS Lock, sleep mutex) @ /usr/src/sys/ufs/ffs/ffs_softdep.c:2153
Feb 17 03:55:36 omni kernel: lock order FFS Lock -> struct mount mtx established at:
Feb 17 03:55:36 omni kernel: #0 0xffffffff80cab8cd at witness_checkorder+0x32d
Feb 17 03:55:36 omni kernel: #1 0xffffffff80c194e4 at __mtx_lock_flags+0x94
Feb 17 03:55:36 omni kernel: #2 0xffffffff80fb56ed at quotaoff_inchange+0xbd
Feb 17 03:55:36 omni kernel: #3 0xffffffff80fa4e3a at ffs_flushfiles+0x12a
Feb 17 03:55:36 omni kernel: #4 0xffffffff80f8455d at softdep_flushfiles+0xad
Feb 17 03:55:36 omni kernel: #5 0xffffffff80fa675a at ffs_unmount+0x6a
Feb 17 03:55:36 omni kernel: #6 0xffffffff80d1a221 at dounmount+0x391
Feb 17 03:55:36 omni kernel: #7 0xffffffff80d2699a at vfs_unmountall+0x6a
Feb 17 03:55:36 omni kernel: #8 0xffffffff80cf946c at bufshutdown+0x31c
Feb 17 03:55:36 omni kernel: #9 0xffffffff80c3e733 at kern_reboot+0x203
Feb 17 03:55:36 omni kernel: #10 0xffffffff80c3e4d0 at sys_reboot+0x390
Feb 17 03:55:36 omni kernel: #11 0xffffffff8113752e at amd64_syscall+0x12e
Feb 17 03:55:36 omni kernel: #12 0xffffffff8110b7cb at fast_syscall_common+0xf8
Feb 17 03:55:36 omni kernel: lock order struct mount mtx -> FFS Lock attempted at:
Feb 17 03:55:36 omni kernel: #0 0xffffffff80cac19d at witness_checkorder+0xbfd
Feb 17 03:55:36 omni kernel: #1 0xffffffff80c194e4 at __mtx_lock_flags+0x94
Feb 17 03:55:36 omni kernel: #2 0xffffffff80f84844 at softdep_flushfiles+0x394
Feb 17 03:55:36 omni kernel: #3 0xffffffff80fa675a at ffs_unmount+0x6a
Feb 17 03:55:36 omni kernel: #4 0xffffffff80d1a221 at dounmount+0x391
Feb 17 03:55:36 omni kernel: #5 0xffffffff80d2699a at vfs_unmountall+0x6a
Feb 17 03:55:36 omni kernel: #6 0xffffffff80cf946c at bufshutdown+0x31c
Feb 17 03:55:36 omni kernel: #7 0xffffffff80c3e733 at kern_reboot+0x203
Feb 17 03:55:36 omni kernel: #8 0xffffffff80c3e4d0 at sys_reboot+0x390
Feb 17 03:55:36 omni kernel: #9 0xffffffff8113752e at amd64_syscall+0x12e
Feb 17 03:55:36 omni kernel: #10 0xffffffff8110b7cb at fast_syscall_common+0xf8
Comment 1 artem 2023-02-17 01:18:16 UTC
Created attachment 240196 [details]
shutdown lor