You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A restarted VM supervisor runs on a uid, NetId and budget that were already returned #209
Found by model checking (the Quint specs in #206). A counterexample in the model, each step read in the code at e281a48. Not reproduced on a running system.
Where:lib/hyper/node/fire_vmm.ex:85-94: the child spec is restart: :transient and its start arguments are the original Opts. lib/hyper/node.ex:152-158: the uid, the NetId and the Mutable are bound to the first pid.
Chain:
A VM supervisor process exits abnormally.
Its :DOWN frees the uid in Users, the NetId in Net and the reservation in Budget.Hard, and drops its hold on the Mutable.
The node's DynamicSupervisor restarts the child from the same Opts: same uid, same NetId, same Mutable pid. Nothing binds or reserves for the new pid.
The pools hand that uid and NetId to the next boot.
Effect: two VMs on one uid and one NetId, and a running VM the hard budget does not count.
Trigger: only the supervisor process itself dying abnormally. A crashing guest does not do it: a child crash loop ends the supervisor with :shutdown, which :transient does not restart.
Not traced: whether the restarted VM gets as far as booting on a Mutable whose only holder died.
Model:id_pool_small --step stepTransientRestart violates freedUnused, and placement_vm_respawn violates admittedWithinCapacity. The trace, from spec/ on that branch after npm ci:
Activity