Repository navigation
Commit 6831e07
openvmm: pin hard links to one-character names on Windows
On a Windows host, a guest's hard link to a name of one UTF-16 unit on
a virtio-fs share, such as `ln file x`, failed with EOVERFLOW, which
busybox's ln reports as `Value too large for data type`, and created
no link, while longer names worked (#2136). lxutil's create_link
passed NtSetInformationFile a FILE_LINK_INFORMATION buffer of 22 bytes
for such a name, shorter than the structure's 24 bytes on 64-bit
Windows, which Windows refuses with STATUS_INFO_LENGTH_MISMATCH.
Pin microsoft/openvmm 9822f732ae72c1e0dce91590842c0c395624a745, the head
of microsoft/openvmm#5286, one commit on 5af753b17, the head of
microsoft/openvmm#5285, which NVX pins below this commit:
- lxutil: hard-link to one-character names on Windows. create_link
pads the name with NULs until the buffer is as long as
FILE_LINK_INFORMATION, and FileNameLength still counts only the
name. Its test fails without the fix on Windows, with EOVERFLOW,
and passes with it on Windows and Linux. At the pin, the lxutil
package's tests pass on Windows and Linux, and the virtiofs
package's on Windows.
In an Alpine guest of release v0.1.0-dev.fb28ca4c3f07, whose OpenVMM
CI built from 1633b3797, `ln file x` on a read-write share failed with
EOVERFLOW on WHP (Windows 11, NTFS), and `x` appeared neither in the
guest nor on the host. With OpenVMM built from the fix, af352e3c6, the
same commit on 1633b3797 before its rebase onto microsoft/openvmm#5285
and the commits below it, the link succeeded, `file`, `xy`, and `x`
shared one inode with three links, and the filesystem-shares,
filesystem-policy, denied-filesystem-paths, filesystem-comma-paths,
platform-filesystem, filesystem-snapshot, and
platform-aggregate-export scenarios passed on WHP.
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 fac0a70 commit 6831e07
1 file changed
Lines changed: 1 addition & 1 deletion
0 commit comments