feat(libSceAddressSanitizer): add skeleton library and 301 ps5rs-listed stubs #12106

Merged
PrivacyOnion merged 1 commit from upstream-pr/12106 into main 2026-10-28 22:49:30 +00:00
PrivacyOnion commented 2026-10-27 20:45:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-10-27T20:45:42Z.


What

  • Add skeleton library libSceAddressSanitizer declaring 301 export stubs derived from claimore22/ps5rs (data/stubs/by_library/libSceAddressSanitizer_nosubmission.txt, commit 5f252a658ff470bcb2b6cd15205fd8ca64ae4477).
  • All 301 export names have their NID verified via tools/nid_names.py compute_nid.
  • Provide canonical public headers (core/libs/prx/libSceAddressSanitizer/libSceAddressSanitizer.hpp and core/libs/prx/libSceAddressSanitizer/include/Api.hpp) satisfying test_public_headers.py.
  • Record unknown signatures, parameter layouts, and runtime behavior in docs/dev/debt/libSceAddressSanitizer.md; each stub throws NotImplemented_nid_no_patch.

Tested

  • Passed python core/libs/tests/test_public_headers.py --audit-only on Windows 11.
  • Passed python tools/check_conventions.py --base origin/main.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5040860122 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12106). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-10-27T20:45:42Z. --- ### What - Add skeleton library `libSceAddressSanitizer` declaring 301 export stubs derived from [claimore22/ps5rs](https://github.com/claimore22/ps5rs/tree/5f252a658ff470bcb2b6cd15205fd8ca64ae4477/data/stubs/by_library) (`data/stubs/by_library/libSceAddressSanitizer_nosubmission.txt`, commit `5f252a658ff470bcb2b6cd15205fd8ca64ae4477`). - All 301 export names have their NID verified via `tools/nid_names.py` `compute_nid`. - Provide canonical public headers (`core/libs/prx/libSceAddressSanitizer/libSceAddressSanitizer.hpp` and `core/libs/prx/libSceAddressSanitizer/include/Api.hpp`) satisfying `test_public_headers.py`. - Record unknown signatures, parameter layouts, and runtime behavior in `docs/dev/debt/libSceAddressSanitizer.md`; each stub throws `NotImplemented_nid_no_patch`. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> - Passed `python core/libs/tests/test_public_headers.py --audit-only` on Windows 11. - Passed `python tools/check_conventions.py --base origin/main`. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-10-27 20:52:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T20:52:30Z.

Review: COMMENTED


Reviewed exact head 312c586d8b931cc42efc5ba4544809fb4c08cf68. Independent checks: the pinned ps5rs list and Export.cpp each contain exactly 301 names; tools/nid_names.py computes every listed NID with zero mismatches; the public-header audit reports 369 libraries and 13,120 exports with unique declarations and umbrella coverage; Export.cpp passes C++20 syntax-only compilation; and the merge preview against current main is clean. Hosted policy checks pass; the Windows build is still running.\n\nOne scope question before treating this as a resolution of #12063: that issue names libSceDbgAddressSanitizer, while this PR adds libSceAddressSanitizer and does not add a ModuleTable.hpp mapping. The seven exports identified in the issue overlap this inventory, but the 301 throwing stubs do not provide usable ASan behavior: even __asan_init and instrumented load/store calls throw. That is consistent with the repository’s rule for unknown exports, but it only helps import resolution if this exact library name is what the loader expects. Could you clarify the evidence tying this library name to the target import/module path, and whether this PR is intended to address any part of #12063? The issue’s proposed silent or functional runtime paths are separate from the throwing skeleton here.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5674157819 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12106#pullrequestreview-5674157819). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T20:52:30Z. **Review:** COMMENTED --- Reviewed exact head `312c586d8b931cc42efc5ba4544809fb4c08cf68`. Independent checks: the pinned `ps5rs` list and `Export.cpp` each contain exactly 301 names; `tools/nid_names.py` computes every listed NID with zero mismatches; the public-header audit reports 369 libraries and 13,120 exports with unique declarations and umbrella coverage; `Export.cpp` passes C++20 syntax-only compilation; and the merge preview against current `main` is clean. Hosted policy checks pass; the Windows build is still running.\n\nOne scope question before treating this as a resolution of #12063: that issue names `libSceDbgAddressSanitizer`, while this PR adds `libSceAddressSanitizer` and does not add a `ModuleTable.hpp` mapping. The seven exports identified in the issue overlap this inventory, but the 301 throwing stubs do not provide usable ASan behavior: even `__asan_init` and instrumented load/store calls throw. That is consistent with the repository’s rule for unknown exports, but it only helps import resolution if this exact library name is what the loader expects. Could you clarify the evidence tying this library name to the target import/module path, and whether this PR is intended to address any part of #12063? The issue’s proposed silent or functional runtime paths are separate from the throwing skeleton here.
MarcZX10 commented 2026-10-27 21:56:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T21:56:18Z.

Review: COMMENTED


Follow-up on the scope clarification: I agree this is an import-resolution skeleton for libSceAddressSanitizer, separate from the libSceDbgAddressSanitizer runtime work in #12063. I independently rechecked the exact head 312c586d8b931cc42efc5ba4544809fb4c08cf68: all 301 declarations have matching definitions, both name sets are unique, the public-header audit passes (368 libraries / 12,822 exports), conventions and git diff --check pass, the current-main merge preview is clean, and hosted Windows succeeds. I did not independently rerun the pinned ps5rs NID computation in this pass; the PR body records it as checked. No blocking issue found in this scope. The only hosted build job shown is Windows; Linux and macOS build jobs were skipped by workflow selection, so this is not a claim of cross-platform validation.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5674969233 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12106#pullrequestreview-5674969233). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T21:56:18Z. **Review:** COMMENTED --- Follow-up on the scope clarification: I agree this is an import-resolution skeleton for `libSceAddressSanitizer`, separate from the `libSceDbgAddressSanitizer` runtime work in #12063. I independently rechecked the exact head `312c586d8b931cc42efc5ba4544809fb4c08cf68`: all 301 declarations have matching definitions, both name sets are unique, the public-header audit passes (368 libraries / 12,822 exports), conventions and `git diff --check` pass, the current-main merge preview is clean, and hosted Windows succeeds. I did not independently rerun the pinned ps5rs NID computation in this pass; the PR body records it as checked. No blocking issue found in this scope. The only hosted build job shown is Windows; Linux and macOS build jobs were skipped by workflow selection, so this is not a claim of cross-platform validation.
MarcZX10 commented 2026-10-28 17:27:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T17:27:58Z.

Review: APPROVED


Reviewed — looks good\n\nThe change is scoped to the AddressSanitizer skeleton and its declared stub exports; the inventory and generated NID declarations were checked on this head. Windows hosted configure/link and convention, intake, eligibility, and report checks pass; CTest and Linux were skipped.\n\nReviewed head against base ; no blocking finding. This approval covers this exact diff only.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5686931537 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12106#pullrequestreview-5686931537). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T17:27:58Z. **Review:** APPROVED --- # Reviewed — looks good\n\nThe change is scoped to the AddressSanitizer skeleton and its declared stub exports; the inventory and generated NID declarations were checked on this head. Windows hosted configure/link and convention, intake, eligibility, and report checks pass; CTest and Linux were skipped.\n\nReviewed head against base ; no blocking finding. This approval covers this exact diff only.
MarcZX10 commented 2026-10-28 17:29:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T17:29:02Z.

Review: APPROVED


Reviewed — looks good

The change is scoped to the AddressSanitizer skeleton and its declared stub exports; the inventory and generated NID declarations were checked on this head. Windows hosted configure/link and convention, intake, eligibility, and report checks pass; CTest and Linux were skipped.

Reviewed head 312c586d8b against base 4a6005955f; no blocking finding. This approval covers this exact diff.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5686946129 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12106#pullrequestreview-5686946129). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T17:29:02Z. **Review:** APPROVED --- # Reviewed — looks good The change is scoped to the AddressSanitizer skeleton and its declared stub exports; the inventory and generated NID declarations were checked on this head. Windows hosted configure/link and convention, intake, eligibility, and report checks pass; CTest and Linux were skipped. Reviewed head 312c586d8b931cc42efc5ba4544809fb4c08cf68 against base 4a6005955ff169db8d66fc43ede7ac0cc426ee4a; no blocking finding. This approval covers this exact diff.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!12106
No description provided.