Skip to content

Commit 74a9662

Browse files
ppennaCopilot
andcommitted
openvmm: pin microVM restores of handles opened with access mode 3
A microVM guest that opened a virtio-fs file with access mode 3, which neither reads nor writes, and held it open could save the VM's state, but its restore failed with "saved handle has invalid access mode", on read-write and read-only shares alike (#2125). FUSE_OPEN accepts that access mode, but the restore's validation rejected it, and also took every access mode other than O_RDONLY for one that writes. Pin microsoft/openvmm 770bc61e7b2c683b092bffb5c8cd83b8696cf54a, the head of microsoft/openvmm#5282, one commit on 350018ce4, the head of microsoft/openvmm#5281, which NVX pins below this commit: - virtiofs: restore microVM handles opened with access mode 3. A restore keeps every access mode, and needs a writable node only for a handle whose access mode is O_WRONLY or O_RDWR, as FUSE_OPEN does. Its test fails without the fix, on a read-write share, on a read-only share, and outside the writable paths, and passes with it, on Windows and on Linux, and the virtiofs package's tests pass at the pin on both. 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 8bfe42a commit 74a9662

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

0 commit comments

Comments
 (0)