You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2bc1c9c
Browse filesBrowse the repository at this point in the historyBrowse files
doc: map links to nodes whose names are gone in the OpenVMM roadmap
Map position 352, the commit of microsoft/openvmm#5218, which NVX now
pins at 3aefff9ba, 226 commits past the mapped tip:
- 352, virtiofs: refuse to link a node whose last name is gone.
FUSE_LINK to a node whose names the guest has all removed, by an
unlink or a rename over the last one, fails with ENOENT, as Linux's
linkat does for an unlinked file, through a new
VirtioFsInode::object_path, which yields a node's path only while
the guest knows a name for its object. It linked whatever object had
since appeared at the node's last name, which position 048's
bookkeeping keeps, recorded the new name for the stale node, and,
through a stale node whose last name a read-only file had taken,
gave that file a name in a writable path, which a link through its
own node refuses with EXDEV.
Position 352 is not yet assigned to a PR. It changes the path that
upstream's VirtioFsInode::link links, which no chain commit changes,
and reads the names that PR13's position 048 adds, but it fixes no
defect of position 048: upstream main has the defect, in the same
link, since its nodes keep the name of their last lookup through
removals, and the names of position 048 and the access policy of
position 160 only widen its consequences. Replaying the commit on
upstream main, bf353460f, conflicts in the microVM's policy_tests.rs,
which upstream main lacks, and its object_path reads the names of
position 048, so it cannot go upstream on its own. The Scope also
records that feature/microvm/dev now stands at position 349,
2a483a06f, where microsoft/openvmm#5211 to #5215 landed positions 345
to 349.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
[Conflicts of the v6.1 rebase](#conflicts-of-the-v61-rebase), and
@@ -1954,6 +1956,7 @@ whose first 220 commits are those of `feature/microvm/release/v6.0`, and a v4.0
1954
1956
| 349 |`2a483a06f`| - | - | - | - | - | - | virtiofs: keep node names when renaming one hard link onto another (microsoft/openvmm#5215); fold into 048, its test into 166 |
1955
1957
| 350 |`189dc519f`| - | - | - | - | - | - | virtiofs: fail a synthetic root read too small for its next entry (microsoft/openvmm#5216) |
1956
1958
| 351 |`8bea555db`| - | - | - | - | - | - | virtiofs: skip gone or hidden entries in microVM READDIRPLUS (microsoft/openvmm#5217); fold into 083, its policy test into 160 |
1959
+
| 352 |`3aefff9ba`| - | - | - | - | - | - | virtiofs: refuse to link a node whose last name is gone (microsoft/openvmm#5218) |
1957
1960
1958
1961
The remarks that say whether commits apply to upstream main record what was found on upstream main
1959
1962
when each commit was mapped: the v3.0 reorganization's base, `b2676222b`, for the commits that it
@@ -1964,7 +1967,7 @@ and `c0694c4da`, upstream main on 2026-11-16, for positions 297-306, `c4419be15`
1964
1967
main on 2026-11-19, for positions 321-324, `78af54a51`, upstream main on 2026-11-20, for position
1965
1968
325, `d83f87209`, upstream main later that day, for position 326, `265f0a73f`, upstream main
1966
1969
later still, for positions 327 and 328, and `bf353460f`, upstream main on 2026-11-21 and the v7.2
1967
-
fork base, for positions 329-334 and 340-351.
1970
+
fork base, for positions 329-334 and 340-352.
1968
1971
They name the positions that the commits have now, but neither the v7.2 rebase on `bf353460f`, the
1969
1972
v7.1 rebase on `9a875b563`, nor the v7.0 reorganization on `e6b458cc0` checked them again, nor did
1970
1973
the v6.1 rebase check the earlier ones on `7d90c4104`.
@@ -4705,6 +4708,35 @@ its `read_dir_with` already skips such entries. Replaying the commit there confl
4705
4708
microVM's `file.rs`, `fs_tests.rs`, and `policy_tests.rs`, which upstream main lacks, so it follows
4706
4709
PR18 upstream.
4707
4710
4711
+
Position 352 has `FUSE_LINK` to a node whose names the guest has all removed fail with `ENOENT`, as
4712
+
Linux's `linkat` fails for an unlinked file, rather than link whatever object has since appeared at
4713
+
the node's last name (microsoft/nvx#1608). PR13's position 048 records the names through which the
4714
+
guest reaches each node and drops them when the guest removes them or renames another entry over
4715
+
them, and a node whose last name it drops keeps that name, which upstream's `VirtioFsInode::link`
4716
+
linked: a guest that unlinked a file, or renamed another entry over it, and then put another object
4717
+
at its name linked that object, recorded the new name for the stale node, and got the stale node's
4718
+
ID with the other object's attributes. Since position 160's access policy, a link through a
4719
+
read-only file's own node fails with `EXDEV`, so that the file gets no name in a writable path, but
4720
+
through a stale node whose last name the file had taken, the guest could give it one. A new
4721
+
`VirtioFsInode::object_path` returns a node's path only while the guest still knows a name for its
4722
+
object, and `link` takes the target's path from it. The saved state keeps its format. It changes the
4723
+
path that upstream's `VirtioFsInode::link` links in `inode.rs`, a line that no chain commit
4724
+
changes, after the confinement checks that PR18's position 081 adds and PR27's position 126
4725
+
changes, and adds `object_path` after upstream's `get_path`, which PR18's position 083 makes
4726
+
`pub(crate)`, reading the names that position 048 adds; PR06's position 010, PR22's position 102,
4727
+
positions 160, 165, 322, 331, 332, and 334, and PR13's fixup at position 349 also change the file.
4728
+
It adds a test to the microVM's policy tests, which position 160 adds and positions 164, 194, 344,
4729
+
and 346 and PR18's fixup at position 351 also change. It changes nothing that a mapped PR adds, and
4730
+
it fixes no defect of position 048, whose names it reads: the defect is upstream's `link`, which
4731
+
links the object at the target's last name; the names of position 048 only make it record the new
4732
+
name for the target too, and the policy of position 160 only makes it a way to give a read-only
4733
+
file a writable name, so it is not a PR13 fixup. Upstream main has the defect, in the same `link`,
4734
+
since its nodes keep the name of their last lookup through removals, though without the names of
4735
+
position 048, which tell that a node's names are gone, or a write policy. Replaying the commit
4736
+
there conflicts in the microVM's `policy_tests.rs`, which upstream main lacks, and its
4737
+
`object_path` reads the names that position 048 adds, which upstream main lacks too, so it cannot
4738
+
go upstream on its own.
4739
+
4708
4740
## PR summary
4709
4741
4710
4742
Each count is of v7.2 commits, which include the fixups that the v3.0, v4.0, v5.0, v6.0, and v7.0
0 commit comments