Repository navigation
Commit 955b1fb
openvmm: pin the refusal of aggregate root reads too small for an entry
OpenVMM's virtio-fs server answered a FUSE_READDIR or FUSE_READDIRPLUS
of an aggregate's synthetic root whose buffer could not hold the next
entry with an empty reply, which the guest takes for the end of the
directory (microsoft#1617). A read from the start with a buffer
too small for `.` therefore listed an empty root, and a listing whose
buffer held the entries before a child with a longer name ended before
that child, without an error. The reads of every other directory fail
with EINVAL, as getdents64 does.
Pin microsoft/openvmm 189dc519ffcf30c5b9cfea4805e5b917c1556b1b, one
commit on 2a483a06f, the head of microsoft/openvmm#5215:
- virtiofs: fail a synthetic root read too small for its next entry.
The read fails with EINVAL when the first entry that it reaches does
not fit. A read that fits some entries still returns them, and a
read at the end of the root still returns an empty reply. Its test
fails without the change on Windows and on Linux (nvx-mshv-test).
NVX's Linux guest reads directories with buffers of at least a page,
which holds any entry, so the microVM behaves as it did. No saved
state, protocol, ABI, or 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 d0a49cc commit 955b1fb
1 file changed
Lines changed: 1 addition & 1 deletion
0 commit comments