Repository navigation
Commit f242077
openvmm: pin READDIRPLUS listings of btrfs placeholders and bind mounts
OpenVMM's virtio-fs server lists a microVM directory once, numbering
each entry as the host lists it, and a FUSE_READDIRPLUS looks each
listed name up again. It failed the read with EIO at an entry on the
directory's own host device whose lookup reported another inode number
than the listing, to refuse a name that a rename replaced since the
listing. But the host lists some entries on a directory's own device by
another number than their lookup reports: a btrfs snapshot lists the
empty placeholder that it holds of a nested subvolume by the
subvolume's ID, while a lookup reaches a directory numbered 2, and a
directory lists a mount point of its own file system, such as a bind
mount of one of its directories, by the number of what the mount
covers. A guest could therefore list no directory that held such an
entry, with ls, find, and the like (#1605); the root of a
btrfs subvolume, on a device of its own, has listed since
#1619.
Pin microsoft/openvmm 6323fa7b924ac450eb28ef968b4f460b0864d35d, one
commit on eff41b13f, the head of microsoft/openvmm#5227, where
feature/microvm/dev now stands:
- virtiofs: list btrfs placeholders and bind mounts in microVM
READDIRPLUS. When an entry's lookup reports another number than the
listing, READDIRPLUS checks that the node's path still reaches the
handle's directory and lists the directory again, at most once per
read: it lists the entry, as its lookup reports it, if the host still
lists the name by the listed number, still fails with EIO if the host
lists it by another number or by 0, and skips it if the host no
longer lists it. Its bind-mount test fails without the change on
Linux (nvx-kvm-test), and its tests that a replaced name still fails
pass on Windows and on Linux.
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 b50c258 commit f242077
1 file changed
Lines changed: 1 addition & 1 deletion
0 commit comments