Skip to content

C: kernel/BSD/Windows vocabulary in sync_locks, io, memory_alloc, cleanup (Part of #8016) - #8139

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8016-20261108T2305Z
Nov 8, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8016-20261108T2305Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8016

Class

C rules knew only C11/POSIX names, so kernel, BSD and Windows C read as lock-free, I/O-free and allocation-free. Fixed here, all in languages/c.py, call form only (\s*\(): sync_locks (spin_lock*, raw_spin_lock*, mutex_lock*/unlock*, rcu_read_lock*, down_/up_read/up_write, sx_lock, rw_lock, EnterCriticalSection, SRW lock, Interlocked), io (readb/w/l/q + _relaxed, ioread/iowrite, inb/outb, copy_to/from_user, bus_space_), memory_alloc (kmalloc family, vmalloc, devm_kalloc, kmem_cache_), cleanup (kfree, vfree, kmem_cache_free, mutex_destroy, iounmap), concurrency (Interlocked).

Facts checked

  • New test_c_kernel_vocab_8016.py plus test_c_strict.py: 141 passed (positive, boundary, string-literal, ReDoS, and the clk_apmu_enable shape).
  • ruff format clean; ruff_audit --ci no new findings; audit_check.py run.
  • golden-lock.sh crucible_check.py --update --yes: both fixtures report no drift (the crucible corpus has no kernel-style C), so no golden changes.

Sibling gaps

  • C++ / Objective-C rules likely share the gap (not checked whether they derive from c.py); no burned estate needs it.
  • WaitForSingleObject and bare down/up left out as too ambiguous.

Remaining slices

None for C.

Lessons for agents

Fresh worktree crucible venvs are created on first bless run (slow); run it in one foreground call under 10 min.

🤖 Generated with Claude Code

…anup, concurrency (Part of #8016)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 8, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 8, 2026 23:15
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 8, 2026 23:20
@squid-shepherd
squid-shepherd Bot merged commit c52fd9a into main Nov 8, 2026
123 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8016-20261108T2305Z branch November 8, 2026 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant