751. Fuzz the services' request handlers
Built by the lane lane/fuzz-service-handlers from part (a) of the proposal on #1592 (fuzz the
surface a confined process can reach), which calef ruled yes on 2026-10-04 (UTC). Part (b), the
system call fuzzer, was not ruled and is not here. The number 751 is provisional until the queue lands
it, and the proposal is promoted into this block once #1592 merges. (Title and slug are drafts;
target, helper and module names are provisional.)
What it does
Three host cargo-fuzz targets, each replaying a session of requests against a service built on
the host and checking a stated rule after every reply, not only "no panic". notes/fuzzing-the-services.md
has the rules, the rates and the findings in full.
redoxfs_server_sessiondrivesredoxfs_server::Server::handle, the file server's request dispatch, moved out of the EL0 binary for it with no behavior change. Rules: admission (a revoked or unknown badge succeeds at nothing; a bound badge only throughROOTor what it minted) and content (a bound badge never reads a file outside its grant). The image is formatted once and reopened per input through a copy-on-write disk: 688 sessions/s became about 2,180.system_log_sessiondrivesLog::handleandLog::fill. Rules: framing, stamping, per-user scope and sequence order on every read. About 15,000 sessions/s.compositor_sessiondrivescompositor::commit_damage(extracted fromserve_frame) andcomposite. Rules: a lying client's damage stays in its own window, an honest status word, and the screen is right inside the damage and untouched outside it. About 1,680 sessions/s.
Proof condition
- The three targets are in
fuzz/Cargo.toml,script/fuzz --listand the CI sweep, each with a stated rule. Met. - Each finds a planted defect, with the time recorded: under two seconds each, from an empty
corpus. The patches are in
fuzz/falsifications/; the file server's is milestone 726 (an unknown badge fails closed in subtree_scope)'s fail-open arm restored. Met. net_stackand the three file caretakers carry aBUGSentry saying what extraction blocks a target, and the note measuresnet_stack's. Met.- The CI
fuzzjob stays inside its 20-minute budget. Met: the median over 29 merge-group runs (2026-10-16 and 2026-10-17 UTC) is 712 s, 11.9 minutes, range 678 s to 744 s;notes/fuzzing-the-services.mdlists the run ids.
What it found
Three defects that killed or escaped the file server, each fixed in redoxfs_server with a host
test that fails without the fix. A grant's root could be closed and its slot reused, so a bound
badge's ROOT named an object outside its grant. A write whose end wrapped 64 bits panicked the
engine. A file end past the engine's node tree panicked it; the server now bounds it at
MAX_FILE_END, and #1606 takes the vendored fix. A fourth, a stall from shrinking a huge sparse
file, is recorded and proposed rather than fixed.
Follow-on
- Done. Proof condition 4 is measured:
notes/fuzzing-the-services.md, "What CI pays". - Done. The level-4
NodeLevel::newconstant, as a RedoxFS pin divergence, is #1606 (lane/redoxfs-level4). - Milestone 772. Milestone 772 (a client cannot stall the file server with a sparse file). The sparse-file stall in
Server::truncate'sBUGSsection, asdesign/roadmap/0772-a-client-cannot-stall-the-file-server-with-a-sparse-file.md. - Recorded. A host
part for
net_stackand the caretakers is in theirBUGSsections (components/src/net_stack.rs).
Index row
Host fuzz targets replay sessions against the file server, the system log and the compositor, each checking a confinement rule after every reply. Each finds its planted defect in under two seconds; the file server's found three real defects, fixed.