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 / paths1 / REPORT.md

51 lines · 2546 bytes Raw Blame History Source

Native path and argument ingress for Omega #671

Date: 2026-10-23. Parent tracker: #673. Branch: fix/security673-qualified. Platform: Linux AArch64, native execution.

Threat and protected property

A caller can supply a path longer than 4095 bytes, embed a zero byte, pass an empty path, or ask argread for more bytes than the destination holds. The protected assets are the compiler's path copy at the kernel boundary and the caller's destination slice; a refused operation must not leave a partially overwritten buffer or perform a kernel open.

Enforcement is the existing hpathcp/hpath lowering and argread in seed/omc/omc.om. The consumer is a normal compiler output.

Cases and results

Mode byte on stdin; argread modes also receive seed/omc/omc.om as the first argument.

ModeOperationExpectedObserved
0create and open build/security673-native/path-ok00
1fopen path with embedded zerotrap 3103
2fopen path of 4096 bytestrap 3103
3fopen empty pathnegative errno, no open0 (consumer accepts the negative result)
4argread into a 1-byte buffer for a longer argumentreturn -105, slice unchanged0 (consumer verifies -105)
5argread invalid index 99trap 3103
6argread exact 4096-byte capacitypositive length0

Mode 3 is deliberately not a trap: the documented contract refuses embedded zero and overlength paths before the kernel, while an empty path reaches openat and returns the kernel's negative errno. The consumer checks that it is negative and does not treat an empty string as a valid open. Mode 4 checks the documented -105 short-capacity result; the destination byte is not changed.

Executed gates

CommandResult
build/gate669 (normal)exit 0, GATE669 PASS
build/gate669 3 (source campaign)exit 0, GATE671 SOURCE PASS
sh seed/host/gate.shexit 0, all host groups

Raw output is gate-paths.log; identities.txt binds the compiler, consumer, gate and log.

Residual limits