Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/patches/4425a3fe43ee1318 # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers ## GitHub aien-dev/omega-mv#959 (code only) closed derived `4425a3fe43ee1318` #959 Imported from GitHub aien-dev/omega-mv#959 (code only) GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed). Base `62d1d0d668f897386a0e311374f8dbcc5c32dde8` · Head `71885c04eb7f66f09b876e56789432760a3757c1` ### Apply it ``` git checkout -b patch-4425a3fe43ee1318 62d1d0d668f897386a0e311374f8dbcc5c32dde8 curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/4425a3fe43ee1318.patch | git am ``` Raw patch (mbox) · Diff ### Provenance This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record: ``` github-import 1 aien-dev/omega-mv 959 71885c04eb7f66f09b876e56789432760a3757c1 ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":959,"url":"https://github.com/aien-dev/omega-mv/pull/959","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:29Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/.crumb b/.crumb index f3e51fe46..5d0fbed5c 100644 --- a/.crumb +++ b/.crumb @@ -72,38 +72,38 @@ }, { "digest": "f765ad87fdddd9b47f690b07298c951a0f7e7675dc5de4ffe44e33a0c14b1986", - "last_commit": "a8a6a3d3c", + "last_commit": "62d1d0d66", "name": "spec", "purpose": "Directory spec. Purpose not yet described by a human." }, { "digest": "aaf5acb82fd4c720cd60c85fd6087f636c72a98e2f3740c9295dcfa525dc64d7", - "last_commit": "bf54b19fa", + "last_commit": "089e5b053", "name": "src", "purpose": "Directory src. Purpose not yet described by a human." }, { "digest": "5395ff8ff9afceebe8e453788f80a3064b831513cc4cb92fd55869115e06b874", - "last_commit": "a8a6a3d3c", + "last_commit": "62d1d0d66", "name": "tests", "purpose": "Directory tests. Purpose not yet described by a human." }, { "digest": "308db0e6cf45c0a48f01f5f5f228450f191389de68006915b9ecf9c65b9a2e29", - "last_commit": "a8a6a3d3c", + "last_commit": "62d1d0d66", "name": "tools", "purpose": "Directory tools. Purpose not yet described by a human." } ], "children_root": "sha256:07bf1706dcffbad66c0353871ff67a6749055da03cee8d8ebdf9a4c91e36bddc", - "compiled_at": "2026-10-30T12:31:50Z", + "compiled_at": "2026-10-30T16:03:36Z", "compiler": "crumb-compile/1", - "digest": "sha256:904fca8c0e0cf3e3a5e5adb73393e01c7018b920bb542d289904240f70e400d6", - "evidence_files": 12622, - "evidence_root": "sha256:b1a08e2ce56e6feada0d8a31f06fbd7adee57adc1c1ad8dec220293ee5d439f9", - "files": 17849, - "generated_at_commit": "52a82f392fa513ebbc2d9d719a0f14c385289b06", - "source_tree": "sha256:75458da6553a0ee5ea2af95f46afb658e8a3f6e53cca6e3b4b9874035f78c2ed" + "digest": "sha256:2ff703f89a057dd27c8e0a817ddde47233bbc384e882018408e94ad8b989e50d", + "evidence_files": 12633, + "evidence_root": "sha256:c4c110f6d62d9df8c229b828dba813e3c9c8ea0a41ba55c550a8d825b984e7d3", + "files": 17887, + "generated_at_commit": "5d08c95e1adcc3c9f9e2e4e081746858c0d3927d", + "source_tree": "sha256:f83011794e21b990111b830fec85e18fea532ad6395b816d44b6c1790846e565" }, "owner_lane": "", "provenance": { diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index dda6d20b5..0753999eb 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -49,3 +49,4 @@ Update this table in the same commit as the work it credits. | Codex | Integrated FR-9 with compiler batch 3 and the latest quantity/diagnostic audit; preserved empty text and integer-bitcast behavior on x86 and kept seed bootstrap within its function budget by removing unused helpers and inlining one single-use helper. | | Codex | Fixed x86 quantity unary refusals and empty-text emission; added explicit per-target acceptance contracts, preserved historical failed experiments, and exercised missing diagnostic callers and stale-binding controls. | | Grok 4.7 | Merged current main (b3dca0f1) into #514. The only conflict was the generated root `.crumb`; regenerated crumbs with the crumb.lock tool (d0f0b95d). | +| Claude Opus 5.5 | Ported the #671 packed-list hostile-ingress campaign (from 9a2b6a5) to main as an OM-2 conductor gate in `seed/host/check.sh`: 60 runtime packet, boundary and truncation cases, with size, count and exact-length mutant compilers each detected, and the record-length mutant documented as undetectable by exit status | diff --git a/evidence/SECURITY-673/packet-main1/README.md b/evidence/SECURITY-673/packet-main1/README.md new file mode 100644 index 000000000..2a6e4b03a --- /dev/null +++ b/evidence/SECURITY-673/packet-main1/README.md @@ -0,0 +1,56 @@ +# Packed-list hostile ingress on main's compiler (#671) + +Date: 2026-10-30 (UTC). Host: DGX Spark, Linux 7.0.0-1019-nvidia aarch64, CPUs 15-19 +under `nice -n 19 ionice -c3`. Base: aien-dev/omega-mv main +`62d1d0d668f897386a0e311374f8dbcc5c32dde8` plus the files added in this commit. +Compiler: `seed/out/omc` sha256 +`62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b` (unchanged; +`seed/omega-from-seed.sh` inside `check.sh` rebuilt it to the same digest). + +Ported from commit `9a2b6a5` on `fix/security673-qualified` (packet corpus modes 0-8 +and the execprog consumer), extended with the boundary cases below and wired into +`seed/host/check.sh` through the OM-2 conductor instead of the unwired `gate669.om`. + +## Commands + +```sh +make build/omegese/omegese build/omega_emit/omega_emit build/checker2/checker2 +TMPDIR=/dev/shm taskset -c 15-19 nice -n 19 ionice -c3 sh seed/host/check.sh # exit 0 +# controls below, with GATE built by: seed/out/omc < seed/qualification/om2/gate.om +GATE seed/out/omc $(sha256sum seed/out/omc | cut -d' ' -f1) evidence/SECURITY-673/packet-main1/negative-controls.cases SCRATCH # exit 1 +GATE seed/out/omc $(sha256sum seed/out/omc | cut -d' ' -f1) evidence/SECURITY-673/packet-main1/reclen-equivalent.cases SCRATCH # exit 0 +``` + +## Results + +| File | Expected | Observed | +| --- | --- | --- | +| `check-packets.log` | 60 rows PASS: 16 fixture identities, 4 valid packets exit 0 (echo prints `packed list`), 12 malformed packets exit 103, prefixes 0..26 of the echo packet exit 103, prefix 27 exit 0 | `OM2GATE PASS cases=60 pass=60 fail=0 invalid=0 not_run=0` | +| `check-packets-mutant.log` | each mutant compiler executes the packet only its check refuses | `mutant-size`, `mutant-count`, `mutant-exact`: `FAIL run exit=0 expected=103`; `OM2GATE FAIL cases=3 pass=0 fail=3` | +| `check-tail.log` | whole host qualification passes | `PASS native-host qualification` | +| `negative-controls.log` | the conductor rejects a wrong fixture, a wrong accept, a wrong refusal and a one-byte-short prefix | 4 of 4 FAIL, exit 1 | +| `reclen-equivalent.log` | see below | 21 of 21 PASS, exit 0 (mutant survives) | + +No malformed packet was accepted by main's compiler, so this campaign found no +defect to fix on main. + +## Record-length check: not detectable by exit status + +`mut-reclen-*.txt` removes `cmp x12, x5; b.hi` (declared record length above the +remaining bytes). The mutant still traps 3 on every over-declared record tried: +three corpus packets (modes 3, 7 and 15) and 18 truncated prefixes of the echo +packet. The +decoder then copies past the slice end, and either the zero-byte check stops at the +first zero it reads or the exact-consumption check traps after the remaining count +wraps. The check bounds how far the decoder reads; exit status and output cannot +show its removal, and the OM-2 conductor counts a signal as INVALID, never a kill. +This mutant is therefore not counted as detected. + +`omega-seed.log` holds the summary lines of `bash tests/gates/run.sh seed` +(OMEGA-SEED, exit 0, no SKIP, GATE5 PASS), which includes this campaign. + +## Not run + +- x86-64 decoder `xhpack`: not exercised. +- Other #671 ingress paths (renames, argread paths, manifests, receipts, RPC, model + metadata, trace and device parsers): NOT_RUN here. diff --git a/evidence/SECURITY-673/packet-main1/check-packets-mutant.log b/evidence/SECURITY-673/packet-main1/check-packets-mutant.log new file mode 100644 index 000000000..07436c356 --- /dev/null +++ b/evidence/SECURITY-673/packet-main1/check-packets-mutant.log @@ -0,0 +1,29 @@ +OM2GATE START cases=seed/qualification/security673/packets-mutant.cases scratch=build/seed/contracts/run.PLxgL5/packets-mutant +IDENTITY omc seed/out/omc sha256=62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b pinned=62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b match +SUBST seed/qualification/security673/packets/mut-size-from.txt seed/qualification/security673/packets/mut-size-to.txt + MUTATE exact-once substitution at byte 103574 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets-mutant/8.src > build/seed/contracts/run.PLxgL5/packets-mutant/8.elf 2> build/seed/contracts/run.PLxgL5/packets-mutant/8.cerr +COMPILER build/seed/contracts/run.PLxgL5/packets-mutant/8.elf sha256=961c2bd22d5e078cbfc9032fd0e5e7bb8f273821f2634abfcce3d9e707f9c76d source line=8 +CASE mutant-size line=9 + $ build/seed/contracts/run.PLxgL5/packets-mutant/8.elf < build/seed/contracts/run.PLxgL5/packets-mutant/9.src > build/seed/contracts/run.PLxgL5/packets-mutant/9.elf 2> build/seed/contracts/run.PLxgL5/packets-mutant/9.cerr + $ build/seed/contracts/run.PLxgL5/packets-mutant/9.elf < seed/qualification/security673/packets/p10.bin > build/seed/contracts/run.PLxgL5/packets-mutant/9.out 2> build/seed/contracts/run.PLxgL5/packets-mutant/9.err +VERDICT mutant-size FAIL run exit=0 expected=103 stdout=match stderr=match +COMPILER seed/out/omc +SUBST seed/qualification/security673/packets/mut-count-from.txt seed/qualification/security673/packets/mut-count-to.txt + MUTATE exact-once substitution at byte 103770 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets-mutant/13.src > build/seed/contracts/run.PLxgL5/packets-mutant/13.elf 2> build/seed/contracts/run.PLxgL5/packets-mutant/13.cerr +COMPILER build/seed/contracts/run.PLxgL5/packets-mutant/13.elf sha256=e81c841fd45898ecdcc23ea3dd759235cf50ab10b19605a6affc44fd9f347407 source line=13 +CASE mutant-count line=14 + $ build/seed/contracts/run.PLxgL5/packets-mutant/13.elf < build/seed/contracts/run.PLxgL5/packets-mutant/14.src > build/seed/contracts/run.PLxgL5/packets-mutant/14.elf 2> build/seed/contracts/run.PLxgL5/packets-mutant/14.cerr + $ build/seed/contracts/run.PLxgL5/packets-mutant/14.elf < seed/qualification/security673/packets/p09.bin > build/seed/contracts/run.PLxgL5/packets-mutant/14.out 2> build/seed/contracts/run.PLxgL5/packets-mutant/14.err +VERDICT mutant-count FAIL run exit=0 expected=103 stdout=match stderr=match +COMPILER seed/out/omc +SUBST seed/qualification/security673/packets/mut-exact-from.txt seed/qualification/security673/packets/mut-exact-to.txt + MUTATE exact-once substitution at byte 104627 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets-mutant/18.src > build/seed/contracts/run.PLxgL5/packets-mutant/18.elf 2> build/seed/contracts/run.PLxgL5/packets-mutant/18.cerr +COMPILER build/seed/contracts/run.PLxgL5/packets-mutant/18.elf sha256=4c765c49d5b96d87099cc5bc748682969183f495e9642a8a8542b760adc42aee source line=18 +CASE mutant-exact line=19 + $ build/seed/contracts/run.PLxgL5/packets-mutant/18.elf < build/seed/contracts/run.PLxgL5/packets-mutant/19.src > build/seed/contracts/run.PLxgL5/packets-mutant/19.elf 2> build/seed/contracts/run.PLxgL5/packets-mutant/19.cerr + $ build/seed/contracts/run.PLxgL5/packets-mutant/19.elf < seed/qualification/security673/packets/p04.bin > build/seed/contracts/run.PLxgL5/packets-mutant/19.out 2> build/seed/contracts/run.PLxgL5/packets-mutant/19.err +VERDICT mutant-exact FAIL run exit=0 expected=103 stdout=match stderr=match +OM2GATE FAIL cases=3 pass=0 fail=3 invalid=0 not_run=0 diff --git a/evidence/SECURITY-673/packet-main1/check-packets.log b/evidence/SECURITY-673/packet-main1/check-packets.log new file mode 100644 index 000000000..60bf591c1 --- /dev/null +++ b/evidence/SECURITY-673/packet-main1/check-packets.log @@ -0,0 +1,244 @@ +OM2GATE START cases=seed/qualification/security673/packets.cases scratch=build/seed/contracts/run.PLxgL5/packets +IDENTITY omc seed/out/omc sha256=62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b pinned=62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b match +CASE gen00-valid-one line=7 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/7.src > build/seed/contracts/run.PLxgL5/packets/7.elf 2> build/seed/contracts/run.PLxgL5/packets/7.cerr + $ build/seed/contracts/run.PLxgL5/packets/7.elf < build/seed/contracts/run.PLxgL5/packets/7.in > build/seed/contracts/run.PLxgL5/packets/7.out 2> build/seed/contracts/run.PLxgL5/packets/7.err +VERDICT gen00-valid-one PASS run exit=0 expected=0 stdout=match stderr=match +CASE gen01-count-zero line=8 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/8.src > build/seed/contracts/run.PLxgL5/packets/8.elf 2> build/seed/contracts/run.PLxgL5/packets/8.cerr + $ build/seed/contracts/run.PLxgL5/packets/8.elf < build/seed/contracts/run.PLxgL5/packets/8.in > build/seed/contracts/run.PLxgL5/packets/8.out 2> build/seed/contracts/run.PLxgL5/packets/8.err +VERDICT gen01-count-zero PASS run exit=0 expected=0 stdout=match stderr=match +CASE gen02-count-65-bare line=9 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/9.src > build/seed/contracts/run.PLxgL5/packets/9.elf 2> build/seed/contracts/run.PLxgL5/packets/9.cerr + $ build/seed/contracts/run.PLxgL5/packets/9.elf < build/seed/contracts/run.PLxgL5/packets/9.in > build/seed/contracts/run.PLxgL5/packets/9.out 2> build/seed/contracts/run.PLxgL5/packets/9.err +VERDICT gen02-count-65-bare PASS run exit=0 expected=0 stdout=match stderr=match +CASE gen03-record-truncated line=10 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/10.src > build/seed/contracts/run.PLxgL5/packets/10.elf 2> build/seed/contracts/run.PLxgL5/packets/10.cerr + $ build/seed/contracts/run.PLxgL5/packets/10.elf < build/seed/contracts/run.PLxgL5/packets/10.in > build/seed/contracts/run.PLxgL5/packets/10.out 2> build/seed/contracts/run.PLxgL5/packets/10.err +VERDICT gen03-record-truncated PASS run exit=0 expected=0 stdout=match stderr=match +CASE gen04-trailing-byte line=11 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/11.src > build/seed/contracts/run.PLxgL5/packets/11.elf 2> build/seed/contracts/run.PLxgL5/packets/11.cerr + $ build/seed/contracts/run.PLxgL5/packets/11.elf < build/seed/contracts/run.PLxgL5/packets/11.in > build/seed/contracts/run.PLxgL5/packets/11.out 2> build/seed/contracts/run.PLxgL5/packets/11.err +VERDICT gen04-trailing-byte PASS run exit=0 expected=0 stdout=match stderr=match +CASE gen05-first-empty line=12 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/12.src > build/seed/contracts/run.PLxgL5/packets/12.elf 2> build/seed/contracts/run.PLxgL5/packets/12.cerr + $ build/seed/contracts/run.PLxgL5/packets/12.elf < build/seed/contracts/run.PLxgL5/packets/12.in > build/seed/contracts/run.PLxgL5/packets/12.out 2> build/seed/contracts/run.PLxgL5/packets/12.err +VERDICT gen05-first-empty PASS run exit=0 expected=0 stdout=match stderr=match +CASE gen06-embedded-zero line=13 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/13.src > build/seed/contracts/run.PLxgL5/packets/13.elf 2> build/seed/contracts/run.PLxgL5/packets/13.cerr + $ build/seed/contracts/run.PLxgL5/packets/13.elf < build/seed/contracts/run.PLxgL5/packets/13.in > build/seed/contracts/run.PLxgL5/packets/13.out 2> build/seed/contracts/run.PLxgL5/packets/13.err +VERDICT gen06-embedded-zero PASS run exit=0 expected=0 stdout=match stderr=match +CASE gen07-record-overdeclared line=14 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/14.src > build/seed/contracts/run.PLxgL5/packets/14.elf 2> build/seed/contracts/run.PLxgL5/packets/14.cerr + $ build/seed/contracts/run.PLxgL5/packets/14.elf < build/seed/contracts/run.PLxgL5/packets/14.in > build/seed/contracts/run.PLxgL5/packets/14.out 2> build/seed/contracts/run.PLxgL5/packets/14.err +VERDICT gen07-record-overdeclared PASS run exit=0 expected=0 stdout=match stderr=match +CASE gen08-valid-64 line=15 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/15.src > build/seed/contracts/run.PLxgL5/packets/15.elf 2> build/seed/contracts/run.PLxgL5/packets/15.cerr + $ build/seed/contracts/run.PLxgL5/packets/15.elf < build/seed/contracts/run.PLxgL5/packets/15.in > build/seed/contracts/run.PLxgL5/packets/15.out 2> build/seed/contracts/run.PLxgL5/packets/15.err +VERDICT gen08-valid-64 PASS run exit=0 expected=0 stdout=match stderr=match +CASE gen09-count-65-records line=16 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/16.src > build/seed/contracts/run.PLxgL5/packets/16.elf 2> build/seed/contracts/run.PLxgL5/packets/16.cerr + $ build/seed/contracts/run.PLxgL5/packets/16.elf < build/seed/contracts/run.PLxgL5/packets/16.in > build/seed/contracts/run.PLxgL5/packets/16.out 2> build/seed/contracts/run.PLxgL5/packets/16.err +VERDICT gen09-count-65-records PASS run exit=0 expected=0 stdout=match stderr=match +CASE gen10-size-4097 line=17 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/17.src > build/seed/contracts/run.PLxgL5/packets/17.elf 2> build/seed/contracts/run.PLxgL5/packets/17.cerr + $ build/seed/contracts/run.PLxgL5/packets/17.elf < build/seed/contracts/run.PLxgL5/packets/17.in > build/seed/contracts/run.PLxgL5/packets/17.out 2> build/seed/contracts/run.PLxgL5/packets/17.err +VERDICT gen10-size-4097 PASS run exit=0 expected=0 stdout=match stderr=match +CASE gen11-size-4096 line=18 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/18.src > build/seed/contracts/run.PLxgL5/packets/18.elf 2> build/seed/contracts/run.PLxgL5/packets/18.cerr + $ build/seed/contracts/run.PLxgL5/packets/18.elf < build/seed/contracts/run.PLxgL5/packets/18.in > build/seed/contracts/run.PLxgL5/packets/18.out 2> build/seed/contracts/run.PLxgL5/packets/18.err +VERDICT gen11-size-4096 PASS run exit=0 expected=0 stdout=match stderr=match +CASE gen12-echo-argv line=19 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/19.src > build/seed/contracts/run.PLxgL5/packets/19.elf 2> build/seed/contracts/run.PLxgL5/packets/19.cerr + $ build/seed/contracts/run.PLxgL5/packets/19.elf < build/seed/contracts/run.PLxgL5/packets/19.in > build/seed/contracts/run.PLxgL5/packets/19.out 2> build/seed/contracts/run.PLxgL5/packets/19.err +VERDICT gen12-echo-argv PASS run exit=0 expected=0 stdout=match stderr=match +CASE gen13-zero-after-path line=20 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/20.src > build/seed/contracts/run.PLxgL5/packets/20.elf 2> build/seed/contracts/run.PLxgL5/packets/20.cerr + $ build/seed/contracts/run.PLxgL5/packets/20.elf < build/seed/contracts/run.PLxgL5/packets/20.in > build/seed/contracts/run.PLxgL5/packets/20.out 2> build/seed/contracts/run.PLxgL5/packets/20.err +VERDICT gen13-zero-after-path PASS run exit=0 expected=0 stdout=match stderr=match +CASE gen14-count-65535 line=21 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/21.src > build/seed/contracts/run.PLxgL5/packets/21.elf 2> build/seed/contracts/run.PLxgL5/packets/21.cerr + $ build/seed/contracts/run.PLxgL5/packets/21.elf < build/seed/contracts/run.PLxgL5/packets/21.in > build/seed/contracts/run.PLxgL5/packets/21.out 2> build/seed/contracts/run.PLxgL5/packets/21.err +VERDICT gen14-count-65535 PASS run exit=0 expected=0 stdout=match stderr=match +CASE gen15-length-65535 line=22 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/22.src > build/seed/contracts/run.PLxgL5/packets/22.elf 2> build/seed/contracts/run.PLxgL5/packets/22.cerr + $ build/seed/contracts/run.PLxgL5/packets/22.elf < build/seed/contracts/run.PLxgL5/packets/22.in > build/seed/contracts/run.PLxgL5/packets/22.out 2> build/seed/contracts/run.PLxgL5/packets/22.err +VERDICT gen15-length-65535 PASS run exit=0 expected=0 stdout=match stderr=match +CASE p00-valid-one line=23 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/23.src > build/seed/contracts/run.PLxgL5/packets/23.elf 2> build/seed/contracts/run.PLxgL5/packets/23.cerr + $ build/seed/contracts/run.PLxgL5/packets/23.elf < seed/qualification/security673/packets/p00.bin > build/seed/contracts/run.PLxgL5/packets/23.out 2> build/seed/contracts/run.PLxgL5/packets/23.err +VERDICT p00-valid-one PASS run exit=0 expected=0 stdout=match stderr=match +CASE p01-count-zero line=24 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/24.src > build/seed/contracts/run.PLxgL5/packets/24.elf 2> build/seed/contracts/run.PLxgL5/packets/24.cerr + $ build/seed/contracts/run.PLxgL5/packets/24.elf < seed/qualification/security673/packets/p01.bin > build/seed/contracts/run.PLxgL5/packets/24.out 2> build/seed/contracts/run.PLxgL5/packets/24.err +VERDICT p01-count-zero PASS run exit=103 expected=103 stdout=match stderr=match +CASE p02-count-65-bare line=25 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/25.src > build/seed/contracts/run.PLxgL5/packets/25.elf 2> build/seed/contracts/run.PLxgL5/packets/25.cerr + $ build/seed/contracts/run.PLxgL5/packets/25.elf < seed/qualification/security673/packets/p02.bin > build/seed/contracts/run.PLxgL5/packets/25.out 2> build/seed/contracts/run.PLxgL5/packets/25.err +VERDICT p02-count-65-bare PASS run exit=103 expected=103 stdout=match stderr=match +CASE p03-record-truncated line=26 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/26.src > build/seed/contracts/run.PLxgL5/packets/26.elf 2> build/seed/contracts/run.PLxgL5/packets/26.cerr + $ build/seed/contracts/run.PLxgL5/packets/26.elf < seed/qualification/security673/packets/p03.bin > build/seed/contracts/run.PLxgL5/packets/26.out 2> build/seed/contracts/run.PLxgL5/packets/26.err +VERDICT p03-record-truncated PASS run exit=103 expected=103 stdout=match stderr=match +CASE p04-trailing-byte line=27 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/27.src > build/seed/contracts/run.PLxgL5/packets/27.elf 2> build/seed/contracts/run.PLxgL5/packets/27.cerr + $ build/seed/contracts/run.PLxgL5/packets/27.elf < seed/qualification/security673/packets/p04.bin > build/seed/contracts/run.PLxgL5/packets/27.out 2> build/seed/contracts/run.PLxgL5/packets/27.err +VERDICT p04-trailing-byte PASS run exit=103 expected=103 stdout=match stderr=match +CASE p05-first-empty line=28 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/28.src > build/seed/contracts/run.PLxgL5/packets/28.elf 2> build/seed/contracts/run.PLxgL5/packets/28.cerr + $ build/seed/contracts/run.PLxgL5/packets/28.elf < seed/qualification/security673/packets/p05.bin > build/seed/contracts/run.PLxgL5/packets/28.out 2> build/seed/contracts/run.PLxgL5/packets/28.err +VERDICT p05-first-empty PASS run exit=103 expected=103 stdout=match stderr=match +CASE p06-embedded-zero line=29 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/29.src > build/seed/contracts/run.PLxgL5/packets/29.elf 2> build/seed/contracts/run.PLxgL5/packets/29.cerr + $ build/seed/contracts/run.PLxgL5/packets/29.elf < seed/qualification/security673/packets/p06.bin > build/seed/contracts/run.PLxgL5/packets/29.out 2> build/seed/contracts/run.PLxgL5/packets/29.err +VERDICT p06-embedded-zero PASS run exit=103 expected=103 stdout=match stderr=match +CASE p07-record-overdeclared line=30 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/30.src > build/seed/contracts/run.PLxgL5/packets/30.elf 2> build/seed/contracts/run.PLxgL5/packets/30.cerr + $ build/seed/contracts/run.PLxgL5/packets/30.elf < seed/qualification/security673/packets/p07.bin > build/seed/contracts/run.PLxgL5/packets/30.out 2> build/seed/contracts/run.PLxgL5/packets/30.err +VERDICT p07-record-overdeclared PASS run exit=103 expected=103 stdout=match stderr=match +CASE p08-valid-64 line=31 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/31.src > build/seed/contracts/run.PLxgL5/packets/31.elf 2> build/seed/contracts/run.PLxgL5/packets/31.cerr + $ build/seed/contracts/run.PLxgL5/packets/31.elf < seed/qualification/security673/packets/p08.bin > build/seed/contracts/run.PLxgL5/packets/31.out 2> build/seed/contracts/run.PLxgL5/packets/31.err +VERDICT p08-valid-64 PASS run exit=0 expected=0 stdout=match stderr=match +CASE p09-count-65-records line=32 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/32.src > build/seed/contracts/run.PLxgL5/packets/32.elf 2> build/seed/contracts/run.PLxgL5/packets/32.cerr + $ build/seed/contracts/run.PLxgL5/packets/32.elf < seed/qualification/security673/packets/p09.bin > build/seed/contracts/run.PLxgL5/packets/32.out 2> build/seed/contracts/run.PLxgL5/packets/32.err +VERDICT p09-count-65-records PASS run exit=103 expected=103 stdout=match stderr=match +CASE p10-size-4097 line=33 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/33.src > build/seed/contracts/run.PLxgL5/packets/33.elf 2> build/seed/contracts/run.PLxgL5/packets/33.cerr + $ build/seed/contracts/run.PLxgL5/packets/33.elf < seed/qualification/security673/packets/p10.bin > build/seed/contracts/run.PLxgL5/packets/33.out 2> build/seed/contracts/run.PLxgL5/packets/33.err +VERDICT p10-size-4097 PASS run exit=103 expected=103 stdout=match stderr=match +CASE p11-size-4096 line=34 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/34.src > build/seed/contracts/run.PLxgL5/packets/34.elf 2> build/seed/contracts/run.PLxgL5/packets/34.cerr + $ build/seed/contracts/run.PLxgL5/packets/34.elf < seed/qualification/security673/packets/p11.bin > build/seed/contracts/run.PLxgL5/packets/34.out 2> build/seed/contracts/run.PLxgL5/packets/34.err +VERDICT p11-size-4096 PASS run exit=0 expected=0 stdout=match stderr=match +CASE p12-echo-argv line=35 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/35.src > build/seed/contracts/run.PLxgL5/packets/35.elf 2> build/seed/contracts/run.PLxgL5/packets/35.cerr + $ build/seed/contracts/run.PLxgL5/packets/35.elf < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/35.out 2> build/seed/contracts/run.PLxgL5/packets/35.err +VERDICT p12-echo-argv PASS run exit=0 expected=0 stdout=match stderr=match +CASE p13-zero-after-path line=36 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/36.src > build/seed/contracts/run.PLxgL5/packets/36.elf 2> build/seed/contracts/run.PLxgL5/packets/36.cerr + $ build/seed/contracts/run.PLxgL5/packets/36.elf < seed/qualification/security673/packets/p13.bin > build/seed/contracts/run.PLxgL5/packets/36.out 2> build/seed/contracts/run.PLxgL5/packets/36.err +VERDICT p13-zero-after-path PASS run exit=103 expected=103 stdout=match stderr=match +CASE p14-count-65535 line=37 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/37.src > build/seed/contracts/run.PLxgL5/packets/37.elf 2> build/seed/contracts/run.PLxgL5/packets/37.cerr + $ build/seed/contracts/run.PLxgL5/packets/37.elf < seed/qualification/security673/packets/p14.bin > build/seed/contracts/run.PLxgL5/packets/37.out 2> build/seed/contracts/run.PLxgL5/packets/37.err +VERDICT p14-count-65535 PASS run exit=103 expected=103 stdout=match stderr=match +CASE p15-length-65535 line=38 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/38.src > build/seed/contracts/run.PLxgL5/packets/38.elf 2> build/seed/contracts/run.PLxgL5/packets/38.cerr + $ build/seed/contracts/run.PLxgL5/packets/38.elf < seed/qualification/security673/packets/p15.bin > build/seed/contracts/run.PLxgL5/packets/38.out 2> build/seed/contracts/run.PLxgL5/packets/38.err +VERDICT p15-length-65535 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc00 line=39 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/39.src > build/seed/contracts/run.PLxgL5/packets/39.elf 2> build/seed/contracts/run.PLxgL5/packets/39.cerr + $ build/seed/contracts/run.PLxgL5/packets/39.elf 0 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/39.out 2> build/seed/contracts/run.PLxgL5/packets/39.err +VERDICT trunc00 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc01 line=40 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/40.src > build/seed/contracts/run.PLxgL5/packets/40.elf 2> build/seed/contracts/run.PLxgL5/packets/40.cerr + $ build/seed/contracts/run.PLxgL5/packets/40.elf 1 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/40.out 2> build/seed/contracts/run.PLxgL5/packets/40.err +VERDICT trunc01 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc02 line=41 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/41.src > build/seed/contracts/run.PLxgL5/packets/41.elf 2> build/seed/contracts/run.PLxgL5/packets/41.cerr + $ build/seed/contracts/run.PLxgL5/packets/41.elf 2 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/41.out 2> build/seed/contracts/run.PLxgL5/packets/41.err +VERDICT trunc02 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc03 line=42 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/42.src > build/seed/contracts/run.PLxgL5/packets/42.elf 2> build/seed/contracts/run.PLxgL5/packets/42.cerr + $ build/seed/contracts/run.PLxgL5/packets/42.elf 3 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/42.out 2> build/seed/contracts/run.PLxgL5/packets/42.err +VERDICT trunc03 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc04 line=43 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/43.src > build/seed/contracts/run.PLxgL5/packets/43.elf 2> build/seed/contracts/run.PLxgL5/packets/43.cerr + $ build/seed/contracts/run.PLxgL5/packets/43.elf 4 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/43.out 2> build/seed/contracts/run.PLxgL5/packets/43.err +VERDICT trunc04 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc05 line=44 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/44.src > build/seed/contracts/run.PLxgL5/packets/44.elf 2> build/seed/contracts/run.PLxgL5/packets/44.cerr + $ build/seed/contracts/run.PLxgL5/packets/44.elf 5 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/44.out 2> build/seed/contracts/run.PLxgL5/packets/44.err +VERDICT trunc05 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc06 line=45 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/45.src > build/seed/contracts/run.PLxgL5/packets/45.elf 2> build/seed/contracts/run.PLxgL5/packets/45.cerr + $ build/seed/contracts/run.PLxgL5/packets/45.elf 6 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/45.out 2> build/seed/contracts/run.PLxgL5/packets/45.err +VERDICT trunc06 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc07 line=46 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/46.src > build/seed/contracts/run.PLxgL5/packets/46.elf 2> build/seed/contracts/run.PLxgL5/packets/46.cerr + $ build/seed/contracts/run.PLxgL5/packets/46.elf 7 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/46.out 2> build/seed/contracts/run.PLxgL5/packets/46.err +VERDICT trunc07 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc08 line=47 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/47.src > build/seed/contracts/run.PLxgL5/packets/47.elf 2> build/seed/contracts/run.PLxgL5/packets/47.cerr + $ build/seed/contracts/run.PLxgL5/packets/47.elf 8 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/47.out 2> build/seed/contracts/run.PLxgL5/packets/47.err +VERDICT trunc08 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc09 line=48 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/48.src > build/seed/contracts/run.PLxgL5/packets/48.elf 2> build/seed/contracts/run.PLxgL5/packets/48.cerr + $ build/seed/contracts/run.PLxgL5/packets/48.elf 9 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/48.out 2> build/seed/contracts/run.PLxgL5/packets/48.err +VERDICT trunc09 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc10 line=49 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/49.src > build/seed/contracts/run.PLxgL5/packets/49.elf 2> build/seed/contracts/run.PLxgL5/packets/49.cerr + $ build/seed/contracts/run.PLxgL5/packets/49.elf 10 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/49.out 2> build/seed/contracts/run.PLxgL5/packets/49.err +VERDICT trunc10 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc11 line=50 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/50.src > build/seed/contracts/run.PLxgL5/packets/50.elf 2> build/seed/contracts/run.PLxgL5/packets/50.cerr + $ build/seed/contracts/run.PLxgL5/packets/50.elf 11 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/50.out 2> build/seed/contracts/run.PLxgL5/packets/50.err +VERDICT trunc11 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc12 line=51 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/51.src > build/seed/contracts/run.PLxgL5/packets/51.elf 2> build/seed/contracts/run.PLxgL5/packets/51.cerr + $ build/seed/contracts/run.PLxgL5/packets/51.elf 12 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/51.out 2> build/seed/contracts/run.PLxgL5/packets/51.err +VERDICT trunc12 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc13 line=52 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/52.src > build/seed/contracts/run.PLxgL5/packets/52.elf 2> build/seed/contracts/run.PLxgL5/packets/52.cerr + $ build/seed/contracts/run.PLxgL5/packets/52.elf 13 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/52.out 2> build/seed/contracts/run.PLxgL5/packets/52.err +VERDICT trunc13 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc14 line=53 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/53.src > build/seed/contracts/run.PLxgL5/packets/53.elf 2> build/seed/contracts/run.PLxgL5/packets/53.cerr + $ build/seed/contracts/run.PLxgL5/packets/53.elf 14 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/53.out 2> build/seed/contracts/run.PLxgL5/packets/53.err +VERDICT trunc14 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc15 line=54 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/54.src > build/seed/contracts/run.PLxgL5/packets/54.elf 2> build/seed/contracts/run.PLxgL5/packets/54.cerr + $ build/seed/contracts/run.PLxgL5/packets/54.elf 15 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/54.out 2> build/seed/contracts/run.PLxgL5/packets/54.err +VERDICT trunc15 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc16 line=55 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/55.src > build/seed/contracts/run.PLxgL5/packets/55.elf 2> build/seed/contracts/run.PLxgL5/packets/55.cerr + $ build/seed/contracts/run.PLxgL5/packets/55.elf 16 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/55.out 2> build/seed/contracts/run.PLxgL5/packets/55.err +VERDICT trunc16 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc17 line=56 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/56.src > build/seed/contracts/run.PLxgL5/packets/56.elf 2> build/seed/contracts/run.PLxgL5/packets/56.cerr + $ build/seed/contracts/run.PLxgL5/packets/56.elf 17 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/56.out 2> build/seed/contracts/run.PLxgL5/packets/56.err +VERDICT trunc17 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc18 line=57 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/57.src > build/seed/contracts/run.PLxgL5/packets/57.elf 2> build/seed/contracts/run.PLxgL5/packets/57.cerr + $ build/seed/contracts/run.PLxgL5/packets/57.elf 18 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/57.out 2> build/seed/contracts/run.PLxgL5/packets/57.err +VERDICT trunc18 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc19 line=58 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/58.src > build/seed/contracts/run.PLxgL5/packets/58.elf 2> build/seed/contracts/run.PLxgL5/packets/58.cerr + $ build/seed/contracts/run.PLxgL5/packets/58.elf 19 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/58.out 2> build/seed/contracts/run.PLxgL5/packets/58.err +VERDICT trunc19 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc20 line=59 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/59.src > build/seed/contracts/run.PLxgL5/packets/59.elf 2> build/seed/contracts/run.PLxgL5/packets/59.cerr + $ build/seed/contracts/run.PLxgL5/packets/59.elf 20 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/59.out 2> build/seed/contracts/run.PLxgL5/packets/59.err +VERDICT trunc20 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc21 line=60 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/60.src > build/seed/contracts/run.PLxgL5/packets/60.elf 2> build/seed/contracts/run.PLxgL5/packets/60.cerr + $ build/seed/contracts/run.PLxgL5/packets/60.elf 21 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/60.out 2> build/seed/contracts/run.PLxgL5/packets/60.err +VERDICT trunc21 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc22 line=61 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/61.src > build/seed/contracts/run.PLxgL5/packets/61.elf 2> build/seed/contracts/run.PLxgL5/packets/61.cerr + $ build/seed/contracts/run.PLxgL5/packets/61.elf 22 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/61.out 2> build/seed/contracts/run.PLxgL5/packets/61.err +VERDICT trunc22 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc23 line=62 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/62.src > build/seed/contracts/run.PLxgL5/packets/62.elf 2> build/seed/contracts/run.PLxgL5/packets/62.cerr + $ build/seed/contracts/run.PLxgL5/packets/62.elf 23 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/62.out 2> build/seed/contracts/run.PLxgL5/packets/62.err +VERDICT trunc23 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc24 line=63 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/63.src > build/seed/contracts/run.PLxgL5/packets/63.elf 2> build/seed/contracts/run.PLxgL5/packets/63.cerr + $ build/seed/contracts/run.PLxgL5/packets/63.elf 24 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/63.out 2> build/seed/contracts/run.PLxgL5/packets/63.err +VERDICT trunc24 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc25 line=64 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/64.src > build/seed/contracts/run.PLxgL5/packets/64.elf 2> build/seed/contracts/run.PLxgL5/packets/64.cerr + $ build/seed/contracts/run.PLxgL5/packets/64.elf 25 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/64.out 2> build/seed/contracts/run.PLxgL5/packets/64.err +VERDICT trunc25 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc26 line=65 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/65.src > build/seed/contracts/run.PLxgL5/packets/65.elf 2> build/seed/contracts/run.PLxgL5/packets/65.cerr + $ build/seed/contracts/run.PLxgL5/packets/65.elf 26 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/65.out 2> build/seed/contracts/run.PLxgL5/packets/65.err +VERDICT trunc26 PASS run exit=103 expected=103 stdout=match stderr=match +CASE trunc27-whole line=66 + $ seed/out/omc < build/seed/contracts/run.PLxgL5/packets/66.src > build/seed/contracts/run.PLxgL5/packets/66.elf 2> build/seed/contracts/run.PLxgL5/packets/66.cerr + $ build/seed/contracts/run.PLxgL5/packets/66.elf 27 < seed/qualification/security673/packets/p12.bin > build/seed/contracts/run.PLxgL5/packets/66.out 2> build/seed/contracts/run.PLxgL5/packets/66.err +VERDICT trunc27-whole PASS run exit=0 expected=0 stdout=match stderr=match +OM2GATE PASS cases=60 pass=60 fail=0 invalid=0 not_run=0 +PASS packed-list ingress: hostile packets refused; size, count and exact-length mutants detected diff --git a/evidence/SECURITY-673/packet-main1/check-tail.log b/evidence/SECURITY-673/packet-main1/check-tail.log new file mode 100644 index 000000000..b855aafd7 --- /dev/null +++ b/evidence/SECURITY-673/packet-main1/check-tail.log @@ -0,0 +1,4 @@ +PASS 18 bounds, packet, mutability, type and function-mode negative controls +PASS 53 total host negative controls, including cwd, readlnk, sockopt, flock and network +PASS 62 original fixtures retain identical machine code, refusal status and diagnostics +PASS native-host qualification; seeded build, C tools are comparison oracles only diff --git a/evidence/SECURITY-673/packet-main1/mut-reclen-from.txt b/evidence/SECURITY-673/packet-main1/mut-reclen-from.txt new file mode 100644 index 000000000..0bacfa11b --- /dev/null +++ b/evidence/SECURITY-673/packet-main1/mut-reclen-from.txt @@ -0,0 +1,2 @@ +e3 3942645760 31 12 5 +trapc 8 3 diff --git a/evidence/SECURITY-673/packet-main1/mut-reclen-to.txt b/evidence/SECURITY-673/packet-main1/mut-reclen-to.txt new file mode 100644 index 000000000..008e01e3d --- /dev/null +++ b/evidence/SECURITY-673/packet-main1/mut-reclen-to.txt @@ -0,0 +1 @@ +e3 3942645760 31 12 5 diff --git a/evidence/SECURITY-673/packet-main1/negative-controls.cases b/evidence/SECURITY-673/packet-main1/negative-controls.cases new file mode 100644 index 000000000..5223a0a11 --- /dev/null +++ b/evidence/SECURITY-673/packet-main1/negative-controls.cases @@ -0,0 +1,4 @@ +neg-gen-wrong-fixture run seed/qualification/security673/packet-corpus.om rep:4:1 file:seed/qualification/security673/packets/p00.bin - 0 +neg-expect-accept-trailing run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p04.bin - - 0 +neg-expect-refuse-valid run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p00.bin - - 103 +neg-echo-wrong-prefix run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin file:seed/qualification/security673/packets/p12.out - 0 26 diff --git a/evidence/SECURITY-673/packet-main1/negative-controls.log b/evidence/SECURITY-673/packet-main1/negative-controls.log new file mode 100644 index 000000000..efa38e110 --- /dev/null +++ b/evidence/SECURITY-673/packet-main1/negative-controls.log @@ -0,0 +1,19 @@ +OM2GATE START cases=evidence/SECURITY-673/packet-main1/negative-controls.cases scratch=/dev/shm/pl671/run-negative-controls +IDENTITY omc seed/out/omc sha256=62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b pinned=62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b match +CASE neg-gen-wrong-fixture line=1 + $ seed/out/omc < /dev/shm/pl671/run-negative-controls/1.src > /dev/shm/pl671/run-negative-controls/1.elf 2> /dev/shm/pl671/run-negative-controls/1.cerr + $ /dev/shm/pl671/run-negative-controls/1.elf < /dev/shm/pl671/run-negative-controls/1.in > /dev/shm/pl671/run-negative-controls/1.out 2> /dev/shm/pl671/run-negative-controls/1.err +VERDICT neg-gen-wrong-fixture FAIL run exit=0 expected=0 stdout differs at byte 13 stderr=match +CASE neg-expect-accept-trailing line=2 + $ seed/out/omc < /dev/shm/pl671/run-negative-controls/2.src > /dev/shm/pl671/run-negative-controls/2.elf 2> /dev/shm/pl671/run-negative-controls/2.cerr + $ /dev/shm/pl671/run-negative-controls/2.elf < seed/qualification/security673/packets/p04.bin > /dev/shm/pl671/run-negative-controls/2.out 2> /dev/shm/pl671/run-negative-controls/2.err +VERDICT neg-expect-accept-trailing FAIL run exit=103 expected=0 stdout=match stderr=match +CASE neg-expect-refuse-valid line=3 + $ seed/out/omc < /dev/shm/pl671/run-negative-controls/3.src > /dev/shm/pl671/run-negative-controls/3.elf 2> /dev/shm/pl671/run-negative-controls/3.cerr + $ /dev/shm/pl671/run-negative-controls/3.elf < seed/qualification/security673/packets/p00.bin > /dev/shm/pl671/run-negative-controls/3.out 2> /dev/shm/pl671/run-negative-controls/3.err +VERDICT neg-expect-refuse-valid FAIL run exit=0 expected=103 stdout=match stderr=match +CASE neg-echo-wrong-prefix line=4 + $ seed/out/omc < /dev/shm/pl671/run-negative-controls/4.src > /dev/shm/pl671/run-negative-controls/4.elf 2> /dev/shm/pl671/run-negative-controls/4.cerr + $ /dev/shm/pl671/run-negative-controls/4.elf 26 < seed/qualification/security673/packets/p12.bin > /dev/shm/pl671/run-negative-controls/4.out 2> /dev/shm/pl671/run-negative-controls/4.err +VERDICT neg-echo-wrong-prefix FAIL run exit=103 expected=0 stdout differs at byte 0 stderr=match +OM2GATE FAIL cases=4 pass=0 fail=4 invalid=0 not_run=0 diff --git a/evidence/SECURITY-673/packet-main1/omega-seed.log b/evidence/SECURITY-673/packet-main1/omega-seed.log new file mode 100644 index 000000000..e51dbbb59 --- /dev/null +++ b/evidence/SECURITY-673/packet-main1/omega-seed.log @@ -0,0 +1,282 @@ +PASS seed0 408 bytes, rebuilds itself +PASS hex1 776 bytes, born from seed0 +PASS asm2 2464 bytes, born from hex1 +PASS om4 om4.bin 14224 bytes +PASS omc fixpoint 62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b +PASS fwd exit 0 +PASS fwd runs, exit 7 +PASS mut exit 0 +PASS mut runs, exit 0 +PASS cycle exit 9 +PASS assign exit 7 +PASS seed0 408 bytes, rebuilds itself +PASS hex1 776 bytes, born from seed0 +PASS asm2 2464 bytes, born from hex1 +PASS om4 om4.bin 14224 bytes +PASS omc fixpoint 62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b +PASS fwd exit 0 +PASS fwd runs, exit 7 +PASS mut exit 0 +PASS mut runs, exit 0 +PASS cycle exit 9 +PASS assign exit 7 +PASS fixpoint 62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b build/seed/ir/stage3 +PASS dev01 identical; checker2 ACCEPT +PASS dev02 identical; checker2 ACCEPT +PASS dev03 identical; checker2 ACCEPT +PASS dev04 identical; checker2 ACCEPT +PASS dev05 identical; checker2 ACCEPT +PASS dev06 identical; checker2 ACCEPT +PASS dev07 identical; checker2 ACCEPT +PASS dev08 identical; checker2 ACCEPT +PASS dev09 identical; checker2 ACCEPT +PASS dev10 identical; checker2 ACCEPT +PASS mul-to-add mutant differs +PASS struct_decl refused 9 +PASS global_decl refused 9 +PASS text_decl refused 9 +PASS float_use refused 3 +PASS continue_use refused 3 +PASS integer constant folds to the literal IR +PASS trap_const constant folds to the literal IR +PASS bound_const constant folds to the literal IR +PASS for_const constant folds to the literal IR +PASS float_const refused 9 +PASS call_self refused 3 +PASS call_forward refused 3 +PASS call_nonvoid_stmt refused 7 +PASS call_void_value refused 7 +PASS call_arg_type refused 7 +PASS call_arg_local refused 7 +PASS call_result_type refused 7 +PASS break_outside refused 9 +PASS after_break refused 17 +PASS bin_type_local refused 7 +PASS bin_bool refused 7 +PASS bin_shift_bool refused 7 +PASS bin_result_type refused 7 +PASS cmp_assign_type refused 7 +PASS bool_result refused 7 +PASS neg_bool refused 7 +PASS cond_type refused 7 +PASS ret_type_local refused 7 +PASS neg_bool_local refused 7 +PASS trailing_value refused 5 +PASS untyped_new refused 11 +PASS missing_operand refused 4 +PASS bare_neg refused 11 +PASS end_trailing refused 5 +PASS while_trailing refused 5 +PASS ret_missing refused 4 +PASS ret_void_value refused 5 +PASS keyword_name refused 16 +PASS stmt_number refused 16 +PASS shadow_param_for refused 10 +PASS shadow_nested_for refused 10 +PASS param_dup refused 10 +PASS param_fn_name refused 10 +PASS param_self_name refused 10 +PASS scope_if refused 3 +PASS scope_else refused 3 +PASS scope_for refused 3 +PASS fallthrough refused 18 +PASS float_param refused 9 +PASS float_ret refused 9 +PASS else_twice refused 15 +PASS else_outside refused 15 +PASS eof_in_fn refused 15 +PASS range_typed refused 8 +PASS range_bare refused 8 +PASS range_bare_left refused 8 +PASS range_negative refused 8 +PASS long_local refused 13 +PASS long_param refused 13 +PASS long_for refused 13 +PASS long_prefix_ref refused 3 +PASS note_dead same IR +PASS call_value IR identical; checker2 ACCEPT +PASS call_void IR identical; checker2 ACCEPT +PASS call_zero IR identical; checker2 ACCEPT +PASS call_two IR identical; checker2 ACCEPT +PASS call_long IR identical; checker2 ACCEPT +PASS call_nested IR identical; checker2 ACCEPT +PASS call_expr IR identical; checker2 ACCEPT +PASS call_loop IR identical; checker2 ACCEPT +PASS call_six IR identical; checker2 ACCEPT +PASS break_while IR identical; checker2 ACCEPT +PASS break_for IR identical; checker2 ACCEPT +PASS break_nested IR identical; checker2 ACCEPT +PASS shift_mixed IR identical; checker2 ACCEPT +PASS cmp_assign IR identical; checker2 ACCEPT +PASS cast_ret IR identical; checker2 ACCEPT +PASS bool_and IR identical; checker2 ACCEPT +PASS bool_or IR identical; checker2 ACCEPT +PASS bool_xor IR identical; checker2 ACCEPT +PASS void_fall IR identical; checker2 ACCEPT +PASS for_reuse IR identical; checker2 ACCEPT +PASS scope_reuse IR identical; checker2 ACCEPT +PASS call_long_prefix IR identical; checker2 ACCEPT +PASS 30 random two-function call units identical; checker2 ACCEPT +PASS om4 refuses break and trap +PASS w1 exit 6 +PASS f1 exit 3 +PASS n1 exit 33 +PASS n2 exit 4 +PASS n3 exit 3 +PASS c1 exit 18 +PASS c2 exit 12 +PASS c3 exit 36 +PASS c4 exit 0 +PASS c5 exit 104 +PASS t1 exit 105 +PASS t2 exit 107 +PASS bad_outside error 9 +PASS bad_after error 17 +PASS bad_continue error 9 +PASS bad_after_continue error 17 +PASS bad_trap0 error 8 +PASS bad_trap15 error 8 +PASS gate7 18 cases +PASS om4 refuses float syntax +PASS f64_bits exit 0 +PASS f32_bits exit 0 +PASS arith exit 0 +PASS compare exit 0 +PASS convert exit 0 +PASS arrays exit 0 +PASS globals exit 0 +PASS params exit 0 +PASS structs exit 0 +PASS intrinsics exit 0 +PASS f32_return exit 0 +PASS convert_sat exit 0 +PASS bitcast_int exit 0 +PASS neg_intr_int error 7 +PASS neg_intr_mixed error 7 +PASS neg_intr_ambig error 11 +PASS neg_mixed error 7 +PASS neg_index error 7 +PASS neg_for error 7 +PASS neg_read error 7 +PASS neg_ambiguous error 11 +PASS neg_dot error 6 +PASS neg_overflow error 8 +PASS neg_overflow2 error 8 +PASS neg_overflow3 error 8 +PASS neg_ir error 3 +PASS neg_void_value error 7 +PASS neg_f32_fall error 18 +PASS neg_bitcast_width error 7 +PASS gate8 29 cases +PASS basic exit 0 +PASS float exit 4 +PASS neg_ambiguous error 11 +PASS neg_unclosed error 16 +PASS gate9 4 cases +PASS sizes exit 0 +PASS neg_type error 16 +PASS neg_field error 3 +PASS neg_struct error 3 +PASS neg_void error 9 +PASS gate10 5 cases +PASS names exit 10 (bits/min/max/abs/sqrt usable as names) +PASS neg_reserved error 16 (bitcast is a keyword) +PASS gate11 2 cases +PASS g8192 accepted +PASS g8193 error 14 +PASS f4095 accepted +PASS f4096 error 14 +PASS b512 accepted +PASS b513 error 14 +PASS local error 23 +PASS arr error 23 +PASS pools error 23 +PASS big error 14 +PASS gate12 10 cases +PASS 300 token-stream programs: 0..23, deterministic, no crash or timeout +PASS 300 structured programs: compiled, byte-identical twice +PASS gate13 600 programs +PASS gate14 35 numeric cases (19 values, 16 traps; Wolfram-derived expectations) +PASS gate15 21 refusal cases (codes 3..23; 1 and 2 are compiler I/O) plus a valid control +PASS gate16 19 constant programs, 27 refusals and 9 function-mode units +PASS pinned reference compiler e5d60db8... +PASS gate17 300 programs byte-identical to the pinned compiler +PASS gate18 158 literal packs and both computed entries match the committed chain +OM2GATE PASS cases=46 pass=46 fail=0 invalid=0 not_run=0 +PASS contract-enforcement mutant detected by exact runtime-status mismatch +OM2GATE PASS cases=60 pass=60 fail=0 invalid=0 not_run=0 +PASS packed-list ingress: hostile packets refused; size, count and exact-length mutants detected +PASS contract C parity: exact values, canonical bits and traps +PASS native files, errno, exclusive creation, permissions, seek, sync and monotonic time +PASS native argument access, empty arguments, UTF-8 bytes and short-buffer refusal +PASS native socket exchange, poll timeout, fork, accept and child reaping +PASS native TCP loopback exchange on an OS-assigned port +PASS native exec with exact arguments, exec failure, pipes, descriptor duplication, sleep, kill and wait +PASS native directory enumeration, file metadata and rename without overwriting +PASS native syscall errors and nested expression register preservation +PASS native cwd and readlnk offsets, counts, truncation, errno and private path copy +PASS native socket options with independent bind behavior, readonly input and errno +PASS native peercred pollfds sendmsg allowlist +PASS native network slice bounds and poll record-size refusal +PASS independent Unix peer identity and offset sentinels +PASS native checked device ioctl composed with host files and pipes +PASS native device parameter binding +PASS bounded native UVM requests +PASS native mapping +PASS managed addresses and ordered mapped words +PASS owned reservations, collision refusal and failed-bind retirement +PASS 36 device/mapping compiler refusals +PASS struct values and native file operations in one program +PASS native random: exact count, non-zero, two calls differ, invalid flags refused +PASS native environment: count, entry bytes, short-buffer refusal +PASS native chdir: relative file created in the new directory; missing path refused +PASS native ftrunc: write, shorten, rewind, read 4 then EOF; closed fd refused +PASS native stat: size field, missing path errno, 128-byte structure +PASS native stat: short output traps 3 before the kernel +PASS native link/symlnk: hard link nlink 2, symlink target, unlink +PASS native link: one-record packed list traps 3 +PASS native chmod: 0600 mode in st_mode; missing path errno +PASS native chown: owner uid kept in st_uid; missing path errno +PASS native faccess: existing path accepted, missing path refused +PASS native identity: getuid/geteuid/getgid/getegid match id +PASS native fchdir/umask/getppid: directory fd, 0777 under mask 0, parent id +PASS native fdsync/memfd: data sync, closed fd refused, anonymous file rw +PASS native pread/pwrite: positioned I/O, bytes intact, closed fd refused +PASS native getsid/syncfs/shutdown: session id, filesystem sync, non-socket refusal +PASS native flock: exclusive lock blocks a second open (EWOULDBLOCK), unlock, shared, EINVAL, EBADF +PASS native process groups: getpgid/setpgid, setsid or EPERM +PASS native lstat: stat follows the link, lstat reports S_IFLNK +PASS native truncate: path length set to 4; missing path errno +PASS native environment: index at the count traps 3 +PASS 18 bounds, packet, mutability, type and function-mode negative controls +PASS 53 total host negative controls, including cwd, readlnk, sockopt, flock and network +PASS 62 original fixtures retain identical machine code, refusal status and diagnostics +PASS native-host qualification; seeded build, C tools are comparison oracles only +PASS (a) fixpoint: sha256(stage2) = sha256(stage3) +PASS (b) om4 and omc build the same omc from omc.om (stage1 = stage2) +PASS (b) the stage from each parent is bit-identical (om4-built -> stage2, omc-built -> stage3) +PASS corpus: om4 = stage2 on 147 inputs (57 of them refused, same error number and line); 6 inputs beyond om4 are listed in seed/omc/tests/om4-superset.tsv, each accepted by omc and the C path +PASS text program built by om4: writes its 9 bytes, exit 204 +PASS text program built by stage2: writes its 9 bytes, exit 204 +PASS text program: om4 and stage2 make the same bytes +PASS error 1 from both: line 0: error 1 +PASS error 2 from both: line 4: error 2 +PASS error 4 from both: line 3: error 4 +PASS error 11 from both: line 2: error 11 +PASS error 12 from both: line 18: error 12 +PASS error 13 from both: line 2: error 13 +PASS error 14 from both: line 0: error 14 +PASS (c) gate4 with stage2 in om4's place: 116 checks, 0 FAIL +PASS (d) A caught by the fixpoint: or -> and in omc.om (a stage failed, or stage2 != stage3) +PASS (d) A caught by the corpus: 15 inputs differ from om4 +PASS (d) B keeps the fixpoint (a fixpoint proves determinism, not correctness) +PASS (d) B caught by the corpus: 14 inputs differ from om4 +PASS (d) C keeps the fixpoint +PASS (d) C keeps om4 = omc on fm2 +PASS (d) C caught only by the C path: FAIL: fm1 differs from the C path FAIL: fm2 differs from the C path +PASS (d) refusal: omc: line 2: error 3, exit 3 +PASS deterministic: same bytes under another environment and a second later +PASS om4 = stage2 in the nextfuzz: 20 programs (20 accepted, 0 out of registers, error 12), 4860 cut or changed inputs, 0 bad; exit codes 0:215 3:107 4:1351 5:64 6:66 7:115 8:48 9:277 10:4 11:37 13:24 15:487 16:2020 17:36 18:3 21:4 23:2 +PASS every error number 1..23 is reached, om4 = stage2 on each +PASS size history: its last row is this omc (FR9-acceptance-fixes) +GATE5 PASS diff --git a/evidence/SECURITY-673/packet-main1/reclen-equivalent.cases b/evidence/SECURITY-673/packet-main1/reclen-equivalent.cases new file mode 100644 index 000000000..bb602940b --- /dev/null +++ b/evidence/SECURITY-673/packet-main1/reclen-equivalent.cases @@ -0,0 +1,23 @@ +subst evidence/SECURITY-673/packet-main1/mut-reclen-from.txt evidence/SECURITY-673/packet-main1/mut-reclen-to.txt +cc seed/omc/omc.om +reclen-p03 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p03.bin - - 103 +reclen-p07 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p07.bin - - 103 +reclen-p15 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p15.bin - - 103 +reclen-trunc2 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 2 +reclen-trunc3 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 3 +reclen-trunc4 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 4 +reclen-trunc5 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 5 +reclen-trunc6 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 6 +reclen-trunc12 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 12 +reclen-trunc13 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 13 +reclen-trunc14 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 14 +reclen-trunc15 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 15 +reclen-trunc16 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 16 +reclen-trunc17 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 17 +reclen-trunc20 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 20 +reclen-trunc21 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 21 +reclen-trunc22 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 22 +reclen-trunc23 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 23 +reclen-trunc24 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 24 +reclen-trunc25 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 25 +reclen-trunc26 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 26 diff --git a/evidence/SECURITY-673/packet-main1/reclen-equivalent.log b/evidence/SECURITY-673/packet-main1/reclen-equivalent.log new file mode 100644 index 000000000..320533e26 --- /dev/null +++ b/evidence/SECURITY-673/packet-main1/reclen-equivalent.log @@ -0,0 +1,91 @@ +OM2GATE START cases=evidence/SECURITY-673/packet-main1/reclen-equivalent.cases scratch=/dev/shm/pl671/run-reclen-equivalent +IDENTITY omc seed/out/omc sha256=62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b pinned=62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b match +SUBST evidence/SECURITY-673/packet-main1/mut-reclen-from.txt evidence/SECURITY-673/packet-main1/mut-reclen-to.txt + MUTATE exact-once substitution at byte 104072 + $ seed/out/omc < /dev/shm/pl671/run-reclen-equivalent/2.src > /dev/shm/pl671/run-reclen-equivalent/2.elf 2> /dev/shm/pl671/run-reclen-equivalent/2.cerr +COMPILER /dev/shm/pl671/run-reclen-equivalent/2.elf sha256=037f8221e0d6c3cb8711b87784ac2544f83e0f1e275b485100ceb54418c2d3fa source line=2 +CASE reclen-p03 line=3 + $ /dev/shm/pl671/run-reclen-equivalent/2.elf < /dev/shm/pl671/run-reclen-equivalent/3.src > /dev/shm/pl671/run-reclen-equivalent/3.elf 2> /dev/shm/pl671/run-reclen-equivalent/3.cerr + $ /dev/shm/pl671/run-reclen-equivalent/3.elf < seed/qualification/security673/packets/p03.bin > /dev/shm/pl671/run-reclen-equivalent/3.out 2> /dev/shm/pl671/run-reclen-equivalent/3.err +VERDICT reclen-p03 PASS run exit=103 expected=103 stdout=match stderr=match +CASE reclen-p07 line=4 + $ /dev/shm/pl671/run-reclen-equivalent/2.elf < /dev/shm/pl671/run-reclen-equivalent/4.src > /dev/shm/pl671/run-reclen-equivalent/4.elf 2> /dev/shm/pl671/run-reclen-equivalent/4.cerr + $ /dev/shm/pl671/run-reclen-equivalent/4.elf < seed/qualification/security673/packets/p07.bin > /dev/shm/pl671/run-reclen-equivalent/4.out 2> /dev/shm/pl671/run-reclen-equivalent/4.err +VERDICT reclen-p07 PASS run exit=103 expected=103 stdout=match stderr=match +CASE reclen-p15 line=5 + $ /dev/shm/pl671/run-reclen-equivalent/2.elf < /dev/shm/pl671/run-reclen-equivalent/5.src > /dev/shm/pl671/run-reclen-equivalent/5.elf 2> /dev/shm/pl671/run-reclen-equivalent/5.cerr + $ /dev/shm/pl671/run-reclen-equivalent/5.elf < seed/qualification/security673/packets/p15.bin > /dev/shm/pl671/run-reclen-equivalent/5.out 2> /dev/shm/pl671/run-reclen-equivalent/5.err +VERDICT reclen-p15 PASS run exit=103 expected=103 stdout=match stderr=match +CASE reclen-trunc2 line=6 + $ /dev/shm/pl671/run-reclen-equivalent/2.elf < /dev/shm/pl671/run-reclen-equivalent/6.src > /dev/shm/pl671/run-reclen-equivalent/6.elf 2> /dev/shm/pl671/run-reclen-equivalent/6.cerr + $ /dev/shm/pl671/run-reclen-equivalent/6.elf 2 < seed/qualification/security673/packets/p12.bin > /dev/shm/pl671/run-reclen-equivalent/6.out 2> /dev/shm/pl671/run-reclen-equivalent/6.err +VERDICT reclen-trunc2 PASS run exit=103 expected=103 stdout=match stderr=match +CASE reclen-trunc3 line=7 + $ /dev/shm/pl671/run-reclen-equivalent/2.elf < /dev/shm/pl671/run-reclen-equivalent/7.src > /dev/shm/pl671/run-reclen-equivalent/7.elf 2> /dev/shm/pl671/run-reclen-equivalent/7.cerr + $ /dev/shm/pl671/run-reclen-equivalent/7.elf 3 < seed/qualification/security673/packets/p12.bin > /dev/shm/pl671/run-reclen-equivalent/7.out 2> /dev/shm/pl671/run-reclen-equivalent/7.err +VERDICT reclen-trunc3 PASS run exit=103 expected=103 stdout=match stderr=match +CASE reclen-trunc4 line=8 + $ /dev/shm/pl671/run-reclen-equivalent/2.elf < /dev/shm/pl671/run-reclen-equivalent/8.src > /dev/shm/pl671/run-reclen-equivalent/8.elf 2> /dev/shm/pl671/run-reclen-equivalent/8.cerr + $ /dev/shm/pl671/run-reclen-equivalent/8.elf 4 < seed/qualification/security673/packets/p12.bin > /dev/shm/pl671/run-reclen-equivalent/8.out 2> /dev/shm/pl671/run-reclen-equivalent/8.err +VERDICT reclen-trunc4 PASS run exit=103 expected=103 stdout=match stderr=match +CASE reclen-trunc5 line=9 + $ /dev/shm/pl671/run-reclen-equivalent/2.elf < /dev/shm/pl671/run-reclen-equivalent/9.src > /dev/shm/pl671/run-reclen-equivalent/9.elf 2> /dev/shm/pl671/run-reclen-equivalent/9.cerr + $ /dev/shm/pl671/run-reclen-equivalent/9.elf 5 < seed/qualification/security673/packets/p12.bin > /dev/shm/pl671/run-reclen-equivalent/9.out 2> /dev/shm/pl671/run-reclen-equivalent/9.err +VERDICT reclen-trunc5 PASS run exit=103 expected=103 stdout=match stderr=match +CASE reclen-trunc6 line=10 + $ /dev/shm/pl671/run-reclen-equivalent/2.elf < /dev/shm/pl671/run-reclen-equivalent/10.src > /dev/shm/pl671/run-reclen-equivalent/10.elf 2> /dev/shm/pl671/run-reclen-equivalent/10.cerr + $ /dev/shm/pl671/run-reclen-equivalent/10.elf 6 < seed/qualification/security673/packets/p12.bin > /dev/shm/pl671/run-reclen-equivalent/10.out 2> /dev/shm/pl671/run-reclen-equivalent/10.err +VERDICT reclen-trunc6 PASS run exit=103 expected=103 stdout=match stderr=match +CASE reclen-trunc12 line=11 + $ /dev/shm/pl671/run-reclen-equivalent/2.elf < /dev/shm/pl671/run-reclen-equivalent/11.src > /dev/shm/pl671/run-reclen-equivalent/11.elf 2> /dev/shm/pl671/run-reclen-equivalent/11.cerr + $ /dev/shm/pl671/run-reclen-equivalent/11.elf 12 < seed/qualification/security673/packets/p12.bin > /dev/shm/pl671/run-reclen-equivalent/11.out 2> /dev/shm/pl671/run-reclen-equivalent/11.err +VERDICT reclen-trunc12 PASS run exit=103 expected=103 stdout=match stderr=match +CASE reclen-trunc13 line=12 + $ /dev/shm/pl671/run-reclen-equivalent/2.elf < /dev/shm/pl671/run-reclen-equivalent/12.src > /dev/shm/pl671/run-reclen-equivalent/12.elf 2> /dev/shm/pl671/run-reclen-equivalent/12.cerr + $ /dev/shm/pl671/run-reclen-equivalent/12.elf 13 < seed/qualification/security673/packets/p12.bin > /dev/shm/pl671/run-reclen-equivalent/12.out 2> /dev/shm/pl671/run-reclen-equivalent/12.err +VERDICT reclen-trunc13 PASS run exit=103 expected=103 stdout=match stderr=match +CASE reclen-trunc14 line=13 + $ /dev/shm/pl671/run-reclen-equivalent/2.elf < /dev/shm/pl671/run-reclen-equivalent/13.src > /dev/shm/pl671/run-reclen-equivalent/13.elf 2> /dev/shm/pl671/run-reclen-equivalent/13.cerr + $ /dev/shm/pl671/run-reclen-equivalent/13.elf 14 < seed/qualification/security673/packets/p12.bin > /dev/shm/pl671/run-reclen-equivalent/13.out 2> /dev/shm/pl671/run-reclen-equivalent/13.err +VERDICT reclen-trunc14 PASS run exit=103 expected=103 stdout=match stderr=match +CASE reclen-trunc15 line=14 + $ /dev/shm/pl671/run-reclen-equivalent/2.elf < /dev/shm/pl671/run-reclen-equivalent/14.src > /dev/shm/pl671/run-reclen-equivalent/14.elf 2> /dev/shm/pl671/run-reclen-equivalent/14.cerr + $ /dev/shm/pl671/run-reclen-equivalent/14.elf 15 < seed/qualification/security673/packets/p12.bin > /dev/shm/pl671/run-reclen-equivalent/14.out 2> /dev/shm/pl671/run-reclen-equivalent/14.err +VERDICT reclen-trunc15 PASS run exit=103 expected=103 stdout=match stderr=match +CASE reclen-trunc16 line=15 + $ /dev/shm/pl671/run-reclen-equivalent/2.elf < /dev/shm/pl671/run-reclen-equivalent/15.src > /dev/shm/pl671/run-reclen-equivalent/15.elf 2> /dev/shm/pl671/run-reclen-equivalent/15.cerr + $ /dev/shm/pl671/run-reclen-equivalent/15.elf 16 < seed/qualification/security673/packets/p12.bin > /dev/shm/pl671/run-reclen-equivalent/15.out 2> /dev/shm/pl671/run-reclen-equivalent/15.err +VERDICT reclen-trunc16 PASS run exit=103 expected=103 stdout=match stderr=match +CASE reclen-trunc17 line=16 + $ /dev/shm/pl671/run-reclen-equivalent/2.elf < /dev/shm/pl671/run-reclen-equivalent/16.src > /dev/shm/pl671/run-reclen-equivalent/16.elf 2> /dev/shm/pl671/run-reclen-equivalent/16.cerr + $ /dev/shm/pl671/run-reclen-equivalent/16.elf 17 < seed/qualification/security673/packets/p12.bin > /dev/shm/pl671/run-reclen-equivalent/16.out 2> /dev/shm/pl671/run-reclen-equivalent/16.err +VERDICT reclen-trunc17 PASS run exit=103 expected=103 stdout=match stderr=match +CASE reclen-trunc20 line=17 + $ /dev/shm/pl671/run-reclen-equivalent/2.elf < /dev/shm/pl671/run-reclen-equivalent/17.src > /dev/shm/pl671/run-reclen-equivalent/17.elf 2> /dev/shm/pl671/run-reclen-equivalent/17.cerr + $ /dev/shm/pl671/run-reclen-equivalent/17.elf 20 < seed/qualification/security673/packets/p12.bin > /dev/shm/pl671/run-reclen-equivalent/17.out 2> /dev/shm/pl671/run-reclen-equivalent/17.err +VERDICT reclen-trunc20 PASS run exit=103 expected=103 stdout=match stderr=match +CASE reclen-trunc21 line=18 + $ /dev/shm/pl671/run-reclen-equivalent/2.elf < /dev/shm/pl671/run-reclen-equivalent/18.src > /dev/shm/pl671/run-reclen-equivalent/18.elf 2> /dev/shm/pl671/run-reclen-equivalent/18.cerr + $ /dev/shm/pl671/run-reclen-equivalent/18.elf 21 < seed/qualification/security673/packets/p12.bin > /dev/shm/pl671/run-reclen-equivalent/18.out 2> /dev/shm/pl671/run-reclen-equivalent/18.err +VERDICT reclen-trunc21 PASS run exit=103 expected=103 stdout=match stderr=match +CASE reclen-trunc22 line=19 + $ /dev/shm/pl671/run-reclen-equivalent/2.elf < /dev/shm/pl671/run-reclen-equivalent/19.src > /dev/shm/pl671/run-reclen-equivalent/19.elf 2> /dev/shm/pl671/run-reclen-equivalent/19.cerr + $ /dev/shm/pl671/run-reclen-equivalent/19.elf 22 < seed/qualification/security673/packets/p12.bin > /dev/shm/pl671/run-reclen-equivalent/19.out 2> /dev/shm/pl671/run-reclen-equivalent/19.err +VERDICT reclen-trunc22 PASS run exit=103 expected=103 stdout=match stderr=match +CASE reclen-trunc23 line=20 + $ /dev/shm/pl671/run-reclen-equivalent/2.elf < /dev/shm/pl671/run-reclen-equivalent/20.src > /dev/shm/pl671/run-reclen-equivalent/20.elf 2> /dev/shm/pl671/run-reclen-equivalent/20.cerr + $ /dev/shm/pl671/run-reclen-equivalent/20.elf 23 < seed/qualification/security673/packets/p12.bin > /dev/shm/pl671/run-reclen-equivalent/20.out 2> /dev/shm/pl671/run-reclen-equivalent/20.err +VERDICT reclen-trunc23 PASS run exit=103 expected=103 stdout=match stderr=match +CASE reclen-trunc24 line=21 + $ /dev/shm/pl671/run-reclen-equivalent/2.elf < /dev/shm/pl671/run-reclen-equivalent/21.src > /dev/shm/pl671/run-reclen-equivalent/21.elf 2> /dev/shm/pl671/run-reclen-equivalent/21.cerr + $ /dev/shm/pl671/run-reclen-equivalent/21.elf 24 < seed/qualification/security673/packets/p12.bin > /dev/shm/pl671/run-reclen-equivalent/21.out 2> /dev/shm/pl671/run-reclen-equivalent/21.err +VERDICT reclen-trunc24 PASS run exit=103 expected=103 stdout=match stderr=match +CASE reclen-trunc25 line=22 + $ /dev/shm/pl671/run-reclen-equivalent/2.elf < /dev/shm/pl671/run-reclen-equivalent/22.src > /dev/shm/pl671/run-reclen-equivalent/22.elf 2> /dev/shm/pl671/run-reclen-equivalent/22.cerr + $ /dev/shm/pl671/run-reclen-equivalent/22.elf 25 < seed/qualification/security673/packets/p12.bin > /dev/shm/pl671/run-reclen-equivalent/22.out 2> /dev/shm/pl671/run-reclen-equivalent/22.err +VERDICT reclen-trunc25 PASS run exit=103 expected=103 stdout=match stderr=match +CASE reclen-trunc26 line=23 + $ /dev/shm/pl671/run-reclen-equivalent/2.elf < /dev/shm/pl671/run-reclen-equivalent/23.src > /dev/shm/pl671/run-reclen-equivalent/23.elf 2> /dev/shm/pl671/run-reclen-equivalent/23.cerr + $ /dev/shm/pl671/run-reclen-equivalent/23.elf 26 < seed/qualification/security673/packets/p12.bin > /dev/shm/pl671/run-reclen-equivalent/23.out 2> /dev/shm/pl671/run-reclen-equivalent/23.err +VERDICT reclen-trunc26 PASS run exit=103 expected=103 stdout=match stderr=match +OM2GATE PASS cases=21 pass=21 fail=0 invalid=0 not_run=0 diff --git a/seed/host/README.md b/seed/host/README.md index e8271d856..f0db7ef43 100644 --- a/seed/host/README.md +++ b/seed/host/README.md @@ -54,6 +54,30 @@ network test connects only to its own local server. Process tests reap their children. No service is installed or changed. `timeout` only bounds test processes; timed operations inside the tests use the emitted native code. +### Packed-list hostile ingress (#671) + +`seed/qualification/security673/` feeds runtime packets, not compile-time +constants, to `execprog`. `packet-corpus.om` writes one packet per mode byte; +`pkt-consumer.om` reads stdin and passes the bytes, or only the first K bytes +when given one decimal argument, to `execprog` unchanged. `check.sh` runs +`packets.cases` through the OM-2 conductor: 16 rows prove each committed fixture +in `packets/` equals the generator output, 16 rows run the modes (4 valid +packets, including the 64-record and the exact 4096-byte limits, and 12 +malformed ones: count 0, 65 and 65535, truncated, over-declared and 65535-byte +records, a trailing byte, an empty first record, zero bytes inside and after the +path, and a 4097-byte packet), and 28 rows truncate the 27-byte echo packet at +every length. Expected exits come from the format rules in OMEGESE section 10; +every malformed packet must trap 3 (exit 103) before any exec. + +`packets-mutant.cases` builds three compilers, each without one length check of +the decoder (`hpack` in `seed/omc/omc.om`): the 4096-byte packet bound, the +64-record bound, and exact consumption. Each mutant executes the one packet that +only its check refuses, so `check.sh` requires three exact `FAIL run exit=0 +expected=103` verdicts. Removing the record-length-versus-remaining check is +not detected by exit status: the zero-byte and exact-consumption checks still +trap every over-declared record, so that check only bounds how far the decoder +reads. The x86 decoder (`xhpack`) is not exercised here. + ### Bounded networking additions (#788) The source adds `peercred` (keyword 220), `pollfds` (221), and `sendmsg` (222). diff --git a/seed/host/check.sh b/seed/host/check.sh index 4b294cb10..ecc702105 100644 --- a/seed/host/check.sh +++ b/seed/host/check.sh @@ -40,6 +40,20 @@ grep -qx 'VERDICT mutant-requires FAIL run exit=0 expected=109 stdout=match stde grep -qx 'VERDICT mutant-proof FAIL run exit=0 expected=109 stdout=match stderr=match' "$run/mutant.log" grep -qx 'OM2GATE FAIL cases=2 pass=0 fail=2 invalid=0 not_run=0' "$run/mutant.log" echo 'PASS contract-enforcement mutant detected by exact runtime-status mismatch' +# Packed-list hostile ingress (#671): generated packets reach execprog from stdin. +"$B/gate" seed/out/omc "$pin" seed/qualification/security673/packets.cases "$run/packets" +if "$B/gate" seed/out/omc "$pin" seed/qualification/security673/packets-mutant.cases "$run/packets-mutant" > "$run/packets-mutant.log"; then + echo 'FAIL packed-list bound mutant survived' >&2 + exit 1 +else + status=$? + [ "$status" = 1 ] || { cat "$run/packets-mutant.log"; exit 1; } +fi +grep -qx 'VERDICT mutant-size FAIL run exit=0 expected=103 stdout=match stderr=match' "$run/packets-mutant.log" +grep -qx 'VERDICT mutant-count FAIL run exit=0 expected=103 stdout=match stderr=match' "$run/packets-mutant.log" +grep -qx 'VERDICT mutant-exact FAIL run exit=0 expected=103 stdout=match stderr=match' "$run/packets-mutant.log" +grep -qx 'OM2GATE FAIL cases=3 pass=0 fail=3 invalid=0 not_run=0' "$run/packets-mutant.log" +echo 'PASS packed-list ingress: hostile packets refused; size, count and exact-length mutants detected' # Same function-mode contract behavior through the unchanged C referee and OscRt. if [ ! -x build/omegese/omegese ] || [ ! -x build/omega_emit/omega_emit ]; then echo 'NOT_RUN contract C parity: build the comparison oracles' >&2 diff --git a/seed/qualification/security673/.crumb b/seed/qualification/security673/.crumb new file mode 100644 index 000000000..1c86db901 --- /dev/null +++ b/seed/qualification/security673/.crumb @@ -0,0 +1,26 @@ +{ + "extensions": { + "generated": { + "children": [ + { + "digest": "474d06e1d689d1e6f6738a526ab4e5b8927a46349be8493d63d550f1440dcb7e", + "last_commit": "5d08c95e1", + "name": "packets", + "purpose": "Packed-list fixtures for #671: generated packet bytes (proven equal to packet-corpus.om), expect" + } + ], + "children_root": "sha256:f41d6df2f8ad3022a730e903b841378e27265d8aa2553318ec209b4ede234b2b", + "compiled_at": "2026-10-30T16:03:36Z", + "compiler": "crumb-compile/1", + "digest": "sha256:f42a5d7521a9596d35745563f002ba338a4503a00300ae67e1e9f8dd62df1d28", + "evidence_files": 0, + "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "files": 35, + "generated_at_commit": "5d08c95e1adcc3c9f9e2e4e081746858c0d3927d", + "source_tree": "sha256:a5c9041b14c3da2d5101891c71ba5e80cb560700e8e74d372d928f83a34a9351" + } + }, + "name": "security673", + "purpose": "Issue #671 packed-list hostile-ingress campaign: corpus generator, execprog consumer and OM-2 conductor cases run by seed/host/check.sh.", + "schema_version": "1.0.0" +} diff --git a/seed/qualification/security673/packet-corpus.om b/seed/qualification/security673/packet-corpus.om new file mode 100644 index 000000000..15789dc13 --- /dev/null +++ b/seed/qualification/security673/packet-corpus.om @@ -0,0 +1,166 @@ +note Synthetic issue #671 packed-list corpus. Reads one mode byte and writes one packet to stdout. +note Format (OMEGESE, packed list): u16le count 1..64, then count records of u16le length and +note bytes; whole packet at most 4096 bytes; first record nonempty; no zero byte; no trailing bytes. +note Accepted modes 0 8 11 12. Every other mode breaks exactly the rule named beside it and must +note be refused with trap 3 before any kernel exec. Unknown modes exit 92; I/O failures 90 and 91. +global pkt uchar 8192 +global n ulong 1 +text path "/bin/true" +text echo "/bin/echo" +text word1 "packed" +text word2 "list" +fn emitb v uchar to void +put pkt get n 0 v +put n 0 add get n 0 1 +end +fn put16 v ulong to void +emitb uchar and v 255 +emitb uchar shr v 8 +end +fn pfill v uchar k ulong to void +for i ulong k +emitb v +end +end +fn rawtrue to void +for i ulong len path +emitb get path i +end +end +fn rectrue to void +put16 len path +rawtrue +end +fn rececho to void +put16 len echo +for i ulong len echo +emitb get echo i +end +put16 len word1 +for i ulong len word1 +emitb get word1 i +end +put16 len word2 +for i ulong len word2 +emitb get word2 i +end +end +fn modea m ulong to void +note 0 valid single record; 1 count 0; 2 count 65 without records; 3 record declares 5, has 3. +if eq m 0 +put16 1 +rectrue +end +if eq m 1 +put16 0 +end +if eq m 2 +put16 65 +end +if eq m 3 +put16 1 +put16 5 +emitb 97 +emitb 98 +emitb 99 +end +note 4 trailing byte; 5 empty first record; 6 zero byte inside the path. +if eq m 4 +put16 1 +rectrue +emitb 0 +end +if eq m 5 +put16 1 +put16 0 +end +if eq m 6 +put16 1 +put16 len path +for i ulong len path +if eq i 7 +emitb 0 +else +emitb get path i +end +end +end +note 7 record declares 4093 bytes and the 4096-byte packet holds 4092. +if eq m 7 +put16 1 +put16 4093 +pfill 97 4092 +end +end +fn modeb m ulong to void +note 8 valid 64 records (path plus 63 empty arguments); 9 count 65 with 65 well-formed records. +if eq m 8 +put16 64 +rectrue +for i ulong 63 +put16 0 +end +end +if eq m 9 +put16 65 +rectrue +for i ulong 64 +put16 0 +end +end +note 10 well-formed 4097-byte packet (one byte over); 11 well-formed 4096-byte packet. +if eq m 10 +put16 2 +rectrue +put16 4082 +pfill 97 4082 +end +if eq m 11 +put16 2 +rectrue +put16 4081 +pfill 97 4081 +end +note 12 valid echo packet; 13 zero byte after a valid path; 14 count 65535; 15 length 65535. +if eq m 12 +put16 3 +rececho +end +if eq m 13 +put16 1 +put16 11 +rawtrue +emitb 0 +emitb 120 +end +if eq m 14 +put16 65535 +end +if eq m 15 +put16 1 +put16 65535 +emitb 97 +emitb 98 +end +end +fn main to int +if ne read 0 pkt 0 1 1 +ret 90 +end +m = ulong get pkt 0 +if gt m 15 +ret 92 +end +put n 0 0 +modea m +modeb m +done = ulong 0 +while lt done get n 0 bound 8193 +r = write 1 pkt done sub get n 0 done +if le r 0 +ret 91 +end +done = add done ulong r +end +ret 0 +end diff --git a/seed/qualification/security673/packets-mutant.cases b/seed/qualification/security673/packets-mutant.cases new file mode 100644 index 000000000..c99f81c1a --- /dev/null +++ b/seed/qualification/security673/packets-mutant.cases @@ -0,0 +1,19 @@ +# Packed-list bound mutants (#671). Each block removes one length check from the execprog decoder +# (hpack in seed/omc/omc.om) by an exact-once substitution, builds that compiler with the pinned omc, +# and reruns the single packets.cases row that only the removed check refuses. The expectation stays +# the correct one (trap 3, exit 103), so every row must FAIL: the mutant executes /bin/true (exit 0). +# seed/host/check.sh requires exactly these FAIL verdicts and OM2GATE FAIL cases=3 pass=0 fail=3. +# Packet length above 4096 bytes: cmp x5, x16 (4096); b.hi trap. +subst seed/qualification/security673/packets/mut-size-from.txt seed/qualification/security673/packets/mut-size-to.txt +cc seed/omc/omc.om +mutant-size run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p10.bin - - 103 +cc pinned +# Record count above 64: cmp x6, x16 (64); b.hi trap. +subst seed/qualification/security673/packets/mut-count-from.txt seed/qualification/security673/packets/mut-count-to.txt +cc seed/omc/omc.om +mutant-count run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p09.bin - - 103 +cc pinned +# Exact consumption, no bytes after the last record: cmp x5, #0; b.ne trap. +subst seed/qualification/security673/packets/mut-exact-from.txt seed/qualification/security673/packets/mut-exact-to.txt +cc seed/omc/omc.om +mutant-exact run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p04.bin - - 103 diff --git a/seed/qualification/security673/packets.cases b/seed/qualification/security673/packets.cases new file mode 100644 index 000000000..7e1190085 --- /dev/null +++ b/seed/qualification/security673/packets.cases @@ -0,0 +1,66 @@ +# Packed-list hostile ingress (#671), run by the OM-2 conductor (seed/qualification/om2/gate.om). +# Each fixture is first proven byte-identical to packet-corpus.om for its mode; then the compiled +# consumer pkt-consumer.om passes the fixture bytes from stdin to execprog. Expected exits come from +# the packed-list rules in OMEGESE.md: 0 or the exec'd program's output for a valid packet, trap 3 +# (exit 103) for every malformed one. The trunc rows pass only the first K bytes of the 27-byte echo +# packet; every prefix shorter than 27 lacks a whole record and must be refused. +gen00-valid-one run seed/qualification/security673/packet-corpus.om rep:0:1 file:seed/qualification/security673/packets/p00.bin - 0 +gen01-count-zero run seed/qualification/security673/packet-corpus.om rep:1:1 file:seed/qualification/security673/packets/p01.bin - 0 +gen02-count-65-bare run seed/qualification/security673/packet-corpus.om rep:2:1 file:seed/qualification/security673/packets/p02.bin - 0 +gen03-record-truncated run seed/qualification/security673/packet-corpus.om rep:3:1 file:seed/qualification/security673/packets/p03.bin - 0 +gen04-trailing-byte run seed/qualification/security673/packet-corpus.om rep:4:1 file:seed/qualification/security673/packets/p04.bin - 0 +gen05-first-empty run seed/qualification/security673/packet-corpus.om rep:5:1 file:seed/qualification/security673/packets/p05.bin - 0 +gen06-embedded-zero run seed/qualification/security673/packet-corpus.om rep:6:1 file:seed/qualification/security673/packets/p06.bin - 0 +gen07-record-overdeclared run seed/qualification/security673/packet-corpus.om rep:7:1 file:seed/qualification/security673/packets/p07.bin - 0 +gen08-valid-64 run seed/qualification/security673/packet-corpus.om rep:8:1 file:seed/qualification/security673/packets/p08.bin - 0 +gen09-count-65-records run seed/qualification/security673/packet-corpus.om rep:9:1 file:seed/qualification/security673/packets/p09.bin - 0 +gen10-size-4097 run seed/qualification/security673/packet-corpus.om rep:10:1 file:seed/qualification/security673/packets/p10.bin - 0 +gen11-size-4096 run seed/qualification/security673/packet-corpus.om rep:11:1 file:seed/qualification/security673/packets/p11.bin - 0 +gen12-echo-argv run seed/qualification/security673/packet-corpus.om rep:12:1 file:seed/qualification/security673/packets/p12.bin - 0 +gen13-zero-after-path run seed/qualification/security673/packet-corpus.om rep:13:1 file:seed/qualification/security673/packets/p13.bin - 0 +gen14-count-65535 run seed/qualification/security673/packet-corpus.om rep:14:1 file:seed/qualification/security673/packets/p14.bin - 0 +gen15-length-65535 run seed/qualification/security673/packet-corpus.om rep:15:1 file:seed/qualification/security673/packets/p15.bin - 0 +p00-valid-one run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p00.bin - - 0 +p01-count-zero run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p01.bin - - 103 +p02-count-65-bare run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p02.bin - - 103 +p03-record-truncated run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p03.bin - - 103 +p04-trailing-byte run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p04.bin - - 103 +p05-first-empty run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p05.bin - - 103 +p06-embedded-zero run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p06.bin - - 103 +p07-record-overdeclared run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p07.bin - - 103 +p08-valid-64 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p08.bin - - 0 +p09-count-65-records run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p09.bin - - 103 +p10-size-4097 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p10.bin - - 103 +p11-size-4096 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p11.bin - - 0 +p12-echo-argv run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin file:seed/qualification/security673/packets/p12.out - 0 +p13-zero-after-path run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p13.bin - - 103 +p14-count-65535 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p14.bin - - 103 +p15-length-65535 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p15.bin - - 103 +trunc00 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 0 +trunc01 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 1 +trunc02 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 2 +trunc03 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 3 +trunc04 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 4 +trunc05 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 5 +trunc06 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 6 +trunc07 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 7 +trunc08 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 8 +trunc09 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 9 +trunc10 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 10 +trunc11 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 11 +trunc12 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 12 +trunc13 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 13 +trunc14 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 14 +trunc15 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 15 +trunc16 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 16 +trunc17 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 17 +trunc18 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 18 +trunc19 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 19 +trunc20 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 20 +trunc21 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 21 +trunc22 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 22 +trunc23 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 23 +trunc24 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 24 +trunc25 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 25 +trunc26 run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin - - 103 26 +trunc27-whole run seed/qualification/security673/pkt-consumer.om file:seed/qualification/security673/packets/p12.bin file:seed/qualification/security673/packets/p12.out - 0 27 diff --git a/seed/qualification/security673/packets/.crumb b/seed/qualification/security673/packets/.crumb new file mode 100644 index 000000000..ed29a0c64 --- /dev/null +++ b/seed/qualification/security673/packets/.crumb @@ -0,0 +1,19 @@ +{ + "extensions": { + "generated": { + "children": [], + "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "compiled_at": "2026-10-30T16:03:36Z", + "compiler": "crumb-compile/1", + "digest": "sha256:474d06e1d689d1e6f6738a526ab4e5b8927a46349be8493d63d550f1440dcb7e", + "evidence_files": 0, + "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "files": 23, + "generated_at_commit": "5d08c95e1adcc3c9f9e2e4e081746858c0d3927d", + "source_tree": "sha256:58f6b0f1e6bdb7193505c93345aeab7284db3ebd644fcc19fffc6bd204b9001a" + } + }, + "name": "packets", + "purpose": "Packed-list fixtures for #671: generated packet bytes (proven equal to packet-corpus.om), expected echo output, and exact-once compiler substitutions for the bound mutants.", + "schema_version": "1.0.0" +} diff --git a/seed/qualification/security673/packets/mut-count-from.txt b/seed/qualification/security673/packets/mut-count-from.txt new file mode 100644 index 000000000..4fa4025ff --- /dev/null +++ b/seed/qualification/security673/packets/mut-count-from.txt @@ -0,0 +1,3 @@ +matconst 16 64 +e3 3942645760 31 6 16 +trapc 8 3 diff --git a/seed/qualification/security673/packets/mut-count-to.txt b/seed/qualification/security673/packets/mut-count-to.txt new file mode 100644 index 000000000..45dd5a398 --- /dev/null +++ b/seed/qualification/security673/packets/mut-count-to.txt @@ -0,0 +1,2 @@ +matconst 16 64 +e3 3942645760 31 6 16 diff --git a/seed/qualification/security673/packets/mut-exact-from.txt b/seed/qualification/security673/packets/mut-exact-from.txt new file mode 100644 index 000000000..54144f2ac --- /dev/null +++ b/seed/qualification/security673/packets/mut-exact-from.txt @@ -0,0 +1,3 @@ +patch19 done get oc 0 +emit 4043309247 +trapc 1 3 diff --git a/seed/qualification/security673/packets/mut-exact-to.txt b/seed/qualification/security673/packets/mut-exact-to.txt new file mode 100644 index 000000000..6ebe9c6d0 --- /dev/null +++ b/seed/qualification/security673/packets/mut-exact-to.txt @@ -0,0 +1,2 @@ +patch19 done get oc 0 +emit 4043309247 diff --git a/seed/qualification/security673/packets/mut-size-from.txt b/seed/qualification/security673/packets/mut-size-from.txt new file mode 100644 index 000000000..954e38208 --- /dev/null +++ b/seed/qualification/security673/packets/mut-size-from.txt @@ -0,0 +1,3 @@ +matconst 16 4096 +e3 3942645760 31 5 16 +trapc 8 3 diff --git a/seed/qualification/security673/packets/mut-size-to.txt b/seed/qualification/security673/packets/mut-size-to.txt new file mode 100644 index 000000000..5de3e94e3 --- /dev/null +++ b/seed/qualification/security673/packets/mut-size-to.txt @@ -0,0 +1,2 @@ +matconst 16 4096 +e3 3942645760 31 5 16 diff --git a/seed/qualification/security673/packets/p00.bin b/seed/qualification/security673/packets/p00.bin new file mode 100644 index 000000000..f6e31e4fb Binary files /dev/null and b/seed/qualification/security673/packets/p00.bin differ diff --git a/seed/qualification/security673/packets/p01.bin b/seed/qualification/security673/packets/p01.bin new file mode 100644 index 000000000..09f370e38 Binary files /dev/null and b/seed/qualification/security673/packets/p01.bin differ diff --git a/seed/qualification/security673/packets/p02.bin b/seed/qualification/security673/packets/p02.bin new file mode 100644 index 000000000..e2b43e378 Binary files /dev/null and b/seed/qualification/security673/packets/p02.bin differ diff --git a/seed/qualification/security673/packets/p03.bin b/seed/qualification/security673/packets/p03.bin new file mode 100644 index 000000000..7be63a2eb Binary files /dev/null and b/seed/qualification/security673/packets/p03.bin differ diff --git a/seed/qualification/security673/packets/p04.bin b/seed/qualification/security673/packets/p04.bin new file mode 100644 index 000000000..7d38a29d2 Binary files /dev/null and b/seed/qualification/security673/packets/p04.bin differ diff --git a/seed/qualification/security673/packets/p05.bin b/seed/qualification/security673/packets/p05.bin new file mode 100644 index 000000000..f66c9cf4c Binary files /dev/null and b/seed/qualification/security673/packets/p05.bin differ diff --git a/seed/qualification/security673/packets/p06.bin b/seed/qualification/security673/packets/p06.bin new file mode 100644 index 000000000..0066bf8d2 Binary files /dev/null and b/seed/qualification/security673/packets/p06.bin differ diff --git a/seed/qualification/security673/packets/p07.bin b/seed/qualification/security673/packets/p07.bin new file mode 100644 index 000000000..e3e8e407d Binary files /dev/null and b/seed/qualification/security673/packets/p07.bin differ diff --git a/seed/qualification/security673/packets/p08.bin b/seed/qualification/security673/packets/p08.bin new file mode 100644 index 000000000..973378b60 Binary files /dev/null and b/seed/qualification/security673/packets/p08.bin differ diff --git a/seed/qualification/security673/packets/p09.bin b/seed/qualification/security673/packets/p09.bin new file mode 100644 index 000000000..2d6b75d11 Binary files /dev/null and b/seed/qualification/security673/packets/p09.bin differ diff --git a/seed/qualification/security673/packets/p10.bin b/seed/qualification/security673/packets/p10.bin new file mode 100644 index 000000000..9ff978214 Binary files /dev/null and b/seed/qualification/security673/packets/p10.bin differ diff --git a/seed/qualification/security673/packets/p11.bin b/seed/qualification/security673/packets/p11.bin new file mode 100644 index 000000000..fe5bc4fb0 Binary files /dev/null and b/seed/qualification/security673/packets/p11.bin differ diff --git a/seed/qualification/security673/packets/p12.bin b/seed/qualification/security673/packets/p12.bin new file mode 100644 index 000000000..67c69853c Binary files /dev/null and b/seed/qualification/security673/packets/p12.bin differ diff --git a/seed/qualification/security673/packets/p12.out b/seed/qualification/security673/packets/p12.out new file mode 100644 index 000000000..64480a68f --- /dev/null +++ b/seed/qualification/security673/packets/p12.out @@ -0,0 +1 @@ +packed list diff --git a/seed/qualification/security673/packets/p13.bin b/seed/qualification/security673/packets/p13.bin new file mode 100644 index 000000000..fdf1b5856 Binary files /dev/null and b/seed/qualification/security673/packets/p13.bin differ diff --git a/seed/qualification/security673/packets/p14.bin b/seed/qualification/security673/packets/p14.bin new file mode 100644 index 000000000..f96c401f3 --- /dev/null +++ b/seed/qualification/security673/packets/p14.bin @@ -0,0 +1 @@ +ÿÿ \ No newline at end of file diff --git a/seed/qualification/security673/packets/p15.bin b/seed/qualification/security673/packets/p15.bin new file mode 100644 index 000000000..20dd6b5f9 Binary files /dev/null and b/seed/qualification/security673/packets/p15.bin differ diff --git a/seed/qualification/security673/pkt-consumer.om b/seed/qualification/security673/pkt-consumer.om new file mode 100644 index 000000000..8548497e4 --- /dev/null +++ b/seed/qualification/security673/pkt-consumer.om @@ -0,0 +1,70 @@ +note Synthetic issue #671 packed-list consumer. Hostile stdin bytes reach execprog unchanged. +note With one decimal argument K, only the first K bytes are passed (truncation at each boundary). +note A malformed packet traps 3 (exit 103) inside execprog; a valid one replaces this process. +note Own exits: 90 usage or bad K, 91 read failure or input over 8191 bytes, 95 exec failed. +global pkt uchar 8192 +global arg uchar 8 +fn rdall to long +note Every pass but the last adds at least one byte to the 8192-byte buffer: 8193 passes bound it. +n = ulong 0 +k = long 1 +while gt k 0 bound 8193 +if eq n len pkt +ret -1 +end +k = read 0 pkt n sub len pkt n +if gt k 0 +n = add n ulong k +end +end +if lt k 0 +ret k +end +ret long n +end +fn argk to long +r = argread 1 arg 0 len arg +if lt r 1 +ret -1 +end +if gt r 5 +ret -1 +end +v = ulong 0 +for i ulong ulong r +c = get arg i +if lt c 48 +ret -1 +end +if gt c 57 +ret -1 +end +v = add mul v 10 ulong sub c 48 +end +ret long v +end +fn main to int +if gt argcnt 2 +ret 90 +end +t = rdall +if lt t 0 +ret 91 +end +k = ulong t +if eq argcnt 2 +a = argk +if lt a 0 +ret 90 +end +if gt a t +ret 90 +end +k = ulong a +end +r = execprog pkt 0 k +if ge r 0 +ret 96 +end +ret 95 +end ```