Skip to content

Commit 35040a3

Browse files
ppennaCopilot
andcommitted
doc: map the bound on FUSE write and copy counts in the OpenVMM roadmap
Map position 330, the commit of microsoft/openvmm#5198, which NVX now pins at 51e9af75d, 204 commits past the mapped tip: - 330, fuse: reply EIO when a write or copy count overflows u32. Session::write_out builds the replies to FUSE_WRITE and FUSE_COPY_FILE_RANGE, and fails with EIO a byte count from the file system that the u32 size of their fuse_write_out cannot hold, which it logs with a rate-limited error. The session converted the count with try_into().unwrap(), so a larger count panicked, which aborts the VMM. It is not a fixup of a mapped PR. Position 330 changes the two replies in session.rs, which upstream main has and no earlier chain commit changes, adds write_out after send_max_size, which position 329 changes, documents the bound on two Fuse methods in lib.rs, which positions 047, 324, 326, and 329 also change, and adds its tests, which use the harness, in a new file that it declares in the session's test module. Upstream main, bf353460f, has the defect, in the same two replies, but the commit does not apply there as it is: upstream main lacks the harness and the session tests of positions 047, 324, 326, 327, and 329, whose declarations conflict. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 09ae84e commit 35040a3

1 file changed

Lines changed: 35 additions & 11 deletions

File tree

‎doc/openvmm-upstream-roadmap.md‎

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
[Upstream status](#upstream-status).
1010
- Mapped fork tip: `c928e8dc1e1673a37c83c10fe145f6611a505cec`, position 126. The graph, PR
1111
summary, and commit mapping below cover positions 001-126 and the PR18 fixup at position 302.
12-
- NVX's pinned OpenVMM revision: `3eb7500fd7effda2c17d00d3a208c1e29995d421`, position 329, the head
13-
of microsoft/openvmm#5195, whose commits follow position 327, `ea3f62ad8`, the head of
14-
`feature/microvm/dev`, where microsoft/openvmm#5194 landed position 327 on position 326,
12+
- NVX's pinned OpenVMM revision: `51e9af75dc7d4a3a9bd40ae52c996a822d3311cf`, position 330, the head
13+
of microsoft/openvmm#5198, whose commit follows position 329, `3eb7500fd`, the head of
14+
`feature/microvm/dev`, where microsoft/openvmm#5195 landed positions 328 and 329 on position 327,
15+
`ea3f62ad8`, where microsoft/openvmm#5194 landed position 327 on position 326,
1516
`fe7405247`, where microsoft/openvmm#5180 landed position 326 on position 325,
1617
`91360acfc`, where microsoft/openvmm#5177 landed position 325 on position 324,
1718
`9ea35e853`, where microsoft/openvmm#5176 landed position 324 on position 323,
@@ -28,8 +29,8 @@
2829
microsoft/openvmm#5136, microsoft/openvmm#5140, and microsoft/openvmm#5141 landed after it. It
2930
added a fixup at its tip, position 316. Every commit keeps its position, and only positions 060
3031
and 277, which conflicted with upstream, and position 007, whose context upstream changed, changed
31-
their patches; see [Conflicts of the v7.1 rebase](#conflicts-of-the-v71-rebase). The pin is 203
32-
commits past the mapped tip on the same first-parent chain. Positions 127-301 and 303-329 are not
32+
their patches; see [Conflicts of the v7.1 rebase](#conflicts-of-the-v71-rebase). The pin is 204
33+
commits past the mapped tip on the same first-parent chain. Positions 127-301 and 303-330 are not
3334
yet assigned to PRs, position 302 is a PR18 fixup, and position 317 backports upstream's
3435
microsoft/openvmm#5160, which the next rebase drops; see [Commits after the mapped
3536
tip](#commits-after-the-mapped-tip).
@@ -1486,7 +1487,8 @@ The physical branch is one first-parent chain:
14861487
-> FUSE replies longer than their header can describe refused [327]
14871488
-> one reply checked for each FUSE session test request [328]
14881489
-> EIO replies for FUSE data longer than its request allows [329]
1489-
-> 3eb7500fd (NVX pin)
1490+
-> EIO replies for FUSE write and copy counts beyond u32 [330]
1491+
-> 51e9af75d (NVX pin)
14901492
```
14911493

14921494
For upstream review, PR01-PR03, PR05, PR06, and PR14 can be rebased independently onto current
@@ -1515,7 +1517,7 @@ position 069 and position 133.
15151517

15161518
## Commits after the mapped tip
15171519

1518-
The NVX pin extends the chain past position 126 without merges. Of its 203 later commits, position
1520+
The NVX pin extends the chain past position 126 without merges. Of its 204 later commits, position
15191521
302 is a PR18 fixup, position 316 is the fixup of the v7.1 rebase, position 317 backports an
15201522
upstream commit, and the others are not yet classified or assigned to PRs.
15211523
Each of positions 127-181 combines the v2.4 commits that the table lists, as v3.0 positions 145-160
@@ -1524,13 +1526,13 @@ commits. Positions 182-186 followed the v3.0 reorganization, positions 187-200 a
15241526
of the v4.0 reorganization, positions 201-206 followed it, positions 207-213 followed the v5.0
15251527
reorganization, positions 214 and 215 followed the v5.1 rebase, positions 216-253 followed the
15261528
v6.0 reorganization, positions 254-296 followed the v6.1 rebase, positions 297-315 followed the
1527-
v7.0 reorganization, position 316 is the v7.1 rebase's fixup, and positions 317-329 followed the
1529+
v7.0 reorganization, position 316 is the v7.1 rebase's fixup, and positions 317-330 followed the
15281530
v7.1 rebase, so they combine none, apart from position 215, which combines v5.1 positions 222 and
15291531
223, and the commits that the v7.0 reorganization folded into them. Each commit has the position
15301532
that it had in v7.0, since the v7.1 rebase dropped none. Each commit's v6.1 position is its v6.0
15311533
position less seven, the number of commits that the v6.1 rebase dropped before it, and its v6.0
15321534
position is its v5.1 position through 147 and one less from v5.1 position 149 on, and positions
1533-
297-329 have no earlier position; see
1535+
297-330 have no earlier position; see
15341536
[The v7.0 reorganization](#the-v70-reorganization),
15351537
[Conflicts of the v6.1 rebase](#conflicts-of-the-v61-rebase), and
15361538
[The v6.0 reorganization](#the-v60-reorganization). A v6.1 position counts in
@@ -1745,6 +1747,7 @@ whose first 220 commits are those of `feature/microvm/release/v6.0`, and a v4.0
17451747
| 327 | `ea3f62ad8` | - | - | - | - | - | - | fuse: refuse a reply longer than its header can describe (microsoft/openvmm#5194) |
17461748
| 328 | `e21dcb5c9` | - | - | - | - | - | - | fuse: check that a session sends one reply to each test request (microsoft/openvmm#5195) |
17471749
| 329 | `3eb7500fd` | - | - | - | - | - | - | fuse: fail a reply longer than the request allows with EIO (microsoft/openvmm#5195) |
1750+
| 330 | `51e9af75d` | - | - | - | - | - | - | fuse: reply EIO when a write or copy count overflows u32 (microsoft/openvmm#5198) |
17481751

17491752
The remarks that say whether commits apply to upstream main record what was found on upstream main
17501753
when each commit was mapped: the v3.0 reorganization's base, `b2676222b`, for the commits that it
@@ -1753,8 +1756,9 @@ and `c0694c4da`, upstream main on 2026-11-16, for positions 297-306, `c4419be15`
17531756
2026-11-17, for positions 307-312, `2640ad182`, upstream main later that day, for positions
17541757
313-315, `715927303`, upstream main on 2026-11-18, for positions 317-321, `5cf28492b`, upstream
17551758
main on 2026-11-19, for positions 322-325, `78af54a51`, upstream main on 2026-11-20, for position
1756-
326, `d83f87209`, upstream main later that day, for position 327, and `265f0a73f`, upstream main
1757-
later still, for positions 328 and 329.
1759+
326, `d83f87209`, upstream main later that day, for position 327, `265f0a73f`, upstream main
1760+
later still, for positions 328 and 329, and `bf353460f`, upstream main on 2026-11-21, for position
1761+
330.
17581762
They name the positions that the commits have now, but neither the v7.1 rebase on `9a875b563` nor
17591763
the v7.0 reorganization on `e6b458cc0` checked them again, nor did the v6.1 rebase check the earlier
17601764
ones on `7d90c4104`.
@@ -3963,6 +3967,26 @@ in the same `send_max_size`. Replaying it on upstream main conflicts in `session
39633967
module lacks the tests of PR13's position 047 and positions 324, 326, and 327, and its tests need
39643968
the harness, which upstream main lacks, so it cannot go upstream on its own as it is.
39653969

3970+
Position 330 has `Session::write_out` build the replies to `FUSE_WRITE` and `FUSE_COPY_FILE_RANGE`,
3971+
and fail with `EIO` a byte count from the file system that the `u32` `size` of their
3972+
`fuse_write_out` cannot hold, which it logs with a rate-limited error (microsoft/nvx#1631). The
3973+
session converted the count with `try_into().unwrap()`, so a file system that reported more than
3974+
`u32::MAX` bytes panicked, which aborts the VMM, and a guest can drive a copy's count that far,
3975+
since `fuse_copy_file_range_in` carries a 64-bit length, which Linux passed on unclamped until 6.17.
3976+
It changes code that upstream main has, the two replies in `dispatch_helper` in `session.rs`, which
3977+
no earlier chain commit changes, adds `write_out` after `send_max_size`, which position 329
3978+
changes, and documents the bound on `Fuse::write` and `Fuse::copy_file_range` in `lib.rs`, which
3979+
PR13's position 047 and positions 324, 326, and 329 also change, none of the lines that they
3980+
change. Its tests, which use the session's test harness of positions 324 and 328, are in a new file
3981+
that it declares in the session's test module. It changes nothing that a mapped PR adds. NVX's
3982+
virtio-fs servers never report such a count: `VirtioFs` refuses a write of more than 1 MiB and
3983+
implements no `copy_file_range`, and `SectionFs` and the dormant microVM file system implement
3984+
neither request, so `write_out` replies to the microVM's writes with the counts that it did.
3985+
Upstream main has the defect, in the same two replies. Replaying it on upstream main conflicts
3986+
only in the module declarations of `session.rs`'s test module, which lacks the tests of PR13's
3987+
position 047 and positions 324, 326, 327, and 329, and its tests need the harness, which upstream
3988+
main lacks, so it cannot go upstream on its own as it is.
3989+
39663990
## PR summary
39673991

39683992
Each count is of v7.1 commits, which include the fixups that the v3.0, v4.0, v5.0, v6.0, and v7.0

0 commit comments

Comments
 (0)