Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Feb 2026 22:13:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 293274] [lor] sys/fs/tarfs/tarfs_test:tarfs_large  ->  lock order reversal
Message-ID:  <bug-293274-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293274

            Bug ID: 293274
           Summary: [lor] sys/fs/tarfs/tarfs_test:tarfs_large  ->  lock
                    order reversal
           Product: Base System
           Version: 16.0-CURRENT
          Hardware: Any
               URL: https://ci.freebsd.org/job/FreeBSD-main-riscv64-test/1
                    6506/testReport/sys.fs.tarfs/tarfs_test/tarfs_large/
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: des@FreeBSD.org
          Reporter: siva@FreeBSD.org
                CC: bugs@FreeBSD.org

amd64:

sys/fs/tarfs/tarfs_test:tarfs_large  ->  lock order reversal:
 1st 0xfffff80137610c78 ufs (ufs, lockmgr) @ /usr/src/sys/kern/vfs_mount.c:2276
 2nd 0xfffff801374fde30 tarfsz (tarfsz, lockmgr) @
/usr/src/sys/fs/tarfs/tarfs_io.c:698
lock order tarfsz -> ufs established at:
#0 0xffffffff80c42f84 at witness_checkorder+0x364
#1 0xffffffff80b93f96 at lockmgr_lock_flags+0x76
#2 0xffffffff80f7a90d at ffs_lock+0x8d
#3 0xffffffff811fce82 at VOP_LOCK1_APV+0x32
#4 0xffffffff80cedfd3 at _vn_lock+0x53
#5 0xffffffff832d9986 at tarfs_zread+0x1e6
#6 0xffffffff811fb055 at VOP_READ_APV+0x55
#7 0xffffffff832d9094 at tarfs_io_read+0x94
#8 0xffffffff832d91c2 at tarfs_io_read_buf+0x52
#9 0xffffffff832dcb51 at tarfs_alloc_mount+0x2c1
#10 0xffffffff832dc393 at tarfs_mount+0x413
#11 0xffffffff80cca7aa at vfs_domount_first+0x26a
#12 0xffffffff80cc6c68 at vfs_domount+0x348
#13 0xffffffff80cc55d1 at vfs_donmount+0x8a1
#14 0xffffffff80cc4d00 at sys_nmount+0x60
#15 0xffffffff81129a09 at amd64_syscall+0x169
#16 0xffffffff810f8acb at fast_syscall_common+0xf8
lock order ufs -> tarfsz attempted at:
#0 0xffffffff80c438cf at witness_checkorder+0xcaf
#1 0xffffffff80b9408a at lockmgr_lock_flags+0x16a
#2 0xffffffff811fce82 at VOP_LOCK1_APV+0x32
#3 0xffffffff80cedfd3 at _vn_lock+0x53
#4 0xffffffff832d94bb at tarfs_io_fini+0x3b
#5 0xffffffff832dc498 at tarfs_unmount+0x88
#6 0xffffffff80cc7b48 at dounmount+0x658
#7 0xffffffff80cc747c at kern_unmount+0x32c
#8 0xffffffff81129a09 at amd64_syscall+0x169
#9 0xffffffff810f8acb at fast_syscall_common+0xf8

riscv64:

sys/fs/tarfs/tarfs_test:tarfs_large  ->  lock order reversal:
 1st 0xffffffd010291750 ufs (ufs, lockmgr) @ /usr/src/sys/kern/vfs_mount.c:2276
 2nd 0xffffffd0103cbe30 tarfsz (tarfsz, lockmgr) @
/usr/src/sys/fs/tarfs/tarfs_io.c:698
lock order tarfsz -> ufs established at:
#0 0xffffffc00039e882 at witness_lock_order_add+0xf0
#1 0xffffffc00039dd92 at witness_checkorder+0x2f0
#2 0xffffffc000307556 at lockmgr_lock_flags+0x68
#3 0xffffffc0005aa256 at ffs_lock+0x9e
#4 0xffffffc00063f48c at $x+0x4
#5 0xffffffc00042cca8 at _vn_lock+0x4e
#6 0xffffffc0895a191e at .Lpcrel_hi36+0x16
#7 0xffffffc00063d54e at $x+0x4
#8 0xffffffc0895a1110 at .L0 +0x4
#9 0xffffffc0895a1236 at .L0 +0x8
#10 0xffffffc0895a430c at .L0 +0x10
#11 0xffffffc0895a3bf4 at .L0 +0xc
#12 0xffffffc00040d7ee at vfs_domount_first+0x224
#13 0xffffffc00040a15c at vfs_domount+0x280
#14 0xffffffc000408bd6 at vfs_donmount+0x83e
#15 0xffffffc000408364 at sys_nmount+0x54
#16 0xffffffc000621976 at do_trap_user+0x1f4
#17 0xffffffc00060ed82 at cpu_exception_handler_user+0x72
lock order ufs -> tarfsz attempted at:
#0 0xffffffc00039e556 at witness_checkorder+0xab4
#1 0xffffffc000307636 at $x+0x86
#2 0xffffffc0003fe02e at vop_stdlock+0x1c
#3 0xffffffc00063f48c at $x+0x4
#4 0xffffffc00042cca8 at _vn_lock+0x4e
#5 0xffffffc0895a1506 at .L0 +0x14
#6 0xffffffc0895a3ce2 at .L0 +0x4
#7 0xffffffc00040af0e at dounmount+0x668
#8 0xffffffc00040a83e at kern_unmount+0x298
#9 0xffffffc00040a59a at sys_unmount+0x14
#10 0xffffffc000621976 at do_trap_user+0x1f4
#11 0xffffffc00060ed82 at cpu_exception_handler_user+0x72

@des starting triage with you since you made the last significant edit and
introduced tarfs

-- 
You are receiving this mail because:
You are on the CC list for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-293274-227>