Add M10.9c-1 session fuzzing and in-process abuse tests
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (checks) (push) Successful in 17s
Foundation / checks (ecs) (push) Successful in 12s
Foundation / checks (client) (push) Successful in 1m47s
Foundation / checks (tsan) (push) Successful in 5m44s
Foundation / checks (network) (push) Successful in 13m29s
Foundation / checks (postgres) (push) Successful in 44m22s
Foundation / server-image (push) Successful in 31s
Foundation / postgres-tools (push) Successful in 1m34s
Foundation / image (push) Successful in 2m37s

ADR-0097. A libFuzzer target for session protocol v4, grants, tickets and
snapshot assembly (canonical re-encoding, verifiers always refuse, a
completed snapshot is applied), with the code under test compiled in, and
a seeded smoke CTest of the same target on every platform. Four
quic-sessions abuse tests measure an honest session tick by tick under a
Hello flood (garbage, untrusted grants, silence), a datagram flood, a
slow peer and a connect/disconnect storm; it keeps every snapshot and
receipt while connections and retained state stay bounded.

evo-session-probe run --grants FILE [--grant N] logs in from an existing
bundle (a dev renewal's) without an issuer key. client_lifecycle uses
SDL_getenv (MSVC rejected std::getenv).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-07 22:57:45 -04:00
co-authored by Claude Opus 5.5
parent fe43706395
commit 5f587f80e1
12 changed files with 597 additions and 26 deletions
+21
View File
@@ -422,6 +422,27 @@ void end_to_end() {
}
CHECK(marks.size() >= 2 && marks.back()[3] >= 1 && marks.back()[1] > marks.front()[1] &&
marks.back()[2] == marks.front()[2]);
// M10.9 (ADR-0097): a login from an existing bundle (as a dev renewal writes one), with
// no issuer key: grant 1 of a two-grant bundle for Dana.
const auto dana = account(0x53);
const auto bundle = s.region.root / "dana-grants.bin";
Child g{{probe.string(), "grants", "--issuer-key", (s.region.root / "issuer.key").string(),
"--world", "7", "--frame", std::to_string(region_identity.frame), "--region", "151",
"--account", hex(dana), "--count", "2", "--lifetime", "900", "--out",
bundle.string()}};
CHECK(g.wait_exit(30s) == 0);
Child q{{probe.string(), "run", "--connect", "127.0.0.1:" + std::to_string(server->port),
"--server-name", name, "--ca", (s.region.root / "ca.pem").string(), "--grants",
bundle.string(), "--grant", "1", "--intents", "2", "--snapshots", "2"}};
code = -1;
for (const auto end = Clock::now() + 30s; Clock::now() < end && code < 0;) {
server->pump();
q.pump(5ms);
if (q.printed("done") || q.printed("timeout") || q.printed("closed"))
code = q.wait_exit(10s);
}
CHECK(code == 0 && q.printed("grant 1 of 2") && q.printed("welcome ") &&
q.printed("intention 1 0"));
server->child->signal(SIGTERM);
CHECK(server->child->wait_exit(30s) == 0);
CHECK(server->child->printed("m10 opened ") && server->child->printed("m10 committed ") &&