Repository navigation
test(ghidra): verify PSP VFPU prefix and vector decoding - #8614
Conversation
[Low impact] The PR appears safe to merge; no blocking code issues were found. SummaryAdds source-owned PSP VFPU checks to the existing opt-in real-Ghidra verifier.
No actionable defects or applicable rule violations were found. Source review found no new security concern. The merge bases differ, so the full PR was reviewed as changes since the last review. No previous review threads were supplied. Real-Ghidra validation was not rerun. Supersession could not be checked because GitHub access was unavailable. Reviews (2) · Last reviewed commit: "merge(main): refresh PSP PR #8614 onto r..." · Reviewed by Greptile |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the added VFPU decoding coverage.
No open issues 🎉
What changed in this PR
Extends REA’s existing opt-in real-Ghidra PSP verifier with source-owned VFPU decoding coverage. The change measures static decoding and high-p-code availability without claiming vector arithmetic correctness or changing public interfaces.
Changes:
- Add a VFPU fixture and assertions for seven prefix/vector instruction sites.
- Report opaque
CALLOTHERcounts, availability, truncation, and pseudocode presence through existing analysis contracts. - Document the coverage and its limits, including unverified prefix consumption and lane-level arithmetic.
| File | Description |
|---|---|
tests/conformance/psp/probe.S |
Adds a static VFPU prefix/vector instruction sequence. |
tests/conformance/ghidra/psp-fixture.mjs |
Registers the fixture symbol and asserts expected bytes, mnemonics, and decode status. |
scripts/verify-real-ghidra-mips.mjs |
Exercises public inspection operations and reports VFPU analysis observations. |
docs/ghidra-psp.md |
Explains the added coverage and semantic verification limits. |
Review effort: Balanced
Summary
Add source-owned PSP/Allegrex
vpfxs,vpfxt,vpfxd, andvadd.qconformance observations to REA's existing opt-in real-Ghidra PSP verifier. This is static decoding and measured opaque high-p-code coverage, not VFPU arithmetic correctness.Problem and expected behavior
PSP admission currently verifies BITREV and basic ELF/ABI facts, but does not exercise VFPU prefix/vector sequences through public REA operations. An analyst needs an observed baseline before evaluating more complete ghidra-allegrex semantics.
Change and scope
tests/conformance/psp/probe.Sfixture (no commercial binaries, no target execution).inspect_native_instruction.analyze_functionand its existingnative_value_flowcontract to reportCALLOTHERcount, truncation/availability, and pseudocode liveness. Leave unavailable facts unknown.docs/ghidra-psp.mdcoverage guide. No new API, provider, dependency, analyzer, configuration, runtime execution, or mutation.Contract and boundary impact
verify-real-ghidra-mips.mjs --pspverifier.Evidence and regression coverage
vadd.qsites; unsupported arithmetic remains explicitlynot_verified.84838246461383fc656a5fc96cd5cc0c0c62acdf(preserved in current merge head36f1fed4f5b49290e3420d23e88600d9e55229d7).36f1fed4and confirmed those observations; numeric vector semantics remainnot_verified.Validation performed
node --check scripts/verify-real-ghidra-mips.mjs— passed.oxfmt --checkon touched files;npm ci,npm run build:cached,npm run check:fast,npm run docs:check— passed.node scripts/verify-real-ghidra-mips.mjs --psp— passed using source-owned PSP ELF via actual REA MCP/CLI and real pinned Ghidra/Allegrex, including Evidence/snapshot/process cleanup.Upstream CI repair and branch refresh (November 1, 2026)
The original upstream CI at PSP head
8483824failed in repository-wide formatting and an unrelated JavaScript-runtime fixture, both also failing on the oldmainatd3ab0fa. The independent Frida fixture failure was separately reproduced. The earlier combined-baseline fork proof passed with those fixes applied.Upstream has since repaired the baseline directly in
00c4f44(fix(ci): repair verifier fixtures and formatting failures), with passing main CI. The former repair PR #8592 was closed without merge; #8596 is still an independent draft. Do not infer the repairs are missing solely because those PRs have not merged.This PR was refreshed by a non-forced two-parent merge from
main00c4f44onto the existing PR head, producing36f1fed4. The resulting diff against main still contains only the original four PSP-specific files. Current upstream PR CI and fork-only current-head real PSP verification are distinct checks. The fork validation completed successfully on this exact merge head: repository-wide formatting, 11 focused JavaScript/Frida fixture regressions, build/type/lint/docs, and the real PSP/Allegrex CLI/MCP lane all passed. Upstream PR CI has also completed successfully on36f1fed4f5b49290e3420d23e88600d9e55229d7: run 41383557605 recorded 15 successful jobs, 25 skipped jobs, and no failed jobs.Compatibility, safety, and release
No public interface or package changes. No gameplay, proprietary binaries or runtime emulation. Validation is restricted to the cited Linux x64 toolchain.
Author readiness
Human owner: @jaelliot
Before merge