Repository navigation
SHARD-794: a VM guest links /dev/fd and the stdio names - #632
Merged
Merged
Conversation
A vz or Firecracker guest boots a bare devtmpfs, which has no /dev/fd, /dev/stdin, /dev/stdout or /dev/stderr. runc, gVisor and Sysbox get them from the runtime, so bash <(...) and >(...) worked there and failed in a VM sandbox. bootGuest now links the four after devpts, and a conformance case holds every substrate to them.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
presmihaylov
commented
Oct 7, 2026
…lve, not their Linux targets
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.
SHARD-794 (task list outside the repo). Chief-approved overnight for Pres.
Why. A vz or Firecracker guest boots a bare devtmpfs, which has no
/dev/fd,/dev/stdin,/dev/stdoutor/dev/stderr. runc, gVisor and Sysbox get these links from the runtime, so bash<(...)and>(...)worked there and failed in a VM sandbox.How.
bootGuestincmd/shard-init/guest_linux.go: it links the four into the moved devtmpfs right after devpts. It runs once per boot, so the links never exist already.linkStdiolives inguest.goso its unit test runs on macOS.What. New conformance case
ExecFindsTheStdioLinksUnderDev.Tested e2e: vz (laptop, real VM: fails without the fix, passes with it), runc, gVisor, Sysbox (Lima). Firecracker shares
bootGuestbut has no KVM box.