Article View: muc.lists.freebsd.bugs
Article #771[Bug 301170] nvidia-drm-612-kmod: acquiring duplicate lock of same type: "os.rwlock_sx"
From: bugzilla-noreply
Date: Thu, 26 Nov 2026 23:25
Date: Thu, 26 Nov 2026 23:25
117 lines
6280 bytes
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
Technical Details
Message-ID:
<bug-301170-227@https.bugs.freebsd.org/bugzilla/>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail From: bugzilla-noreply@freebsd.org Newsgroups: muc.lists.freebsd.bugs Subject: [Bug 301170] nvidia-drm-612-kmod: acquiring duplicate lock of same type: "os.rwlock_sx" Date: Thu, 26 Nov 2026 23:25:29 +0000 Organization: Newsgate at muc.de e.V. Approved: news-admin@muc.de Distribution: world Message-ID: <bug-301170-227@https.bugs.freebsd.org/bugzilla/> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="76404"; mail-complaints-to="news-admin@muc.de" X-Original-To: bugs@mlmmj.nyi.freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795735530; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M48Kz7o57xZUmL42q/lytw4CEjiNe97U0evhkQdeT54=; b=D6ngs7NLISiKEdE8wjXGC61Kbvl1I5PCIZCB0eSeFhU13x6ilPLO604dB3YI9riuchs3NE YJ90U5pHOlhN9yq6Z92/Uu46tUZgcrYpfWZfXVpFi4zPkPw7FxsmusOJC7m0gvgGHlwyhc +wI7JzyNKwaFvuaS4MR0Rfs8LOKFOL2UvHURZ+MyAy9T4wGXaCspDxH65GUrwbwnIPFBbv 0uZkV+mABN1MlODIVtKgUeRJW0TSmhXQPSV1x9xElBCZhMYV2cc3k4Fa4Dae+BMVn+Txmw tQw1kI32iglZwc3qceI8VkF4QhTAVxaJ7rL8oniYbTN8NKIM/gRwedNR7dYKyg== X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Auto-Submitted: auto-generated Precedence: list X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes