Thread View: muc.lists.freebsd.current
1 messages
1 total messages
Started by Ruslan Zalata
Thu, 19 Nov 2026 20:34
16.0-head reports lots of messages from witness debugger about lock misuse
Author: Ruslan Zalata
Date: Thu, 19 Nov 2026 20:34
Date: Thu, 19 Nov 2026 20:34
126 lines
11105 bytes
11105 bytes
Hello all FreeBSD fellows! I'm receiving lots of messages from witness debugger reporting lock misuse. The more 16.0-head development advances, the more and more reports I get. Is this normal ? Is it happening to me only ? Is it some fundamental kernel framework undergoing rework ? I think it began in middle of Aug 2026 with a single report in WiFi stack (I posted about it earlier with commit number causing it). Here below is what I currently get during single boot of my laptop. PS: Witness debugger is enabled by INVARIANTS which is enabled in 16.0 GENERIC kernconf by default. I suppose everyone should be getting these reports. rz@butterfly:~ % uname -a FreeBSD butterfly 16.0-CURRENT FreeBSD 16.0-CURRENT #11 main-a8fd8a5a365a: Fri Nov 20 00:41:00 +05 2026 rz@butterfly:/usr/home/rz/FreeBSD-src/src-current/obj/amd64.amd64/sys/GENERIC amd64 [7.112123] lock order reversal: (sleepable after non-sleepable) [7.112136] 1st 0xfffffe014a907068 iwm0_com_lock (iwm0_com_lock, sleep mutex) @ /usr/home/rz/FreeBSD-src/src-current/sys/net80211/ieee80211_ioctl.c:3711 [7.112155] 2nd 0xffffffff81e8ee48 ifnet_sx (ifnet_sx, sx) @ /usr/home/rz/FreeBSD-src/src-current/sys/net/if.c:1485 [7.112550] lock order iwm0_com_lock -> ifnet_sx attempted at: [7.112557] #0 0xffffffff80ccface at witness_checkorder+0xd3e [7.112808] #1 0xffffffff80c641c4 at _sx_slock_int+0x64 [7.112990] #2 0xffffffff80da7025 at if_foreach_group+0x35 [7.113345] #3 0xffffffff80f05eab at dump_iface+0xc3b [7.113349] #4 0xffffffff80f04ad6 at rtnl_handle_ifnet_event+0x96 [7.113519] #5 0xffffffff80e088a2 at ieee80211_notify_ifnet_change+0x62 [7.113687] #6 0xffffffff80e35952 at ieee80211_start_locked+0x72 [7.113862] #7 0xffffffff80e18573 at ieee80211_ioctl+0x323 [7.114181] #8 0xffffffff80da98bc at ifhwioctl+0xe1c [7.114185] #9 0xffffffff80daadc2 at ifioctl+0x702 [7.114344] #10 0xffffffff80cd741d at kern_ioctl+0x2bd [7.114689] #11 0xffffffff80cd70e2 at user_ioctl+0x152 [7.114693] #12 0xffffffff811ffb2d at amd64_syscall+0x17d [7.114884] #13 0xffffffff811cb79b at fast_syscall_common+0xf8 [7.206555] iwm0: code 500, frame 0/19 e0000004 unhandled ... [26.655438] acquiring duplicate lock of same type: "os.lock_mtx" [26.655448] 1st os.lock_mtx @ nvidia_os.c:913 [26.655451] 2nd os.lock_mtx @ nvidia_os.c:913 [26.655455] stack backtrace: [26.655712] #0 0xffffffff80ccff0c at witness_debugger+0x6c [26.655886] #1 0xffffffff80c2e6b1 at __mtx_lock_flags+0x91 [26.656066] #2 0xffffffff84d4072b at os_acquire_spinlock+0x1b [26.656300] #3 0xffffffff84a1fa80 at _nv049080rm+0x10 [27.431276] lock order reversal: [27.431285] 1st 0xfffff8002afa8c90 fops_sx (fops_sx, sx) @ nvidia_subr.c:381 [27.431293] 2nd 0xfffff800016351a0 os.rwlock_sx (os.rwlock_sx, sx) @ nvidia_os.c:765 [27.431300] 3rd 0xfffff80001e18c90 fops_sx (fops_sx, sx) @ nvidia_subr.c:1063 [27.431668] lock order fops_sx -> os.rwlock_sx established at: [27.431674] #0 0xffffffff80ccf0fa at witness_checkorder+0x36a [27.431864] #1 0xffffffff80c630b0 at _sx_xlock+0x60 [27.432046] #2 0xffffffff84d40462 at os_acquire_rwlock_write+0x32 [27.432284] #3 0xffffffff84a1fcb0 at _nv049066rm+0x10 [27.432287] lock order os.rwlock_sx -> fops_sx attempted at: [27.432462] #0 0xffffffff80ccface at witness_checkorder+0xd3e [27.432804] #1 0xffffffff80c630b0 at _sx_xlock+0x60 [27.432807] #2 0xffffffff84d441bf at nv_add_mapping_context_to_file+0x7f [27.432993] #3 0xffffffff84c24496 at _nv050394rm+0x176 [27.433014] lock order reversal: [27.433016] 1st 0xfffff80001e18d28 nvidia_file_va_lock (nvidia_file_va_lock, sx) @ nvidia_subr.c:2113 [27.433023] 2nd 0xfffff80001e18c90 fops_sx (fops_sx, sx) @ nvidia_subr.c:1576 [27.433194] lock order fops_sx -> nvidia_file_va_lock established at: [27.433198] #0 0xffffffff80ccf0fa at witness_checkorder+0x36a [27.433362] #1 0xffffffff80c630b0 at _sx_xlock+0x60 [27.433539] #2 0xffffffff84d442b6 at nv_add_mapping_context_to_file+0x176 [27.433723] #3 0xffffffff84c24496 at _nv050394rm+0x176 [27.433892] lock order nvidia_file_va_lock -> fops_sx attempted at: [27.433896] #0 0xffffffff80ccface at witness_checkorder+0xd3e [27.434059] #1 0xffffffff80c630b0 at _sx_xlock+0x60 [27.434236] #2 0xffffffff84d44b32 at nvidia_mmap_ctl_single+0x82 [27.434413] #3 0xffffffff84d3ecd8 at nvidia_ctl_mmap_single+0x48 [27.434752] #4 0xffffffff8107b6b2 at vm_mmap_cdev+0x72 [27.434755] #5 0xffffffff80abf16b at devfs_mmap_f+0x13b [27.434942] #6 0xffffffff81079954 at kern_mmap+0x9e4 [27.435308] #7 0xffffffff81078f4d at sys_mmap+0x4d [27.435311] #8 0xffffffff811ffb2d at amd64_syscall+0x17d [27.435500] #9 0xffffffff811cb79b at fast_syscall_common+0xf8 ... [27.436849] acquiring duplicate lock of same type: "os.lock_sx" [27.436857] 1st os.lock_sx @ nvidia_os.c:630 [27.436861] 2nd os.lock_sx @ nvidia_os.c:630 [27.436864] stack backtrace: [27.437088] #0 0xffffffff80ccff0c at witness_debugger+0x6c [27.437309] #1 0xffffffff80c630b0 at _sx_xlock+0x60 [27.437534] #2 0xffffffff84d400b2 at os_acquire_mutex+0x32 [27.437810] #3 0xffffffff84a1fb10 at _nv049058rm+0x10 [27.437814] lock order reversal: [27.437817] 1st 0xfffff800016351a0 os.rwlock_sx (os.rwlock_sx, sx) @ nvidia_os.c:777 [27.437823] 2nd 0xfffff802992aab60 os.lock_sx (os.lock_sx, sx) @ nvidia_os.c:630 [27.437828] 3rd 0xfffff802992aab40 os.rwlock_sx (os.rwlock_sx, sx) @ nvidia_os.c:765 [27.438006] lock order os.rwlock_sx -> os.lock_sx established at: [27.438010] #0 0xffffffff80ccf0fa at witness_checkorder+0x36a [27.438175] #1 0xffffffff80c630b0 at _sx_xlock+0x60 [27.438353] #2 0xffffffff84d400b2 at os_acquire_mutex+0x32 [27.438588] #3 0xffffffff84a1fb10 at _nv049058rm+0x10 [27.438591] lock order os.lock_sx -> os.rwlock_sx attempted at: [27.438761] #0 0xffffffff80ccface at witness_checkorder+0xd3e [27.438926] #1 0xffffffff80c641c4 at _sx_slock_int+0x64 [27.439335] #2 0xffffffff84d40422 at os_acquire_rwlock_read+0x32 [27.439339] #3 0xffffffff84a1fc50 at _nv049064rm+0x10 -- WBR, Ruslan. PGP: D7545516DF544C4A, Get by finger rz@fabmicro.ru -- 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