Skip to content

checklocks: enforce UDP receive-state ownership - #14262

Closed
tamird wants to merge 1 commit into
google:masterfrom
tamird:checklocks-udp-receive
Closed

checklocks: enforce UDP receive-state ownership#14262
tamird wants to merge 1 commit into
google:masterfrom
tamird:checklocks-udp-receive

Conversation

@tamird

@tamird tamird commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Packet delivery reads frozen under rcvMu, but freeze, thaw, and restore write it under mu. Use rcvMu for all accesses and group frozen with the receive state it controls.

Annotate the receive fields and reuse thaw after successful restore so checklocks enforces the same ownership during normal operation and save/restore.

Assisted-by: Codex

Packet delivery reads frozen under rcvMu, but freeze, thaw, and restore
write it under mu. Use rcvMu for all accesses and group frozen with the
receive state it controls.

Annotate the receive fields and reuse thaw after successful restore so
checklocks enforces the same ownership during normal operation and
save/restore.

Assisted-by: Codex
@tamird

tamird commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

r? @nybidari for the receive-state guards and freeze/thaw locking correction, including the successful-restore path. Both UDP analysis checks and the runtime suite passed locally. The suite does not exercise save/restore; that path was reviewed from source.

cc @konstantin-s-bogom

Assisted-by: Codex

@tamird

tamird commented Aug 23, 2026

Copy link
Copy Markdown
Contributor Author

Closing in favor of consolidated #14338. 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