You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
C sync_locks/io/alloc rules miss kernel vocabulary (spin_lock*, mutex_lock, readl/writel, kmalloc/kfree): kernel C reads as lock- and I/O-free #8016
bugUnintended behavior or logic failure in the engineclaim:melekcore-engineModifications to the central physics and parsing enginepriority: mediumscope:sweepCompletes a class the burned estates already touch (siblings); blocks no program
C's sync_locks and io rules only know the C11 / POSIX vocabulary, so kernel-style C reads as lock-free and I/O-free.
On main (patterns from languages/c.py):
code
sync_locks
io
pthread_mutex_lock(&m)
✓
—
spin_lock_irqsave(l, flags)
✗
—
mutex_lock(&m)
✗
—
data = readl_relaxed(base)
—
✗
writel_relaxed(data, base)
—
✗
Why it matters: in the v2.12.0 population DB, the 3rd most common function fingerprint (1.4% of all functions) is kernel-driver C. It is 77% from one repo, 1% tests, median 23 lines. Its fingerprint shows no def_sync_locks and no arch_io, even on functions that take a spinlock and write hardware registers (e.g. drivers/clk/mmp/clk-apmu.c: clk_apmu_enable).
Class to sweep
The kernel / BSD / RTOS vocabulary is missing from:
Same class, Windows / ReactOS C: InterlockedIncrement / InterlockedDecrement / InterlockedCompareExchange match neither C concurrency nor sync_locks (the C# rule already lists Interlocked). Seen in the 6th most common population fingerprint (static C COM methods, e.g. ReactOS IDirectPlay4Impl_AddRef). Add EnterCriticalSection / AcquireSRWLock* / WaitForSingleObject to the sweep too.
Claimed by promoter-bot host melek, lease renewed 2026-11-08T23:04Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:melek label.
Closed by #8139: C sync_locks/io/memory_alloc/cleanup/concurrency now cover the kernel/BSD/Windows vocabulary, with tests. C++/ObjC sibling check is noted in the PR; no burned estate needs it.
bugUnintended behavior or logic failure in the engineclaim:melekcore-engineModifications to the central physics and parsing enginepriority: mediumscope:sweepCompletes a class the burned estates already touch (siblings); blocks no program
Activity
squid-protocol commentedon Nov 7, 2026
Same class, Windows / ReactOS C:
InterlockedIncrement/InterlockedDecrement/InterlockedCompareExchangematch neither Cconcurrencynorsync_locks(the C# rule already listsInterlocked). Seen in the 6th most common population fingerprint (static C COM methods, e.g. ReactOSIDirectPlay4Impl_AddRef). AddEnterCriticalSection/AcquireSRWLock*/WaitForSingleObjectto the sweep too.squid-protocol commentedon Nov 8, 2026
Claimed by promoter-bot host
melek, lease renewed 2026-11-08T23:04Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove theclaim:meleklabel.C: kernel/BSD/Windows vocabulary in sync_locks, io, memory_alloc, cle…
squid-protocol commentedon Nov 8, 2026
Closed by #8139: C sync_locks/io/memory_alloc/cleanup/concurrency now cover the kernel/BSD/Windows vocabulary, with tests. C++/ObjC sibling check is noted in the PR; no burned estate needs it.