Repository navigation
Conversation
… clock a zone reads The threat model and the net zone surface note named two ways past a zone's own clocks: the offsets in /proc/self/timens_offsets and the scheduler's clock in /proc/<pid>/sched. A zone also reads the machine's time data straight from the vDSO, whose next page a time namespace maps readable beside the page of its offsets (lib/vdso/datastore.c, vvar_fault), and the CPU's timestamp counter, which rdtsc reads in user space. Both now say so, as sources code that looks for them reads the machine's uptime from.
… as its prose does
DevomB
marked this pull request as ready for review
October 9, 2026 20:12
This branch has not been deployed
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 was wrong
The threat model's "Still shown" list and the net zone surface note gave two ways for a zone to get past its own clocks: the offsets in
/proc/self/timens_offsets, and the scheduler's clock in/proc/<pid>/sched. Two more sources were not named, and neither can be withheld from a zone:clock_gettime(lib/vdso/datastore.c,vvar_fault).rdtscin user space, and it counts on from the CPU's reset whatever namespace reads it.What changed
Docs only:
docs/threat-model.md: the "Still shown" list names all four sources as giving the machine's uptime to code that looks past the zone's own clocks.docs/design/net-zone-surface.md: the time namespace section and the "leaves" row of the side-by-side table name all four sources.The time namespace still keeps the shared uptime and boot time out of what crash reports and telemetry send. What it does not do is unchanged: it does not stop a zone that is trying to link itself to another.
How the run proves it
Docs only, so CI. The kernel references are checked against v6.18:
lib/vdso/datastore.cmaps the real time data at the time-namespace page offset when the task has a time-namespace page.fs/proc/base.c:3330registersschedwith no debug guard.