Repository navigation
[CI] Exercise AArch64 cleanup frame erasure - #65
Open
wizardengineer wants to merge 9 commits into
Open
wizardengineer wants to merge 9 commits into
wizardengineer wants to merge 9 commits into
Conversation
frabert
force-pushed
the
codex/p13-aarch64-cleanup-runtime-ci
branch
from
November 24, 2026 10:14
0b25d7e to
b01f935
Compare
frabert
force-pushed
the
codex/p13-aarch64-cleanup-runtime-ci
branch
from
November 30, 2026 14:47
1f43f34 to
32eff77
Compare
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
force-pushed
the
codex/p13-aarch64-cleanup-runtime-ci
branch
from
December 1, 2026 13:44
32eff77 to
b51610c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.