Skip to content

Commit 6a89720

Browse files
ppennaCopilot
andcommitted
openvmm: pin microVM aggregate restores that refuse the root's node ID
A microVM aggregate's saved state whose node table was empty and whose next node ID was 1, FUSE_ROOT_ID, restored (#2134). Node 1 of an aggregate is its synthetic root, which has no saved node, so the next lookup of a child gave the child's root node 1, the device routed every request for that node to the synthetic root, and the device's next save could not restore. The device never saves such a state, so only a corrupt or crafted state reaches this. Pin microsoft/openvmm 5f4a47b83591ccbcc4f9a2563b5322603def625b, the head of microsoft/openvmm#5290, one commit on a79b4bb40, the head of microsoft/openvmm#5289, which NVX pins below this commit: - virtiofs: refuse a microVM aggregate state whose next node ID is 1. validate_microvm_state, which the device's saved-state validator and restore_microvm_state run before they change any state, requires the next node ID to exceed FUSE_ROOT_ID as well as every saved node ID, which changes nothing for a single share, whose root is its saved node 1. Its test fails without the fix, since the restore succeeds, and passes with it, on Windows and on Linux. At the pin, the tests of the virtiofs package pass on Windows and Linux, and NVX's filesystem-snapshot, platform-aggregate-export, and filesystem-shares microVM scenarios pass on KVM. No saved-state, protocol, or ABI format, and no version of any of them, changes. The protocol vectors and CPU profiles that nvx copies are unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c3f4c02 commit 6a89720

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

0 commit comments

Comments
 (0)