Repository navigation
Commit 6f09665
openvmm: pin the refusal to link a node whose last name is gone
OpenVMM's virtio-fs server records, for each node, the names through
which the guest has reached its object, and keeps the last one when the
guest removes them all, by an unlink or a rename over it, since other
requests about the node still use it. FUSE_LINK to such a node linked
whatever object had since appeared at that former name, gave the node
the new name, and replied with the node's ID but that object's
attributes (#1608). On a microVM share with writable
paths, the object could be a read-only file, which a link through its
own node refuses with EXDEV, since a name in a writable path would make
the file writable: through the stale node, the guest could give it one.
Pin microsoft/openvmm 3aefff9ba4e7ff50d5d34671678da6b58cd423c6, one
commit on 8bea555db, the head of microsoft/openvmm#5217:
- virtiofs: refuse to link a node whose last name is gone. A link to a
node whose names the guest has all removed fails with ENOENT, as
Linux's linkat does for an unlinked file, before it changes the host
or any node, through VirtioFsInode::object_path, which yields a
node's path only while the guest knows a name for its object. Its
test fails without the change on Windows and on Linux
(nvx-kvm-test).
The other requests about such a node still use its former name
(#1623). 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 a43cdf1 commit 6f09665
1 file changed
Lines changed: 1 addition & 1 deletion
0 commit comments