🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.freebsd.bugs
2 messages
2 total messages Started by bugzilla-noreply Thu, 26 Nov 2026 23:25
[Bug 301170] nvidia-drm-612-kmod: acquiring duplicate lock of same type: "os.rwlock_sx"
#771
Author: bugzilla-noreply
Date: Thu, 26 Nov 2026 23:25
117 lines
6280 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301170

            Bug ID: 301170
           Summary: nvidia-drm-612-kmod: acquiring duplicate lock of same
                    type: "os.rwlock_sx"
           Product: Base System
           Version: 16.0-CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: rz@fabmicro.ru

Created attachment 277772
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=277772&action=edit
dmesg during boot showing witness debugger messages from nvidia driver

On 16.0-CURRENT during boot I receive a number of reports from witness debugger
about duplicate lock acquisition and lock order reversal in nvidia driver.
These started to appear in my dmesg some two months ago. Syncing and rebuilding
the kernel from scratch and reinstalling drivers does not satisfy witness
debugger.

My setup:

```
FreeBSD 16.0-CURRENT #0 main-26e7dea8e0eb: Fri Nov 27 00:17:04 +05 2026
   
rz@butterfly:/usr/home/rz/FreeBSD-src/src-current/obj/amd64.amd64/sys/GENERIC
amd64

FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git
llvmorg-19.1.7-0-gcd708029e0b2)

rz@butterfly:~ % pkg info nvidia\*
nvidia-drm-612-kmod-580-580.196.07.1600031
nvidia-kmod-580-580.196.07.1600031

rz@butterfly:~ % pkg info drm\*
drm-612-kmod-6.12.110.1600031_3
```

The messages I get:

```
[15.480261] acquiring duplicate lock of same type: "os.lock_mtx"
[15.480272]  1st os.lock_mtx @ nvidia_os.c:877
[15.480277]  2nd os.lock_mtx @ nvidia_os.c:877
[15.480281] stack backtrace:
[15.480546] #0 0xffffffff80cd20dc at witness_debugger+0x6c
[15.480726] #1 0xffffffff80c308e1 at __mtx_lock_flags+0x91
[15.480915] #2 0xffffffff84e8317b at os_acquire_spinlock+0x1b
[15.481161] #3 0xffffffff84afacb0 at _nv052749rm+0x10

[17.545011] lock order reversal:
[17.545019]  1st 0xfffff8012672d290 fops_sx (fops_sx, sx) @ nvidia_subr.c:378
[17.545026]  2nd 0xfffff80001cb4a40 os.rwlock_sx (os.rwlock_sx, sx) @
nvidia_os.c:763
[17.545034]  3rd 0xfffff8012672d090 fops_sx (fops_sx, sx) @ nvidia_subr.c:1020
[17.545302] lock order fops_sx -> os.rwlock_sx established at:
[17.545307] #0 0xffffffff80cd12ca at witness_checkorder+0x36a
[17.545500] #1 0xffffffff80c65290 at _sx_xlock+0x60
[17.545684] #2 0xffffffff84e82f62 at os_acquire_rwlock_write+0x32
[17.545924] #3 0xffffffff84afaee0 at _nv052735rm+0x10
[17.545928] lock order os.rwlock_sx -> fops_sx attempted at:
[17.546103] #0 0xffffffff80cd1c9e at witness_checkorder+0xd3e
[17.546447] #1 0xffffffff80c65290 at _sx_xlock+0x60
[17.546450] #2 0xffffffff84e868a7 at nv_add_mapping_context_to_file+0x77
[17.546635] #3 0xffffffff84d6c812 at _nv054161rm+0x172

[17.548109] acquiring duplicate lock of same type: "os.lock_sx"
[17.548118]  1st os.lock_sx @ nvidia_os.c:628
[17.548123]  2nd os.lock_sx @ nvidia_os.c:628
[17.548127] stack backtrace:
[17.548348] #0 0xffffffff80cd20dc at witness_debugger+0x6c
[17.548568] #1 0xffffffff80c65290 at _sx_xlock+0x60
[17.548755] #2 0xffffffff84e82bb2 at os_acquire_mutex+0x32
[17.548997] #3 0xffffffff84afad40 at _nv052727rm+0x10

[17.549003] lock order reversal:
[17.549006]  1st 0xfffff80001cb4a40 os.rwlock_sx (os.rwlock_sx, sx) @
nvidia_os.c:775
[17.549014]  2nd 0xfffff800016cb280 os.lock_sx (os.lock_sx, sx) @
nvidia_os.c:628
[17.549021]  3rd 0xfffff800016cb260 os.rwlock_sx (os.rwlock_sx, sx) @
nvidia_os.c:763
[17.549201] lock order os.rwlock_sx -> os.lock_sx established at:
[17.549206] #0 0xffffffff80cd12ca at witness_checkorder+0x36a
[17.549373] #1 0xffffffff80c65290 at _sx_xlock+0x60
[17.549555] #2 0xffffffff84e82bb2 at os_acquire_mutex+0x32
[17.549793] #3 0xffffffff84afad40 at _nv052727rm+0x10
[17.549797] lock order os.lock_sx -> os.rwlock_sx attempted at:
[17.549965] #0 0xffffffff80cd1c9e at witness_checkorder+0xd3e
[17.550124] #1 0xffffffff80c663a4 at _sx_slock_int+0x64
[17.550536] #2 0xffffffff84e82f22 at os_acquire_rwlock_read+0x32
[17.550540] #3 0xffffffff84afae80 at _nv052733rm+0x10
```

Complete dmesg output attached.

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301170] graphics/nvidia-drm-612-kmod: acquiring duplicate lock of same type: "os.rwlock_sx"
#778
Author: bugzilla-noreply
Date: Fri, 27 Nov 2026 08:27
23 lines
3021 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301170

Mark Linimon <linimon@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|bugs@FreeBSD.org            |x11@FreeBSD.org
                 CC|                            |x11@FreeBSD.org
            Summary|nvidia-drm-612-kmod:        |graphics/nvidia-drm-612-kmo
                   |acquiring duplicate lock of |d: acquiring duplicate lock
                   |same type: "os.rwlock_sx"   |of same type:
                   |                            |"os.rwlock_sx"
              Flags|                            |maintainer-feedback?(x11@Fr
                   |                            |eeBSD.org)

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads