Repository navigation
sessions: a file's chunk is bounded by the reader's buffer, and the disk tier is owner-only - #3030
Merged
Merged
Conversation
ashhart
marked this pull request as ready for review
November 12, 2026 17:30
…isk tier is owner-only A session file's header could name a chunk larger than the buffer it is read into. The header is now refused. Entry files are created 0600 and their folders 0700, and opens do not follow links.
ashhart
force-pushed
the
security/session-disk-tier
branch
from
November 13, 2026 00:01
5e17850 to
315bad7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Before: a session file's header could name a chunk larger than the buffer it is read into, and on Linux the disk tier's files were created readable by other users. After: such a header is refused, entry files are created 0600 in 0700 folders, and opens do not follow links.
SECURITY.mdasks for private reports, so there is no public issue.atc overlap --json: not run.Checks on this head
5e178505f5be3b253060a61b93b58ed096c56fd5python3 tools/zig/lean_check.py, on the base and on this head: 345 on the base, 345 on this head, 0 new.zig fmt --checkon 3 files: passesgit diff --check: passeszig build test-sessions check-sessions-linux test-sessions-writes-host: 8/8 steps succeeded; 28/31 tests passed (3 skipped)zig build test-server-cpu: 5/5 steps succeeded; 1325/1332 tests passed (7 skipped)zig build check-native-cuda-host compile-flashnext-mtp-parity-host compile-glm-native-open: 11/11 steps succeededzig build test-golden test-server-security test-pull-security: 76/76 steps succeeded; 32/32 tests passedsecurity: a file whose chunk is larger than the reader's buffer is refusedzig build testand every step that runs on a GPU were not run: this Mac's GPU was serving a model, and no CUDA, ROCm or Intel hardware was available.Receipt
n/a. This change cannot reach inference: it is the session disk tier's file handling. The tier is off unless
TF_DSV41_SESSION_DISKis set.Checklist
b38a4dd02. On this base only the passing side was rerun.Notes for the reviewer
Suggested changelog line
Sessions: a file whose chunk is larger than the reader's buffer is refused, and the disk tier's files and folders are owner-only.