Skip to content

checklocks: guard VFS dynamic device majors - #14263

Closed
tamird wants to merge 1 commit into
google:masterfrom
tamird:checklocks-vfs-device-majors
Closed

checklocks: guard VFS dynamic device majors#14263
tamird wants to merge 1 commit into
google:masterfrom
tamird:checklocks-vfs-device-majors

Conversation

@tamird

@tamird tamird commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Dynamic character-device allocation protects its used-major map and shared-key cache with dynCharDevMajorMu, but the contract is only documented in prose. Add guards for both maps and the locked allocation helper.

Hold the mutex while initializing the maps and repairing a nil shared cache after load so these lifecycle paths follow the same contract.

Assisted-by: Codex

@tamird

tamird commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

r? @nybidari for the dynamic-major map guards and initialization/restore lock scopes. Both VFS analysis checks passed for amd64 and arm64. The runtime suite is blocked locally by the baseline macOS build failure in pkg/fd (unix.O_LARGEFILE); the afterLoad path was reviewed from source.

Assisted-by: Codex

Dynamic character-device allocation protects its used-major map and
shared-key cache with dynCharDevMajorMu, but the contract is only
documented in prose. Add guards for both maps and the locked allocation
helper.

Hold the mutex while initializing the maps and repairing a nil shared
cache after load so these lifecycle paths follow the same contract.

Assisted-by: Codex
@tamird
tamird force-pushed the checklocks-vfs-device-majors branch from d4d06bd to 9906c80 Compare August 21, 2026 23:08
@tamird

tamird commented Aug 23, 2026

Copy link
Copy Markdown
Contributor Author

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