Skip to content

Reseed the guest crng on resume - #86

Merged
mavdol merged 3 commits into
mainfrom
entropy-seeding
Aug 18, 2026
Merged

Reseed the guest crng on resume #86
mavdol merged 3 commits into
mainfrom
entropy-seeding

Conversation

@mavdol

@mavdol mavdol commented Aug 17, 2026

Copy link
Copy Markdown
Member

Vpod sandboxes returned the same random bytes, same uuid4 etc.. every time.

The crng is captured already initialized, and credit_init_bits() returns early once crng_ready() is true, so RNDADDENTROPY alone is a no-op on a restore. RNDRESEEDCRNG is what re-keys it. This runs both, at resume, with fresh host bytes on the line that already syncs the clock.

Seeder from #79 => This adds the second ioctl and moves it from build time to resume time.

@mavdol
mavdol marked this pull request as ready for review August 18, 2026 09:34
@mavdol
mavdol merged commit 25c9920 into main Aug 18, 2026
11 checks passed
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