Skip to content

checklocks: enforce SysV IPC lock ownership - #14334

Closed
tamird wants to merge 1 commit into
google:masterfrom
tamird:checklocks-sysv-ipc-state
Closed

checklocks: enforce SysV IPC lock ownership#14334
tamird wants to merge 1 commit into
google:masterfrom
tamird:checklocks-sysv-ipc-state

Conversation

@tamird

@tamird tamird commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Guard registry access, queue accounting, semaphore metadata, and SHM lifecycle state with their existing owner mutexes. Annotate caller-held helper and destruction contracts, concrete lock effects, and locks excluded by the final SHM reference drop.

Preserve immutable IDs, externally owned IPC metadata, semaphore payloads, and unlocked waiter registration. Document SHM key versus ID lifetime and keep final reference drops outside the registry and segment locks. Existing semaphore tests acquire the locks required by the new contracts.

Assisted-by: Codex

Guard registry access, queue accounting, semaphore metadata, and SHM
lifecycle state with their existing owner mutexes. Annotate caller-held
helper and destruction contracts, concrete lock effects, and locks
excluded by the final SHM reference drop.

Preserve immutable IDs, externally owned IPC metadata, semaphore
payloads, and unlocked waiter registration. Document SHM key versus ID
lifetime and keep final reference drops outside the registry and segment
locks. Existing semaphore tests acquire the locks required by the new
contracts.

Assisted-by: Codex
@tamird

tamird commented Aug 22, 2026

Copy link
Copy Markdown
Contributor Author

r? @milantracy Could you review SysV IPC registry, semaphore and SHM lifetime/lock contracts?

Focused local Bazel checks passed. No upstream build/test result is reported yet.

cc @aaltinaydev

The reviewer-assignment check failed with HTTP 422 because at least one selected reviewer is not an eligible repository collaborator. The job does not identify which account. This is an assignment-automation failure, not a build/test failure; the review request above remains in place.

Assisted-by: Codex

@tamird

tamird commented Aug 23, 2026

Copy link
Copy Markdown
Contributor Author

Closing in favor of consolidated #14345. The expanded replacement commits are prepared locally; the replacement branch has not been pushed yet.

Assisted-by: Codex

@tamird tamird closed this Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant