Repository navigation
Commit fad09f9
openvmm: pin the bound of aggregate root directory reads
OpenVMM's virtio-fs server answered FUSE_READDIR and FUSE_READDIRPLUS
on an aggregate's synthetic root with a reply buffer that it reserved
infallibly, with Vec::with_capacity, at whatever size the guest asked
for, so a guest that read the root with a size of u32::MAX made the
VMM reserve 4 GiB for one request, and a host that could not provide
it aborted the VMM with "memory allocation of 4294967295 bytes failed"
(microsoft#1598). The reads of every other directory, and every
other buffer that the guest sizes, are bounded at 1 MiB and reserved
fallibly.
Pin microsoft/openvmm ed2d7e3a15c9519fde09046ba6643f773c8285df, one
commit on 32888344a, the head of microsoft/openvmm#5206:
- virtiofs: bound the buffer of an aggregate root's directory read. A
read of the synthetic root that asks for more than 1 MiB fails with
E2BIG before anything is reserved, and the buffer is reserved with
try_reserve_exact, failing with ENOMEM, as for every other directory.
A read of 1 MiB still lists the whole root. Its test fails without
the change on Windows and on Linux (nvx-kvm-test).
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 c558aa3 commit fad09f9
1 file changed
Lines changed: 1 addition & 1 deletion
0 commit comments