interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / evidence / SECURITY-673 / renames1 / REPORT.md

51 lines · 2318 bytes Raw Blame History Rendered
1# Rename packed-list ingress for Omega #671
2
3Date: 2026-10-23. Parent tracker: #673. Branch: `fix/security673-qualified`.
4Platform: Linux AArch64, native execution.
5
6## Threat and protected property
7
8`renames` accepts a packed list and must consume exactly two nonempty path records before calling
9`renameat2`. A truncated record, extra record, empty path, embedded zero or trailing byte must trap
10before a kernel rename. The protected assets are the caller's filesystem namespace and the
11correspondence between the supplied records and the two paths actually renamed.
12
13Enforcement is the existing `hpack` lowering in `seed/omc/omc.om` (line 2533), which is shared with
14`execprog` and the other packed-list words. The test consumer is a normal compiler output.
15
16## Cases and results
17
18`renames-corpus.om` writes the packet; `renames-consumer.om` creates
19`build/security673-native/ren-src`, then calls `renames pkt 0 n 0`. Exit 0 means the rename
20succeeded; exit 103 is trap 3 before the rename.
21
22| Mode | Packet | Expected | Observed | Source after |
23| --- | --- | --- | --- | --- |
24| 0 | exactly `ren-src`, `ren-dst` | 0 | 0 | renamed to `ren-dst` |
25| 1 | one record | 103 | 103 | remains |
26| 2 | three records | 103 | 103 | remains |
27| 3 | empty first record | 103 | 103 | remains |
28| 4 | empty second record | 103 | 103 | remains |
29| 5 | valid pair plus one trailing byte | 103 | 103 | remains |
30| 6 | embedded NUL in first path | 103 | 103 | remains |
31
32Mode 0 is the positive control: the source disappears and the destination exists. Every malformed
33mode leaves the source in place, so the trap occurred before the kernel rename.
34
35## Executed gates
36
37| Command | Result |
38| --- | --- |
39| `build/gate669` (normal) | exit 0, `GATE669 PASS` |
40| `build/gate669 3` (source campaign) | exit 0, `GATE671 SOURCE PASS` |
41| `sh seed/host/gate.sh` | exit 0, all host groups |
42
43Raw output is `gate-renames.log`; `identities.txt` binds the compiler, corpus, consumer, gate and log.
44
45## Residual limits
46
47- `execprog` and `renames` are qualified; `argread`, native path words and the legacy
48 manifest/receipt/RPC/model/trace/device parsers remain under `ingress-inventory.md`.
49- The compiler, corpus and consumer share the seed lineage. No kernel fuzzing or general parser
50 proof is claimed.
51- This does not close #671 or #673.