Improve AOSS hello RC4 allocation with memory-order verification #1122

Merged
coah80 merged 1 commits from agent/bittle/aoss-hello-rc4-pair into main 2026-10-03 17:00:27 +00:00
coah80 commented 2026-10-03 16:59:56 +00:00 (Migrated from github.com)

Scope and result

43U only. Swap the existing uninitialized firstByte/firstIndex u32 declarations in AOSSSendHelloRequest. All assignments, modulo widths, RC4 reads/stores, calls, stack objects and other source bytes remain fixed.

  • Function92.190475% →92.48351%; unit97.73641% →97.75617%
  • 271 source /273 target instructions unchanged;14 words exchange r8/r10 roles
  • All20 sibling bodies/relocations and16 exact functions preserved; code6436/16192, data3928/3928 and linking unchanged
  • Current-base global fuzzy99.73191% →99.73202%. Partial gain only, no new exact match.

Independent parent verification

Full default43U/ok rebuild on201de1982d35aaab7c20189569038098221ef74e. All1027 current-main objects/reports compared; only owned object/Hello record changes, no function/exact/code/data/link regression. Fresh object equals immutable winning snapshot001. Tested tree8d9e4610268189ab5c22f0b258cc1d9dd88c3162.

Both real source compilations and both full official reports independently revalidated. All nontext bytes, section headers and relocation records are identical. Parent reviewed/reran actual fourteen-word role mapping, complete continuation/dead-register checks,271-node CFG/dominators and all16 exact-function instruction checks. r8 is overwritten after both straight-line regions; old r10 is not observed by the continuation. Call identities, frame and actual DOL save/restore helpers remain fixed.

RC4 audit independently passes41472cases /82944 actual261-instruction slice executions, including all40320 eight-byte state permutations and960 alias diagnostics. Full ordered memory-read/write traces and the free pointer agree; ordinary cases also match an independent RC4 recurrence. These are bounded instruction-slice diagnostics and local transformation evidence, not whole network-function or Wii execution. Existing shared-BSS deficit is untouched.

Pool1/1 identical. Literal audit12arguments across19functions, no candidates/errors; unchanged unequal-sized Init/Hello skips disclosed. DOL SHA1:26116613f624061ba99c8d1a299aaa6efa85670d. Clean worktree/diff checks pass. Exactly two orders, no adaptive variants; historical overlap unknown. Detailed evidence log committed; original executable artifacts stay local. No merge performed or requested.

Note

Swap firstByte/firstIndex declaration order in AOSSSendHelloRequest

Reorders the two local variable declarations in AOSSSendHelloRequest to match the RC4 stack allocation order in the compiled object, verified via fuzzy matching and bounded interpreter checks. Adds a technical evidence record covering the source and object audits, instruction/register mapping, and final build gates in aoss-hello-byte-index-pair-20261003.md. No executable statements, initializers, or control flow change.

Macroscope summarized 0c42d42.

## Scope and result 43U only. Swap the existing uninitialized firstByte/firstIndex u32 declarations in AOSSSendHelloRequest. All assignments, modulo widths, RC4 reads/stores, calls, stack objects and other source bytes remain fixed. - Function92.190475% →92.48351%; unit97.73641% →97.75617% - 271 source /273 target instructions unchanged;14 words exchange r8/r10 roles - All20 sibling bodies/relocations and16 exact functions preserved; code6436/16192, data3928/3928 and linking unchanged - Current-base global fuzzy99.73191% →99.73202%. Partial gain only, no new exact match. ## Independent parent verification Full default43U/ok rebuild on201de1982d35aaab7c20189569038098221ef74e. All1027 current-main objects/reports compared; only owned object/Hello record changes, no function/exact/code/data/link regression. Fresh object equals immutable winning snapshot001. Tested tree8d9e4610268189ab5c22f0b258cc1d9dd88c3162. Both real source compilations and both full official reports independently revalidated. All nontext bytes, section headers and relocation records are identical. Parent reviewed/reran actual fourteen-word role mapping, complete continuation/dead-register checks,271-node CFG/dominators and all16 exact-function instruction checks. r8 is overwritten after both straight-line regions; old r10 is not observed by the continuation. Call identities, frame and actual DOL save/restore helpers remain fixed. RC4 audit independently passes41472cases /82944 actual261-instruction slice executions, including all40320 eight-byte state permutations and960 alias diagnostics. Full ordered memory-read/write traces and the free pointer agree; ordinary cases also match an independent RC4 recurrence. These are bounded instruction-slice diagnostics and local transformation evidence, not whole network-function or Wii execution. Existing shared-BSS deficit is untouched. Pool1/1 identical. Literal audit12arguments across19functions, no candidates/errors; unchanged unequal-sized Init/Hello skips disclosed. DOL SHA1:26116613f624061ba99c8d1a299aaa6efa85670d. Clean worktree/diff checks pass. Exactly two orders, no adaptive variants; historical overlap unknown. Detailed evidence log committed; original executable artifacts stay local. No merge performed or requested. <!-- Macroscope's pull request summary starts here --> <!-- Macroscope will only edit the content between these invisible markers, and the markers themselves will not be visible in the GitHub rendered markdown. --> <!-- If you delete either of the start / end markers from your PR's description, Macroscope will append its summary at the bottom of the description. --> > [!NOTE] > ### Swap `firstByte`/`firstIndex` declaration order in `AOSSSendHelloRequest` > Reorders the two local variable declarations in `AOSSSendHelloRequest` to match the RC4 stack allocation order in the compiled object, verified via fuzzy matching and bounded interpreter checks. Adds a technical evidence record covering the source and object audits, instruction/register mapping, and final build gates in [aoss-hello-byte-index-pair-20261003.md](https://github.com/coah80/wii-ipl/pull/1122/files#diff-4876a9d13914e56e03d66ee7d3aa196ad419b5902b920f76acba799af957091e). No executable statements, initializers, or control flow change. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 0c42d42.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-03 17:00:25 +00:00 (Migrated from github.com)

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.
Sign in to join this conversation.