## Summary PoC-A proved that dynamically loaded ELF plugins are workable on ESP32-S3: plugins ship as signed MPB packages, are parsed by a strict single-type parser shared between host and target, and execute from PSRAM+IRAM within a measured admission budget. A 1000-cycle load/unload soak passed 18/18 trend gates with stable heaps, the capacity ladder settled at 8 coexisting plugin instances with a 3356B per-instance budget, and the fail-closed corpus executed zero attacker-controlled bytes across 14 rejection classes. Scheduler semantics (strand FIFO ordering, completion-cancel CAS, quiesce-as-noop ABI) were validated on both host (TSan suite) and target. **Gate-A verdict: PASS** — ADR-0002 moves to **Accepted** with the capacity value 8 and global-sum admission rule as PoC-derived proposals. ## Changes by area Grouped from `git log main..HEAD --oneline` (18 commits): - **Vendored loader + patches**: `4bb53f2` vendor elf_loader 1.3.3 + harness scaffold; `2f67b4f` plugin_iram loader patch with budget consistency (p1-p5 patch series in `PATCHES.md`). - **MPB toolchain**: `4793cc2` deterministic MPB manifest builder with test signing; `408df44` strict single-type MPB parser shared host/target; `796f9d2` host MPB corpus + policy CI lane. - **Plugin pipeline + probes**: `21d2842` plugin pipeline and first PSRAM execution on target; `cab9664` relocation/import allowlist matrix with probes; `c5d6c6c` C++ feature rejection matrix. - **Harness commands**: `e0e7159` generation coexistence with measured admission budget; `2a37556` thousand-cycle lifecycle soak with heap trend gate; `093a72b` on-target scheduler semantics validation (+ `eea3876` clang-format-18 sweep); `a302151` capacity ladder with signed budget; `f34dc72` fail-closed corpus with execution sentinel. - **Host prototypes**: `6198bca` strand FIFO prototype with TSan suite; `1c3ad59` completion-cancel CAS and cleanup semantics. - **Evidence + ADR/docs**: `887d0f7` Gate-A manifest and report; `1c29e8a` ADR-0002 outcome + frozen PoC values. ## QA evidence - `poc/evidence/poc-a-20260901/manifest.json` — 67-artifact hash index, every sha256 recomputed at assembly. - `poc/evidence/poc-a-20260901/GATE-A-REPORT.md` — full nine-item development-plan §4 mapping; TEST-003 10/10 clauses. - 14 verbatim per-task transcripts (`task-1` … `task-15-*.log`) + fresh build artifacts (`build/frame_poc_a.map`, size components). - Frozen in-repo references: `ALLOWLIST.md`, `REJECT-MATRIX.md`, `ADMISSION-BUDGET.md`, `soak_samples_1000.csv`, fc corpus (33 committed `.mpb` containers). - F1-F4 final-wave verdicts: **APPROVE**. - Key numbers: soak **18/18** trend gates over 1000 cycles; capacity **8/8** instances, **3356B** per-instance; fc corpus **14 rejection classes, zero attacker bytes executed**; **4 upstream loader defects found and patched** (p1-p5). ## Requirement IDs (GOV-006) ADR-0002; TEST-002, TEST-003; PLUG-001, PLUG-004, PLUG-008, PLUG-009; MEM-001, MEM-003, MEM-007, MEM-008; LIFE-001, LIFE-002, LIFE-005, LIFE-007; SEC-002, SEC-003, SEC-004, SEC-005; GH-003; GOV-004, GOV-005. ## Risks / known limitations From `GATE-A-REPORT.md` §(f) plus the trade-off table: 1. **Capacity descent path 7-5 unexercised** — rung 8 passed first attempt; rungs 7/6/5 and retry-once logic never ran on hardware (untested against real OOM). 2. **No Wi-Fi in the harness (MEM-001 caveat)** — all PSRAM/IRAM budget numbers are radio-off harness-class; product admission budgets must be re-measured with the network stack active. 3. **On-target scheduler vectors are a subset of the host suite** (256-node pool / 2e4 storm posts vs host 31000 / 1e5); consistency declaration covers only the vectors actually run. 4. **Quiesce is a no-op by ABI semantics** — plugin ABI 1.2 has no quiesce slot; NULL entry is defined as trivial success; real quiesce coordination is later-gate work. 5. **MEMPROT=n trade-off** — `CONFIG_ESP_SYSTEM_MEMPROT=n` is required for the IDF exec heap (`MALLOC_CAP_EXEC`) that `.plugin_iram` needs; software-only PMP config, no eFuse burned (documented in `PATCHES.md` p5); production must re-decide security vs plugin IRAM. 6. **Owner sign-off PENDING** — Gate-A PASS is the PoC team's verdict; formal acceptance of ADR-0002 awaits the owner. ## Not in scope - Product components (GOV-004) — this PR is PoC evidence only; no product code paths change. - **Merge is the owner's call** — do not merge without owner sign-off on ADR-0002. --------- Co-authored-by: ania-lain <[email protected]>
27 lines
2.2 KiB
Plaintext
27 lines
2.2 KiB
Plaintext
59231c48ad41bff1ed67690b194ff5e1780d07d3cb194f9d9674d35accd1a1a4 ./CHANGELOG.md
|
|
f6db411fcc6bb9a02fa1f09919ddfb99374a11bc57942ac4df6f6188ef032c45 ./check_shared_object.cmake
|
|
0b942c88ecb16950bed4f418983014f6c9a25487fdfc621476ebefb51a3765af ./CMakeLists.txt
|
|
4e2b74ed77903be2b107dfe2c103deb5e76db4b3259179f8e17976a587dd79fa ./elf_loader.cmake
|
|
259f9e135559178b85ec6710ab6a17ab9a6a88c81187966eaa3ba614a455a7a9 ./idf_component.yml
|
|
3406d27e7ae6b1b443d27bb69ee7e862f60238a8d8b55e3e4bea76d66d328b6f ./include/esp_dlfcn.h
|
|
f4cef04b710e4863670a159040de4435a7fc19790a293a6223d2656ee98eb006 ./include/esp_elf.h
|
|
4dcdcb6a11aaf5156ea978019acc484f687234bedaa32fb2fececc652cac3cfe ./include/private/elf_platform.h
|
|
288b180445016fc889a1aec0ece5693c9ba99d923f7ec82bc87b0f85b72bb719 ./include/private/elf_symbol.h
|
|
b1e946cbb34dad91aa8913724022577154806ad32291d1ed4888e579d2897292 ./include/private/elf_types.h
|
|
1555b1e6a6db5c07150df6492d069d925f8a362a980f70956c8d731d03efde90 ./include/private/esp_dlmod.h
|
|
532cea3ef8cb7e9af97694c1f3bddec60a8453de6f7aabbbbcaca855168b3ca7 ./Kconfig
|
|
cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 ./license.txt
|
|
26e023b07668f37c812cad1b41217ee7f31e10683acb4cb5407daf6fd8d53565 ./linker.lf
|
|
f2fb6d2b5559ae8239a135b557aad3f147066f9a9c0afd0b72f28159ab106af5 ./project_include.cmake
|
|
dd33bb577b32f104f3e9f8b0650737cbb885b97b13ffab79c23b6d8057900524 ./README.md
|
|
f342b33cab7a66eb49bafc5f711f9c9ec53ccf2d81731b4719f4efa630c695a7 ./src/arch/esp_elf_riscv.c
|
|
5bdfb954bb1a4380b82897d460de2a08f4212d81d3221064ca83a028a31dc1e7 ./src/arch/esp_elf_xtensa.c
|
|
aa2a1d74a45726ac45cabf778a825b9328cf2c731b869de0e5dfe9523acd2ead ./src/dlso/dlfcn.c
|
|
02c9411d7993f7b6d13bca15094fbd58979e4fdb938a9470ef845d174a7f3bca ./src/dlso/dlmod.c
|
|
203376641eb31d39f5691865afbb6fab1eae2e8317e36e41f0a0192be206fb69 ./src/esp_all_symbol.c
|
|
76bc197b51844110e73962c4a0be98965a0ed9028f4a27725185eabb332dcb2c ./src/esp_elf_adapter.c
|
|
e3aecd2dccd963440b28cee811158e917825bd59683898df0815014c529df40c ./src/esp_elf.c
|
|
81407e3dbbe7705cf3666c97ed23b5b4b9eefa7b1337de2059be85d08d0a0f4d ./src/esp_elf_symbol.c
|
|
163857a64578cf8bfbed900ea5168cd43a1db6a51b7921b7dec1b588b989e03e ./src/soc/esp_elf_esp32s2.c
|
|
81398e6eeb1bd381e0a8a1cb36d81452f6ea8f2d69a577e3a9599619c5e54246 ./tool/symbols.py
|