interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

GitHub aien-dev/aienux#230 (code only)

closed derived 4897cead095ac5d8 #230

Imported from GitHub aien-dev/aienux#230 (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 a047289d7527bb7f09395ae8cf142fb02ca967f1 · Head a21b5b9771b1a3fb3e7ead444eb3d5997d8ebabd

Apply it

git checkout -b patch-4897cead095ac5d8 a047289d7527bb7f09395ae8cf142fb02ca967f1
curl -fsSL https://interplane.io/drakestapleton/aienux/patches/4897cead095ac5d8.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/aienux
230
a21b5b9771b1a3fb3e7ead444eb3d5997d8ebabd
{"kind":"github-import","owner":"aien-dev","repo":"aienux","number":230,"url":"https://github.com/aien-dev/aienux/pull/230","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:01Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/scripts/ck_owner_keys_check.sh b/scripts/ck_owner_keys_check.sh
index ebc6696e..a8144e56 100755
--- a/scripts/ck_owner_keys_check.sh
+++ b/scripts/ck_owner_keys_check.sh
@@ -143,10 +143,18 @@ for f in "${hw}/aienos-ck.elf" "${hw}/BOOTAA64.EFI"; do
 done
 if [[ -s "${hw}/aienos-ck.elf" ]]; then
     nmtool="${cross}nm"
-    y="$("${nmtool}" "${hw}/aienos-ck.elf" | grep -E ' (ck_store_test_keys|ck_store_test_uuid)$' || true)"
+    # Capture nm fully first: `nm | grep -q` lets grep exit early, nm can die of SIGPIPE, and
+    # pipefail then turns a real match into a FAIL (CK-4 light log 181624).
+    nmout="$("${nmtool}" "${hw}/aienos-ck.elf")"
+    y="$(grep -E ' (ck_store_test_keys|ck_store_test_uuid)$' <<<"${nmout}" || true)"
     [[ -z "${y}" ]] && ok "no TEST Store key symbols in the hardware staging ELF" || bad "TEST symbols: ${y}"
-    "${nmtool}" "${hw}/aienos-ck.elf" | grep -qE ' ck_store_production_keys$' \
+    grep -qE ' ck_store_production_keys$' <<<"${nmout}" \
         && ok "ck_store_production_keys (BLOCKED_OPERATOR seam) is linked" || bad "ck_store_production_keys not linked"
+    # Control: the same match must FAIL on nm text without the symbol and PASS with it.
+    ctl_absent=$'0000 T ck_main\n0001 D ck_other_keys'
+    ctl_present="${ctl_absent}"$'\n0002 D ck_store_production_keys'
+    if grep -qE ' ck_store_production_keys$' <<<"${ctl_absent}"; then bad "control: absent symbol matched"; else ok "control: symbol check fails when the symbol is absent"; fi
+    if grep -qE ' ck_store_production_keys$' <<<"${ctl_present}"; then ok "control: symbol check passes when the symbol is present"; else bad "control: present symbol not matched"; fi
 fi
 
 # ---- 4. control: the default image keeps the labelled TEST keys -----------