Skip to content

[CI] Exercise AArch64 cleanup frame erasure - #65

Open
wizardengineer wants to merge 9 commits into
codex/p13-aarch64-cleanup-experimentfrom
codex/p13-aarch64-cleanup-runtime-ci
Open

wizardengineer wants to merge 9 commits into
codex/p13-aarch64-cleanup-experimentfrom
codex/p13-aarch64-cleanup-runtime-ci

Conversation

@wizardengineer

Copy link
Copy Markdown

The AArch64 cleanup implementation needs execution evidence from the compiler built by CI. Add a bounded GNU C++ fixture and runner to the existing Linux job, using freshly built Clang, the distribution's AArch64 C++ toolchain, and QEMU.

The 32-case matrix checks ordinary returns, local catches, typed escaping exceptions, and forced unwinding at O0/O2 with protected and unprotected inputs. Eight forced-unwind cases inspect the entire accepted original frame and the separate helper allocation; the other cases check behavior and caller state. Four omitted-X21-restore controls must fail for the expected reason, and reserved-X21 compile controls check the capability guard.

The runner preserves source inputs, commands, generated code, raw observations, tool identities and hashes. It rejects unsupported or split prologues instead of reporting a partial frame as complete. This is one fixed-frame GNU-personality fixture under emulation; it does not establish native hardware execution, every register class, or all milestone exits.

Validation: independent replay passed 12 runner unit tests, all 32 runtime cases, four restore controls and three reserved-register checks. Five additional frame-store/caller-restore mutations were detected. Ruff, ty, formatting, actionlint, offline zizmor and shell checks passed. Local execution used the reviewed PR64 replacement library; the fresh combined-source CI result is still pending.

Stacked on #64. Refs trailofbits/vspells-ct-internal-notes#48, trailofbits/vspells-ct-internal-notes#58 and trailofbits/vspells-ct-internal-notes#59.

Assisted by Codex.

@frabert
frabert force-pushed the codex/p13-aarch64-cleanup-runtime-ci branch from 0b25d7e to b01f935 Compare November 24, 2026 10:14
@frabert
frabert force-pushed the codex/p13-aarch64-cleanup-runtime-ci branch from 1f43f34 to 32eff77 Compare November 30, 2026 14:47
@frabert
frabert added this pull request to stack #75 December 1, 2026 12:53
@frabert
frabert marked this pull request as ready for review December 1, 2026 12:54
Use the recognized X9 subtarget feature and check the entire function body for unwanted clears independently of the CHECK-DAG assertions.

Assisted-by: Codex:gpt-6.2-sol
Document the supported typed catches and exclude exception filters and catch-only pads when the function resumes unwinding.

Assisted-by: Codex:gpt-6.2-sol
Outlining can move clears to a helper or spill the link register into an already-cleared frame. Keep the existing outlining behavior for functions without a stack clearing request.

Refs: trailofbits/vspells-ct-internal-notes#58

Assisted-by: Codex:gpt-6.2-sol
Retain the erased original frame while a separate local thunk carries restored caller context. Share one constant continuation per function and emit transient unwind rows per fixed frame extent.

Experimental local branch: validated with 240 generated C++ executions, 96 nested-depth cases, 4096 repeated calls, 12 failing mutations, and 65 focused RUN pipelines. Independent review remains required; general ARM32 EHABI and asynchronous runtime support are outside this patch.
@frabert
frabert force-pushed the codex/p13-aarch64-cleanup-runtime-ci branch from 32eff77 to b51610c Compare December 1, 2026 13:44
@frabert
frabert removed this pull request from stack #75 December 1, 2026 14:41
@frabert
frabert added this pull request to stack #76 December 1, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant