Skip to content

checklocks: enforce UDP endpoint lock contracts - #14340

Open
tamird wants to merge 1 commit into
google:masterfrom
tamird:checklocks-udp-last-error
Open

checklocks: enforce UDP endpoint lock contracts#14340
tamird wants to merge 1 commit into
google:masterfrom
tamird:checklocks-udp-last-error

Conversation

@tamird

@tamird tamird commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Require the error mutex for the last error, and the endpoint mutex for read shutdown and binding. Exclude endpoint locks while writing: a synchronous loopback ICMP error can reacquire the read lock and deadlock behind a waiting writer.

Document the endpoint lock held through synchronous registration callbacks, which checklocks cannot currently follow.

Assisted-by: Codex

Require the error mutex for the last error, and the endpoint mutex for
read shutdown and binding. Exclude endpoint locks while writing: a
synchronous loopback ICMP error can reacquire the read lock and deadlock
behind a waiting writer.

Document the endpoint lock held through synchronous registration
callbacks, which checklocks cannot currently follow.

Assisted-by: Codex
@tamird

tamird commented Aug 22, 2026

Copy link
Copy Markdown
Contributor Author

r? @nybidari Could you review UDP error, shutdown and binding contracts, including send-time lock exclusion?

Focused local Bazel checks passed. Upstream checks have not reported yet.

cc @konstantin-s-bogom

Assisted-by: Codex

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