feat(libSceLibreSsl3): implement signature algorithm lookup #15406

Merged
atharvjairath merged 3 commits from upstream-pr/15406 into main 2026-11-07 05:03:31 +00:00
atharvjairath commented 2026-11-03 05:52:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by atharvjairath on 2026-11-03T05:52:59Z.


What

OBJ_find_sigid_algs now looks up 33 LibreSSL 4.0.0 signature mappings whose signature, digest and key identifiers all fit the parent registry’s built-in range. Either output is optional. The function writes the digest first, so the key wins when outputs alias. A zero digest is a successful result for mappings that specify it. LibreSSL 4.0.0 lookup · Object numbers

The parent registry allocates custom identifiers from 956. The 18 higher signature identifiers at 980–989 and 1045–1052 therefore return zero and preserve outputs before, during and after custom object allocation. A compile-time check constrains all three identifiers in each supported tuple. Algorithm execution and certificate/TLS interoperability remain open. Custom-object collision review

The fixture exercises 102 real custom-object allocations, cleanup, the error queue, optional outputs, aliases and output canaries. It calls the parent registry directly. The export identifier is pW329hq95Hc.

The source scanner classifies 23/276 bodies as implemented on main and 24/276 on this branch. The difference is the 1 export above. The scanner classifies source bodies and does not measure firmware compatibility. The additional export inventory has 174 pending entries (164 named, 10 known only by NID).

Integration order is #14992 → #15031 → #15045 → #15119 → #15406. This branch is based directly on main 6d173c1a1978. Each branch keeps its own changes. The order allows the shared CMake registrations and debt counts to be reconciled after each merge.

Tested

Validated head 673f3997b451 against main 6d173c1a1978.

  • Linux: GCC 13.3 x86-64 under QEMU 11.0.3, 15 passed, 0 failed, 0 skipped. The upstream mixed-EVP fixture patched and loaded real modules in both library orders.
  • Windows PE: WinLibs 15.2 UCRT under Wine 9 and QEMU 11.0.3, 14 passed, 0 failed, 0 skipped. Both platforms ran the module’s registered direct tests and the owned fixture. The owned fixture completed in 0.0601172 s on Linux and 1.02489 s under Wine. Loader traces identified this branch’s module.
  • Rebuilt LibreSSL3 independently per branch. The common libc, kernel and parent LibreSSL binaries were rebuilt once per platform from sources identical across the five branches. A translation unit including the public LibreSSL3 umbrella twice compiled with warnings treated as errors on both platforms. The focused selection uses the registered timeouts and leaves the optional oracle and separate parent error-string and packaged-NID groups outside this run. Full-product, native Windows and console testing remain outside this run.
  • The first external Windows harness omitted the repository’s libc unwind post-build step. It built liblibc.dll with the .eh_frame section and exception fixtures failed. The corrected harness uses configure_windows_unwind(libc), which produces .ehfram. Windows counts above are from the corrected build.
  • Integration previews on later main 7ad9749ed0 preserved the exact branch and upstream diffs. Runtime results above are pinned to the tested base.
  • Conventions and diff checks passed. The repository-wide public-header audit exited 1 with the same five WebKit declarations reported on a separate snapshot of the tested main commit.
  • The overlap tool exited 2 and reported 43 PRs, including 31 it could not compare cleanly with main. Manual comparison of shared registrations, APIs, debt and export changes found no competing implementation of these exports.

The earlier regression run on 24ac9f770105 created 102 custom objects. Substituting the old 03c55fc1dc98 LibreSSL3 binaries made that fixture fail at custom identifier 980 on both platforms. The source approval for the collision fix was on 24ac9f770105. Earlier approval

Both loader runs printed signature mappings: 15977 cases, 623311 checks, 33 mappings, 102 custom objects.

Earlier validation on 24ac9f770105 and the historical commits cited below

Exact current head 24ac9f770105c98bc55a4584208e5d760e0af5b3, on implementation head 03c55fc1dc98f97ec23cef6f24a17a2ef455a761 and tested main d1ae628bc2f62459cce1e9872ba5632c938c71f2. The affected real LibreSSL3 module and fixture were rebuilt on both platforms. Unchanged real libc and parent LibreSSL artifacts from the original fully rebuilt d1ae integration were reused, with identical source inputs and artifact hashes verified; they were not rebuilt again for this fix.

  • Linux GCC 13.3, x86-64 execution through native ARM QEMU 11.0.3: 44/44 passed in 3.04s.
  • Windows PE WinLibs GCC 15.2 UCRT / Wine 9 / native ARM QEMU 11.0.3: serial build, focused 16/16 passed in 53.74s. This includes all eleven LibreSSL3 registrations, crypto_memcmp, parent key-type, parent EVP, and the parent object-text and object-allocation fixtures.
  • Updated signature fixture: 15,977 cases / 623,311 checks / 33 mappings / 102 actual custom objects on each platform (0.0451004s Linux / 3.35s Windows PE). Real OBJ_create allocations reach the previously colliding, unnamed NID 980 and all 18 excluded IDs. Supported built-ins are checked throughout allocation; repeated OIDs, cleanup, monotonic allocation after cleanup, unchanged error queue, optional/aliased outputs and canaries are covered. The signed-range, extrema, walking-bit and deterministic-value matrix remains. All 33 retained tuples match the previously primary-source-checked table.
  • The Windows import audit binds create/cleanup to the parent LibreSSL registry and the query to LibreSSL3. This exercises their real shared-registry interaction; it is not a claim that the fixture calls the LibreSSL3 forwarding thunk.
  • Negative regression controls use the exact previous-head LibreSSL3 modules, whose hashes match the original receipts, with the same new fixture and unchanged parent/libc modules. Both fail the new assertion at NID 980; loader traces confirm the old modules. Linux exits 134. On Windows, the assertion is emitted and Wine waits until the external diagnostic control's 25-second limit (exit 124). The real fixture's registered 20-second timeout is unchanged. No production mutant was applied. Earlier preload-mutant results remain historical and were not rerun for this fix.
  • After-commit conventions, whitespace check, public-header audit (405 libraries / 28,213 exports) and twice-included standalone Linux C++20/-Werror umbrella compile pass.
  • Exact python3 tools/pr_overlap.py --branch feat/libressl3-signature-algorithms exits 2, not an automated pass: 1,730 open PRs, 32 shared candidates and 19 reported peers. All 19 were freshly verified open/current. Full/shared patches and every merge base were retained; all 20 shared merge-base payloads, including both for #13486, match the previously reviewed baseline. Ten base-conflicted peers were manually compared through those verified payloads. No duplicate selected export or runtime prerequisite; shared CMake/debt integration order remains declared above.

These are focused real-module tests, not independent native Windows, full-product, packaged module/NID (including protocol-NID), title/homebrew or physical-console validation. Separate error-string fixtures were not run; the default-off upstream oracle was not enabled. Known unrelated Wine failures outside this selection are not claimed fixed. No assertion, timeout, workflow gate or runtime workaround was weakened. Warnings remain. Current remote success on the previous head is not validation or approval of this new fix; no new-head native CI claim is made.

Current reproduction scripts, manifests, complete logs/JUnit, 86 artifact hashes, old-module controls and fresh peer snapshots are retained in /private/tmp/anyps5-monitor-20261103-1228 (reproduce.txt, validation-evidence.tar.gz, manual-shared-review.txt, peers-final). Original primary references and historical validation remain in /private/tmp/anyps5-advance-20261103-0127.

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: #15119
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
Overlap report before the branch refresh was pushed

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 14366 docs/dev/debt/libSceLibreSsl3.md L35, L215
PR 14889 docs/dev/debt/libSceLibreSsl3.md L35, L215
PR 14890 docs/dev/debt/libSceLibreSsl3.md L32, L35, L215
PR 15289 docs/dev/debt/libSceLibreSsl3.md L35
PR 15303 docs/dev/debt/libSceLibreSsl3.md L35
PR 15406 OBJ_find_sigid_algs core/libs/prx/libSceLibreSsl3/src/SignatureAlgorithms.cpp
core/libs/prx/libSceLibreSsl3/tests/SignatureAlgorithms.cpp
PR 15449 docs/dev/debt/libSceLibreSsl3.md L35, L215
PR 15514 docs/dev/debt/libSceLibreSsl3.md L35
PR 15591 docs/dev/debt/libSceLibreSsl3.md L35
PR 15628 docs/dev/debt/libSceLibreSsl3.md L31-32, L35
PR 15826 docs/dev/debt/libSceLibreSsl3.md L35
PR 15831 core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp L610-618
core/libs/prx/libSceLibreSsl3/include/Api.hpp L279-280
docs/dev/debt/libSceLibreSsl3.md L35, L180-181
PR 15854 docs/dev/debt/libSceLibreSsl3.md L35

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 10452 core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 10461 core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 10490 core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 10491 core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 10493 core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 10631 core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 11146 core/libs/prx/libSceLibreSsl3/CMakeLists.txt
docs/dev/debt/libSceLibreSsl3.md
PR 12315 core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 12754 core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 12928 core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 13486 core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp
core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 14212 docs/dev/debt/libSceLibreSsl3.md
PR 14499 core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 14612 core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp
core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 14992 core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp
core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 15031 core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp
core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 15045 core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp
core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 15119 core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp
core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 15163 core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 15406 core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp
core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
core/libs/prx/libSceLibreSsl3/src/SignatureAlgorithms.cpp
core/libs/prx/libSceLibreSsl3/tests/SignatureAlgorithms.cpp
docs/dev/debt/libSceLibreSsl3.md
PR 15544 core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp
core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 15599 core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 15601 core/libs/prx/libSceLibreSsl3/CMakeLists.txt
docs/dev/debt/libSceLibreSsl3.md
PR 15631 core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp
core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 15737 core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 15758 core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp
core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 15760 core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp
core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 15761 core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp
core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 15765 core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp
core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 15770 core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp
core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 15899 core/libs/prx/libSceLibreSsl3/CMakeLists.txt
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5132582753 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15406). Originally posted by [atharvjairath](https://github.com/atharvjairath) on 2026-11-03T05:52:59Z. --- ### What `OBJ_find_sigid_algs` now looks up 33 LibreSSL 4.0.0 signature mappings whose signature, digest and key identifiers all fit the parent registry’s built-in range. Either output is optional. The function writes the digest first, so the key wins when outputs alias. A zero digest is a successful result for mappings that specify it. [LibreSSL 4.0.0 lookup](https://github.com/libressl/openbsd/blob/ce488b78e0bd994780569df718596b9776ff681a/src/lib/libcrypto/objects/obj_xref.c) · [Object numbers](https://github.com/libressl/openbsd/blob/ce488b78e0bd994780569df718596b9776ff681a/src/lib/libcrypto/objects/obj_mac.num) The parent registry allocates custom identifiers from 956. The 18 higher signature identifiers at 980–989 and 1045–1052 therefore return zero and preserve outputs before, during and after custom object allocation. A compile-time check constrains all three identifiers in each supported tuple. Algorithm execution and certificate/TLS interoperability remain open. [Custom-object collision review](https://github.com/boykopovar/AnyPS5/pull/15406#pullrequestreview-5747815397) The fixture exercises 102 real custom-object allocations, cleanup, the error queue, optional outputs, aliases and output canaries. It calls the parent registry directly. The export identifier is pW329hq95Hc. The source scanner classifies 23/276 bodies as implemented on main and 24/276 on this branch. The difference is the 1 export above. The scanner classifies source bodies and does not measure firmware compatibility. The additional export inventory has 174 pending entries (164 named, 10 known only by NID). Integration order is #14992 → #15031 → #15045 → #15119 → #15406. This branch is based directly on main `6d173c1a1978`. Each branch keeps its own changes. The order allows the shared CMake registrations and debt counts to be reconciled after each merge. ### 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. --> Validated head `673f3997b451` against main `6d173c1a1978`. - **Linux:** GCC 13.3 x86-64 under QEMU 11.0.3, 15 passed, 0 failed, 0 skipped. The upstream mixed-EVP fixture patched and loaded real modules in both library orders. - **Windows PE:** WinLibs 15.2 UCRT under Wine 9 and QEMU 11.0.3, 14 passed, 0 failed, 0 skipped. Both platforms ran the module’s registered direct tests and the owned fixture. The owned fixture completed in 0.0601172 s on Linux and 1.02489 s under Wine. Loader traces identified this branch’s module. - Rebuilt LibreSSL3 independently per branch. The common libc, kernel and parent LibreSSL binaries were rebuilt once per platform from sources identical across the five branches. A translation unit including the public LibreSSL3 umbrella twice compiled with warnings treated as errors on both platforms. The focused selection uses the registered timeouts and leaves the optional oracle and separate parent error-string and packaged-NID groups outside this run. Full-product, native Windows and console testing remain outside this run. - The first external Windows harness omitted the repository’s libc unwind post-build step. It built liblibc.dll with the .eh_frame section and exception fixtures failed. The corrected harness uses configure_windows_unwind(libc), which produces .ehfram. Windows counts above are from the corrected build. - Integration previews on later main 7ad9749ed031 preserved the exact branch and upstream diffs. Runtime results above are pinned to the tested base. - Conventions and diff checks passed. The repository-wide public-header audit exited 1 with the same five WebKit declarations reported on a separate snapshot of the tested main commit. - The overlap tool exited 2 and reported 43 PRs, including 31 it could not compare cleanly with main. Manual comparison of shared registrations, APIs, debt and export changes found no competing implementation of these exports. The earlier regression run on 24ac9f770105 created 102 custom objects. Substituting the old 03c55fc1dc98 LibreSSL3 binaries made that fixture fail at custom identifier 980 on both platforms. The source approval for the collision fix was on 24ac9f770105. [Earlier approval](https://github.com/boykopovar/AnyPS5/pull/15406#pullrequestreview-5748564309) Both loader runs printed `signature mappings: 15977 cases, 623311 checks, 33 mappings, 102 custom objects`. <details> <summary>Earlier validation on 24ac9f770105 and the historical commits cited below</summary> Exact current head `24ac9f770105c98bc55a4584208e5d760e0af5b3`, on implementation head `03c55fc1dc98f97ec23cef6f24a17a2ef455a761` and tested main `d1ae628bc2f62459cce1e9872ba5632c938c71f2`. The affected real LibreSSL3 module and fixture were rebuilt on both platforms. Unchanged real libc and parent LibreSSL artifacts from the original fully rebuilt d1ae integration were reused, with identical source inputs and artifact hashes verified; they were not rebuilt again for this fix. - Linux GCC 13.3, x86-64 execution through native ARM QEMU 11.0.3: **44/44 passed in 3.04s**. - Windows PE WinLibs GCC 15.2 UCRT / Wine 9 / native ARM QEMU 11.0.3: serial build, focused **16/16 passed in 53.74s**. This includes all eleven LibreSSL3 registrations, crypto_memcmp, parent key-type, parent EVP, and the parent object-text and object-allocation fixtures. - Updated signature fixture: **15,977 cases / 623,311 checks / 33 mappings / 102 actual custom objects** on each platform (0.0451004s Linux / 3.35s Windows PE). Real `OBJ_create` allocations reach the previously colliding, unnamed NID 980 and all 18 excluded IDs. Supported built-ins are checked throughout allocation; repeated OIDs, cleanup, monotonic allocation after cleanup, unchanged error queue, optional/aliased outputs and canaries are covered. The signed-range, extrema, walking-bit and deterministic-value matrix remains. All 33 retained tuples match the previously primary-source-checked table. - The Windows import audit binds create/cleanup to the parent LibreSSL registry and the query to LibreSSL3. This exercises their real shared-registry interaction; it is not a claim that the fixture calls the LibreSSL3 forwarding thunk. - Negative regression controls use the exact previous-head LibreSSL3 modules, whose hashes match the original receipts, with the same new fixture and unchanged parent/libc modules. Both fail the new assertion at **NID 980**; loader traces confirm the old modules. Linux exits 134. On Windows, the assertion is emitted and Wine waits until the external diagnostic control's 25-second limit (exit 124). The real fixture's registered 20-second timeout is unchanged. No production mutant was applied. Earlier preload-mutant results remain historical and were not rerun for this fix. - After-commit conventions, whitespace check, public-header audit (**405 libraries / 28,213 exports**) and twice-included standalone Linux C++20/-Werror umbrella compile pass. - Exact `python3 tools/pr_overlap.py --branch feat/libressl3-signature-algorithms` exits **2**, not an automated pass: 1,730 open PRs, 32 shared candidates and **19** reported peers. All 19 were freshly verified open/current. Full/shared patches and every merge base were retained; all 20 shared merge-base payloads, including both for #13486, match the previously reviewed baseline. Ten base-conflicted peers were manually compared through those verified payloads. No duplicate selected export or runtime prerequisite; shared CMake/debt integration order remains declared above. These are focused real-module tests, not independent native Windows, full-product, packaged module/NID (including protocol-NID), title/homebrew or physical-console validation. Separate error-string fixtures were not run; the default-off upstream oracle was not enabled. Known unrelated Wine failures outside this selection are not claimed fixed. No assertion, timeout, workflow gate or runtime workaround was weakened. Warnings remain. Current remote success on the previous head is not validation or approval of this new fix; no new-head native CI claim is made. Current reproduction scripts, manifests, complete logs/JUnit, 86 artifact hashes, old-module controls and fresh peer snapshots are retained in `/private/tmp/anyps5-monitor-20261103-1228` (`reproduce.txt`, `validation-evidence.tar.gz`, `manual-shared-review.txt`, `peers-final`). Original primary references and historical validation remain in `/private/tmp/anyps5-advance-20261103-0127`. </details> ### 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: #15119 <!-- #PR, or none --> - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: n/a <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes <!-- yes / no --> <details> <summary>Overlap report before the branch refresh was pushed</summary> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 14366](https://www.github.com/boykopovar/AnyPS5/pull/14366) | `docs/dev/debt/libSceLibreSsl3.md` [L35](https://github.com/boykopovar/AnyPS5/blob/7ad9749ed0311cc91d69bc7c690d09c92b9d42d0/docs/dev/debt/libSceLibreSsl3.md#L35), [L215](https://github.com/boykopovar/AnyPS5/blob/7ad9749ed0311cc91d69bc7c690d09c92b9d42d0/docs/dev/debt/libSceLibreSsl3.md#L215) | | | | [PR 14889](https://www.github.com/boykopovar/AnyPS5/pull/14889) | `docs/dev/debt/libSceLibreSsl3.md` [L35](https://github.com/boykopovar/AnyPS5/blob/7ad9749ed0311cc91d69bc7c690d09c92b9d42d0/docs/dev/debt/libSceLibreSsl3.md#L35), [L215](https://github.com/boykopovar/AnyPS5/blob/7ad9749ed0311cc91d69bc7c690d09c92b9d42d0/docs/dev/debt/libSceLibreSsl3.md#L215) | | | | [PR 14890](https://www.github.com/boykopovar/AnyPS5/pull/14890) | `docs/dev/debt/libSceLibreSsl3.md` [L32](https://github.com/boykopovar/AnyPS5/blob/7ad9749ed0311cc91d69bc7c690d09c92b9d42d0/docs/dev/debt/libSceLibreSsl3.md#L32), [L35](https://github.com/boykopovar/AnyPS5/blob/7ad9749ed0311cc91d69bc7c690d09c92b9d42d0/docs/dev/debt/libSceLibreSsl3.md#L35), [L215](https://github.com/boykopovar/AnyPS5/blob/7ad9749ed0311cc91d69bc7c690d09c92b9d42d0/docs/dev/debt/libSceLibreSsl3.md#L215) | | | | [PR 15289](https://www.github.com/boykopovar/AnyPS5/pull/15289) | `docs/dev/debt/libSceLibreSsl3.md` [L35](https://github.com/boykopovar/AnyPS5/blob/7ad9749ed0311cc91d69bc7c690d09c92b9d42d0/docs/dev/debt/libSceLibreSsl3.md#L35) | | | | [PR 15303](https://www.github.com/boykopovar/AnyPS5/pull/15303) | `docs/dev/debt/libSceLibreSsl3.md` [L35](https://github.com/boykopovar/AnyPS5/blob/7ad9749ed0311cc91d69bc7c690d09c92b9d42d0/docs/dev/debt/libSceLibreSsl3.md#L35) | | | | [PR 15406](https://www.github.com/boykopovar/AnyPS5/pull/15406) | | `OBJ_find_sigid_algs` | `core/libs/prx/libSceLibreSsl3/src/SignatureAlgorithms.cpp`<br>`core/libs/prx/libSceLibreSsl3/tests/SignatureAlgorithms.cpp` | | [PR 15449](https://www.github.com/boykopovar/AnyPS5/pull/15449) | `docs/dev/debt/libSceLibreSsl3.md` [L35](https://github.com/boykopovar/AnyPS5/blob/7ad9749ed0311cc91d69bc7c690d09c92b9d42d0/docs/dev/debt/libSceLibreSsl3.md#L35), [L215](https://github.com/boykopovar/AnyPS5/blob/7ad9749ed0311cc91d69bc7c690d09c92b9d42d0/docs/dev/debt/libSceLibreSsl3.md#L215) | | | | [PR 15514](https://www.github.com/boykopovar/AnyPS5/pull/15514) | `docs/dev/debt/libSceLibreSsl3.md` [L35](https://github.com/boykopovar/AnyPS5/blob/7ad9749ed0311cc91d69bc7c690d09c92b9d42d0/docs/dev/debt/libSceLibreSsl3.md#L35) | | | | [PR 15591](https://www.github.com/boykopovar/AnyPS5/pull/15591) | `docs/dev/debt/libSceLibreSsl3.md` [L35](https://github.com/boykopovar/AnyPS5/blob/7ad9749ed0311cc91d69bc7c690d09c92b9d42d0/docs/dev/debt/libSceLibreSsl3.md#L35) | | | | [PR 15628](https://www.github.com/boykopovar/AnyPS5/pull/15628) | `docs/dev/debt/libSceLibreSsl3.md` [L31-32](https://github.com/boykopovar/AnyPS5/blob/7ad9749ed0311cc91d69bc7c690d09c92b9d42d0/docs/dev/debt/libSceLibreSsl3.md#L31-L32), [L35](https://github.com/boykopovar/AnyPS5/blob/7ad9749ed0311cc91d69bc7c690d09c92b9d42d0/docs/dev/debt/libSceLibreSsl3.md#L35) | | | | [PR 15826](https://www.github.com/boykopovar/AnyPS5/pull/15826) | `docs/dev/debt/libSceLibreSsl3.md` [L35](https://github.com/boykopovar/AnyPS5/blob/7ad9749ed0311cc91d69bc7c690d09c92b9d42d0/docs/dev/debt/libSceLibreSsl3.md#L35) | | | | [PR 15831](https://www.github.com/boykopovar/AnyPS5/pull/15831) | `core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp` [L610-618](https://github.com/boykopovar/AnyPS5/blob/7ad9749ed0311cc91d69bc7c690d09c92b9d42d0/core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp#L610-L618)<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp` [L279-280](https://github.com/boykopovar/AnyPS5/blob/7ad9749ed0311cc91d69bc7c690d09c92b9d42d0/core/libs/prx/libSceLibreSsl3/include/Api.hpp#L279-L280)<br>`docs/dev/debt/libSceLibreSsl3.md` [L35](https://github.com/boykopovar/AnyPS5/blob/7ad9749ed0311cc91d69bc7c690d09c92b9d42d0/docs/dev/debt/libSceLibreSsl3.md#L35), [L180-181](https://github.com/boykopovar/AnyPS5/blob/7ad9749ed0311cc91d69bc7c690d09c92b9d42d0/docs/dev/debt/libSceLibreSsl3.md#L180-L181) | | | | [PR 15854](https://www.github.com/boykopovar/AnyPS5/pull/15854) | `docs/dev/debt/libSceLibreSsl3.md` [L35](https://github.com/boykopovar/AnyPS5/blob/7ad9749ed0311cc91d69bc7c690d09c92b9d42d0/docs/dev/debt/libSceLibreSsl3.md#L35) | | | Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 10452](https://www.github.com/boykopovar/AnyPS5/pull/10452) | `core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 10461](https://www.github.com/boykopovar/AnyPS5/pull/10461) | `core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 10490](https://www.github.com/boykopovar/AnyPS5/pull/10490) | `core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 10491](https://www.github.com/boykopovar/AnyPS5/pull/10491) | `core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 10493](https://www.github.com/boykopovar/AnyPS5/pull/10493) | `core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 10631](https://www.github.com/boykopovar/AnyPS5/pull/10631) | `core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 11146](https://www.github.com/boykopovar/AnyPS5/pull/11146) | `core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 12315](https://www.github.com/boykopovar/AnyPS5/pull/12315) | `core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 12754](https://www.github.com/boykopovar/AnyPS5/pull/12754) | `core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 12928](https://www.github.com/boykopovar/AnyPS5/pull/12928) | `core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 13486](https://www.github.com/boykopovar/AnyPS5/pull/13486) | `core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp`<br>`core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 14212](https://www.github.com/boykopovar/AnyPS5/pull/14212) | `docs/dev/debt/libSceLibreSsl3.md` | | [PR 14499](https://www.github.com/boykopovar/AnyPS5/pull/14499) | `core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 14612](https://www.github.com/boykopovar/AnyPS5/pull/14612) | `core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp`<br>`core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 14992](https://www.github.com/boykopovar/AnyPS5/pull/14992) | `core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp`<br>`core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 15031](https://www.github.com/boykopovar/AnyPS5/pull/15031) | `core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp`<br>`core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 15045](https://www.github.com/boykopovar/AnyPS5/pull/15045) | `core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp`<br>`core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 15119](https://www.github.com/boykopovar/AnyPS5/pull/15119) | `core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp`<br>`core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 15163](https://www.github.com/boykopovar/AnyPS5/pull/15163) | `core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 15406](https://www.github.com/boykopovar/AnyPS5/pull/15406) | `core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp`<br>`core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`core/libs/prx/libSceLibreSsl3/src/SignatureAlgorithms.cpp`<br>`core/libs/prx/libSceLibreSsl3/tests/SignatureAlgorithms.cpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 15544](https://www.github.com/boykopovar/AnyPS5/pull/15544) | `core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp`<br>`core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 15599](https://www.github.com/boykopovar/AnyPS5/pull/15599) | `core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 15601](https://www.github.com/boykopovar/AnyPS5/pull/15601) | `core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 15631](https://www.github.com/boykopovar/AnyPS5/pull/15631) | `core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp`<br>`core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 15737](https://www.github.com/boykopovar/AnyPS5/pull/15737) | `core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 15758](https://www.github.com/boykopovar/AnyPS5/pull/15758) | `core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp`<br>`core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 15760](https://www.github.com/boykopovar/AnyPS5/pull/15760) | `core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp`<br>`core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 15761](https://www.github.com/boykopovar/AnyPS5/pull/15761) | `core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp`<br>`core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 15765](https://www.github.com/boykopovar/AnyPS5/pull/15765) | `core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp`<br>`core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 15770](https://www.github.com/boykopovar/AnyPS5/pull/15770) | `core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp`<br>`core/libs/prx/libSceLibreSsl3/CMakeLists.txt`<br>`core/libs/prx/libSceLibreSsl3/include/Api.hpp`<br>`docs/dev/debt/libSceLibreSsl3.md` | | [PR 15899](https://www.github.com/boykopovar/AnyPS5/pull/15899) | `core/libs/prx/libSceLibreSsl3/CMakeLists.txt` | </details>
MarcZX10 commented 2026-11-03 05:58:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-03T05:58:08Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The current implementation can report a built-in signature mapping for an unrelated custom object ID allocated by the same LibreSSL object registry.

What I ran

Reviewed all six changed files at head 03c55fc1dc98f97ec23cef6f24a17a2ef455a761 against base d1ae628bc2f62459cce1e9872ba5632c938c71f2; the stack preview is clean against that base. The PR declares the landing order #14992 → #15031 → #15045 → #15119 → #15406; those dependency heads are not included, so preserve the order and reassess integration as they land. Environment: Debian Linux x86_64, Python 3.11.2, Git 2.39.5. I did not build or run CTest. I independently compared all 51 mapping rows with the pinned LibreSSL 4.0.0 source.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15406
git diff --check d1ae628bc2f62459cce1e9872ba5632c938c71f2...03c55fc1dc98f97ec23cef6f24a17a2ef455a761
python3 tools/pr_stack_check.py 15406 --repo boykopovar/AnyPS5
curl -fsSL https://raw.githubusercontent.com/libressl/openbsd/ce488b78e0bd994780569df718596b9776ff681a/src/lib/libcrypto/objects/obj_xref.c -o /tmp/obj_xref.c
curl -fsSL https://raw.githubusercontent.com/libressl/openbsd/ce488b78e0bd994780569df718596b9776ff681a/src/lib/libcrypto/objects/obj_mac.num -o /tmp/obj_mac.num
python3 /tmp/verify-15406-mapping.py
gh pr checks 15406 --repo boykopovar/AnyPS5

Results

Check Result Note
Diff and conventions passed Exact-head checks passed.
Mapping-table comparison passed All 51 rows match the pinned source.
Merge preview passed Clean against current main.
Hosted checks not run Six jobs are queued on this head.
Local build and CTest not run No build was run.
ABI/test-quality helpers failed Optional scripts are absent from the isolated head.
Precheck output and mapping comparison
| Check | Status | Command / reason |
|---|---|---|
| build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` |
| diff_check | passed | `git diff --check d1ae628bc2f62459cce1e9872ba5632c938c71f2...03c55fc1dc98f97ec23cef6f24a17a2ef455a761` |
| conventions_and_pr_template | passed | `/usr/bin/python3 tools/check_conventions.py --base d1ae628bc2f62459cce1e9872ba5632c938c71f2 --head 03c55fc1dc98f97ec23cef6f24a17a2ef455a761 --title feat(libSceLibreSsl3): implement signature algorithm lookup --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-03c55fc1dc98/pr-body.md` |
| changed_export_abi_audit | failed | `/usr/bin/python3 tools/pr_abi_audit.py --base d1ae628bc2f62459cce1e9872ba5632c938c71f2 --head 03c55fc1dc98f97ec23cef6f24a17a2ef455a761 --json` |
| python_syntax | not_applicable | `No changed Python implementation files.` |
| related_python_unit_tests | not_applicable | `No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.` |
| python_test_registration | not_applicable | `No changed test_*.py files.` |
| live_dependency_and_mergeability_check | passed | `/usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 15406 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-03c55fc1dc98/stack` |
| build_dependent_cpp_tests | not_applicable | `Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.` |
| test_quality_heuristics | failed | `/usr/bin/python3 /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-03c55fc1dc98/head-03c55fc1dc98-02deaeb1/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-03c55fc1dc98/head-03c55fc1dc98-02deaeb1 --json core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp core/libs/prx/libSceLibreSsl3/CMakeLists.txt core/libs/prx/libSceLibreSsl3/include/Api.hpp core/libs/prx/libSceLibreSsl3/src/SignatureAlgorithms.cpp core/libs/prx/libSceLibreSsl3/tests/SignatureAlgorithms.cpp docs/dev/debt/libSceLibreSsl3.md` |
| negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` |

All conventions checks passed.
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-03c55fc1dc98/head-03c55fc1dc98-02deaeb1/tools/pr_abi_audit.py': [Errno 2] No such file or directory
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-03c55fc1dc98/head-03c55fc1dc98-02deaeb1/tools/pr_test_quality.py': [Errno 2] No such file or directory
reference rows: 51
production rows: 51
production mapping equals pinned LibreSSL mapping: True
production keys sorted and unique: True
conventions\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41586481373/job/125753064360
eligibility\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41586482486/job/125753066722
intake\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41586481375/job/125753064442
labels\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41586481363/job/125753064215
library-portability\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41586482458/job/125753066483
report\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41586482514/job/125753066470

Negative control

Assertion Code change Test result
A dynamically allocated ID colliding with a table key remains unmapped. None; no runtime mutation was performed. Not exercised.

Findings

Blocking

  • Custom object NID collision produces a false signature match. OBJ_create_nid_postfix starts allocating at NID 956, and the LibreSSL 3 forwarding export routes OBJ_create to that registry. After 25 custom registrations, the returned NID is 980. The new table contains 980 and the lookup returns success with digest NID 64 and key NID 990, even though that value identifies a custom object in this runtime. This can make callers treat an unrelated custom signature object as a DH signature algorithm. Reconcile the table with the target registry's built-in NID range (or otherwise make static and dynamic NIDs distinguishable), and add a regression that creates enough custom objects to reach a mapped value such as 980 and verifies that lookup does not return the unrelated built-in mapping.

Non-blocking

The 51 rows match the pinned LibreSSL reference, but that establishes source-table parity only; the compatibility issue above arises from AnyPS5's forwarded dynamic object registry.

Sources

Not verified

No local build, CTest, module runtime test, Linux or Windows integration run, title/homebrew behavior, or console behavior was verified. The PR body reports extensive Linux and Windows focused testing; I did not independently reproduce those runs. The six hosted jobs, including intake and conventions, remain queued. The optional lexical ABI and test-quality helpers were unavailable in the isolated head.

To get this to a good state

Make dynamic IDs disjoint from the lookup table or exclude mappings that can alias runtime-created IDs, then add the OBJ_create collision regression. On the new head, rerun the convention and overlap checks, the signature-algorithm CTest, and the hosted jobs; I will recheck the exact new head and results.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5747815079 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15406#pullrequestreview-5747815079). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-03T05:58:08Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The current implementation can report a built-in signature mapping for an unrelated custom object ID allocated by the same LibreSSL object registry. ## What I ran Reviewed all six changed files at head `03c55fc1dc98f97ec23cef6f24a17a2ef455a761` against base `d1ae628bc2f62459cce1e9872ba5632c938c71f2`; the stack preview is clean against that base. The PR declares the landing order #14992 → #15031 → #15045 → #15119 → #15406; those dependency heads are not included, so preserve the order and reassess integration as they land. Environment: Debian Linux x86_64, Python 3.11.2, Git 2.39.5. I did not build or run CTest. I independently compared all 51 mapping rows with the pinned LibreSSL 4.0.0 source. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15406 git diff --check d1ae628bc2f62459cce1e9872ba5632c938c71f2...03c55fc1dc98f97ec23cef6f24a17a2ef455a761 python3 tools/pr_stack_check.py 15406 --repo boykopovar/AnyPS5 curl -fsSL https://raw.githubusercontent.com/libressl/openbsd/ce488b78e0bd994780569df718596b9776ff681a/src/lib/libcrypto/objects/obj_xref.c -o /tmp/obj_xref.c curl -fsSL https://raw.githubusercontent.com/libressl/openbsd/ce488b78e0bd994780569df718596b9776ff681a/src/lib/libcrypto/objects/obj_mac.num -o /tmp/obj_mac.num python3 /tmp/verify-15406-mapping.py gh pr checks 15406 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | Note | |---|---|---| | Diff and conventions | passed | Exact-head checks passed. | | Mapping-table comparison | passed | All 51 rows match the pinned source. | | Merge preview | passed | Clean against current `main`. | | Hosted checks | not run | Six jobs are queued on this head. | | Local build and CTest | not run | No build was run. | | ABI/test-quality helpers | failed | Optional scripts are absent from the isolated head. | <details> <summary>Precheck output and mapping comparison</summary> ```text | Check | Status | Command / reason | |---|---|---| | build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` | | diff_check | passed | `git diff --check d1ae628bc2f62459cce1e9872ba5632c938c71f2...03c55fc1dc98f97ec23cef6f24a17a2ef455a761` | | conventions_and_pr_template | passed | `/usr/bin/python3 tools/check_conventions.py --base d1ae628bc2f62459cce1e9872ba5632c938c71f2 --head 03c55fc1dc98f97ec23cef6f24a17a2ef455a761 --title feat(libSceLibreSsl3): implement signature algorithm lookup --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-03c55fc1dc98/pr-body.md` | | changed_export_abi_audit | failed | `/usr/bin/python3 tools/pr_abi_audit.py --base d1ae628bc2f62459cce1e9872ba5632c938c71f2 --head 03c55fc1dc98f97ec23cef6f24a17a2ef455a761 --json` | | python_syntax | not_applicable | `No changed Python implementation files.` | | related_python_unit_tests | not_applicable | `No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.` | | python_test_registration | not_applicable | `No changed test_*.py files.` | | live_dependency_and_mergeability_check | passed | `/usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 15406 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-03c55fc1dc98/stack` | | build_dependent_cpp_tests | not_applicable | `Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.` | | test_quality_heuristics | failed | `/usr/bin/python3 /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-03c55fc1dc98/head-03c55fc1dc98-02deaeb1/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-03c55fc1dc98/head-03c55fc1dc98-02deaeb1 --json core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp core/libs/prx/libSceLibreSsl3/CMakeLists.txt core/libs/prx/libSceLibreSsl3/include/Api.hpp core/libs/prx/libSceLibreSsl3/src/SignatureAlgorithms.cpp core/libs/prx/libSceLibreSsl3/tests/SignatureAlgorithms.cpp docs/dev/debt/libSceLibreSsl3.md` | | negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` | ``` ```text All conventions checks passed. ``` ```text /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-03c55fc1dc98/head-03c55fc1dc98-02deaeb1/tools/pr_abi_audit.py': [Errno 2] No such file or directory /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-03c55fc1dc98/head-03c55fc1dc98-02deaeb1/tools/pr_test_quality.py': [Errno 2] No such file or directory ``` ```text reference rows: 51 production rows: 51 production mapping equals pinned LibreSSL mapping: True production keys sorted and unique: True ``` ```text conventions\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41586481373/job/125753064360 eligibility\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41586482486/job/125753066722 intake\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41586481375/job/125753064442 labels\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41586481363/job/125753064215 library-portability\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41586482458/job/125753066483 report\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41586482514/job/125753066470 ``` </details> ## Negative control | Assertion | Code change | Test result | |---|---|---| | A dynamically allocated ID colliding with a table key remains unmapped. | None; no runtime mutation was performed. | Not exercised. | ## Findings ### Blocking - **Custom object NID collision produces a false signature match.** `OBJ_create_nid_postfix` starts allocating at NID 956, and the LibreSSL 3 forwarding export routes `OBJ_create` to that registry. After 25 custom registrations, the returned NID is 980. The new table contains 980 and the lookup returns success with digest NID 64 and key NID 990, even though that value identifies a custom object in this runtime. This can make callers treat an unrelated custom signature object as a DH signature algorithm. Reconcile the table with the target registry's built-in NID range (or otherwise make static and dynamic NIDs distinguishable), and add a regression that creates enough custom objects to reach a mapped value such as 980 and verifies that lookup does not return the unrelated built-in mapping. ### Non-blocking The 51 rows match the pinned LibreSSL reference, but that establishes source-table parity only; the compatibility issue above arises from AnyPS5's forwarded dynamic object registry. ## Sources - [New lookup table and result behavior at this head](https://github.com/boykopovar/AnyPS5/blob/03c55fc1dc98f97ec23cef6f24a17a2ef455a761/core/libs/prx/libSceLibreSsl3/src/SignatureAlgorithms.cpp#L40-L75) - [Parent object registry starts dynamic NIDs at 956](https://github.com/boykopovar/AnyPS5/blob/03c55fc1dc98f97ec23cef6f24a17a2ef455a761/core/libs/prx/libSceLibreSsl/include/ObjectTable.hpp#L6) and [increments them in OBJ_create](https://github.com/boykopovar/AnyPS5/blob/03c55fc1dc98f97ec23cef6f24a17a2ef455a761/core/libs/prx/libSceLibreSsl/src/ObjectCreate.cpp#L93-L96) - [LibreSSL 3 forwards OBJ_create to the parent registry](https://github.com/boykopovar/AnyPS5/blob/03c55fc1dc98f97ec23cef6f24a17a2ef455a761/core/libs/prx/libSceLibreSsl3/ParentExports.cpp#L564-L565) - [Existing tests confirm dynamic IDs are returned consecutively](https://github.com/boykopovar/AnyPS5/blob/03c55fc1dc98f97ec23cef6f24a17a2ef455a761/core/libs/prx/libSceLibreSsl/tests/ObjectText.cpp#L149-L158) - [Pinned LibreSSL 4.0.0 signature triples](https://github.com/libressl/openbsd/blob/ce488b78e0bd994780569df718596b9776ff681a/src/lib/libcrypto/objects/obj_xref.c#L26-L311) ## Not verified No local build, CTest, module runtime test, Linux or Windows integration run, title/homebrew behavior, or console behavior was verified. The PR body reports extensive Linux and Windows focused testing; I did not independently reproduce those runs. The six hosted jobs, including intake and conventions, remain queued. The optional lexical ABI and test-quality helpers were unavailable in the isolated head. ## To get this to a good state Make dynamic IDs disjoint from the lookup table or exclude mappings that can alias runtime-created IDs, then add the `OBJ_create` collision regression. On the new head, rerun the convention and overlap checks, the signature-algorithm CTest, and the hosted jobs; I will recheck the exact new head and results.
MarcZX10 commented 2026-11-03 05:58:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-03T05:58:11Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The current implementation can report a built-in signature mapping for an unrelated custom object ID allocated by the same LibreSSL object registry.

What I ran

Reviewed all six changed files at head 03c55fc1dc98f97ec23cef6f24a17a2ef455a761 against base d1ae628bc2f62459cce1e9872ba5632c938c71f2; the stack preview is clean against that base. The PR declares the landing order #14992 → #15031 → #15045 → #15119 → #15406; those dependency heads are not included, so preserve the order and reassess integration as they land. Environment: Debian Linux x86_64, Python 3.11.2, Git 2.39.5. I did not build or run CTest. I independently compared all 51 mapping rows with the pinned LibreSSL 4.0.0 source.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15406
git diff --check d1ae628bc2f62459cce1e9872ba5632c938c71f2...03c55fc1dc98f97ec23cef6f24a17a2ef455a761
python3 tools/pr_stack_check.py 15406 --repo boykopovar/AnyPS5
curl -fsSL https://raw.githubusercontent.com/libressl/openbsd/ce488b78e0bd994780569df718596b9776ff681a/src/lib/libcrypto/objects/obj_xref.c -o /tmp/obj_xref.c
curl -fsSL https://raw.githubusercontent.com/libressl/openbsd/ce488b78e0bd994780569df718596b9776ff681a/src/lib/libcrypto/objects/obj_mac.num -o /tmp/obj_mac.num
python3 /tmp/verify-15406-mapping.py
gh pr checks 15406 --repo boykopovar/AnyPS5

Results

Check Result Note
Diff and conventions passed Exact-head checks passed.
Mapping-table comparison passed All 51 rows match the pinned source.
Merge preview passed Clean against current main.
Hosted checks not run Six jobs are queued on this head.
Local build and CTest not run No build was run.
ABI/test-quality helpers failed Optional scripts are absent from the isolated head.
Precheck output and mapping comparison
| Check | Status | Command / reason |
|---|---|---|
| build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` |
| diff_check | passed | `git diff --check d1ae628bc2f62459cce1e9872ba5632c938c71f2...03c55fc1dc98f97ec23cef6f24a17a2ef455a761` |
| conventions_and_pr_template | passed | `/usr/bin/python3 tools/check_conventions.py --base d1ae628bc2f62459cce1e9872ba5632c938c71f2 --head 03c55fc1dc98f97ec23cef6f24a17a2ef455a761 --title feat(libSceLibreSsl3): implement signature algorithm lookup --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-03c55fc1dc98/pr-body.md` |
| changed_export_abi_audit | failed | `/usr/bin/python3 tools/pr_abi_audit.py --base d1ae628bc2f62459cce1e9872ba5632c938c71f2 --head 03c55fc1dc98f97ec23cef6f24a17a2ef455a761 --json` |
| python_syntax | not_applicable | `No changed Python implementation files.` |
| related_python_unit_tests | not_applicable | `No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.` |
| python_test_registration | not_applicable | `No changed test_*.py files.` |
| live_dependency_and_mergeability_check | passed | `/usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 15406 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-03c55fc1dc98/stack` |
| build_dependent_cpp_tests | not_applicable | `Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.` |
| test_quality_heuristics | failed | `/usr/bin/python3 /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-03c55fc1dc98/head-03c55fc1dc98-02deaeb1/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-03c55fc1dc98/head-03c55fc1dc98-02deaeb1 --json core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp core/libs/prx/libSceLibreSsl3/CMakeLists.txt core/libs/prx/libSceLibreSsl3/include/Api.hpp core/libs/prx/libSceLibreSsl3/src/SignatureAlgorithms.cpp core/libs/prx/libSceLibreSsl3/tests/SignatureAlgorithms.cpp docs/dev/debt/libSceLibreSsl3.md` |
| negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` |

All conventions checks passed.
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-03c55fc1dc98/head-03c55fc1dc98-02deaeb1/tools/pr_abi_audit.py': [Errno 2] No such file or directory
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-03c55fc1dc98/head-03c55fc1dc98-02deaeb1/tools/pr_test_quality.py': [Errno 2] No such file or directory
reference rows: 51
production rows: 51
production mapping equals pinned LibreSSL mapping: True
production keys sorted and unique: True
conventions\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41586481373/job/125753064360
eligibility\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41586482486/job/125753066722
intake\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41586481375/job/125753064442
labels\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41586481363/job/125753064215
library-portability\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41586482458/job/125753066483
report\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41586482514/job/125753066470

Negative control

Assertion Code change Test result
A dynamically allocated ID colliding with a table key remains unmapped. None; no runtime mutation was performed. Not exercised.

Findings

Blocking

  • Custom object NID collision produces a false signature match. OBJ_create_nid_postfix starts allocating at NID 956, and the LibreSSL 3 forwarding export routes OBJ_create to that registry. After 25 custom registrations, the returned NID is 980. The new table contains 980 and the lookup returns success with digest NID 64 and key NID 990, even though that value identifies a custom object in this runtime. This can make callers treat an unrelated custom signature object as a DH signature algorithm. Reconcile the table with the target registry's built-in NID range (or otherwise make static and dynamic NIDs distinguishable), and add a regression that creates enough custom objects to reach a mapped value such as 980 and verifies that lookup does not return the unrelated built-in mapping.

Non-blocking

The 51 rows match the pinned LibreSSL reference, but that establishes source-table parity only; the compatibility issue above arises from AnyPS5's forwarded dynamic object registry.

Sources

Not verified

No local build, CTest, module runtime test, Linux or Windows integration run, title/homebrew behavior, or console behavior was verified. The PR body reports extensive Linux and Windows focused testing; I did not independently reproduce those runs. The six hosted jobs, including intake and conventions, remain queued. The optional lexical ABI and test-quality helpers were unavailable in the isolated head.

To get this to a good state

Make dynamic IDs disjoint from the lookup table or exclude mappings that can alias runtime-created IDs, then add the OBJ_create collision regression. On the new head, rerun the convention and overlap checks, the signature-algorithm CTest, and the hosted jobs; I will recheck the exact new head and results.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5747815397 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15406#pullrequestreview-5747815397). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-03T05:58:11Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The current implementation can report a built-in signature mapping for an unrelated custom object ID allocated by the same LibreSSL object registry. ## What I ran Reviewed all six changed files at head `03c55fc1dc98f97ec23cef6f24a17a2ef455a761` against base `d1ae628bc2f62459cce1e9872ba5632c938c71f2`; the stack preview is clean against that base. The PR declares the landing order #14992 → #15031 → #15045 → #15119 → #15406; those dependency heads are not included, so preserve the order and reassess integration as they land. Environment: Debian Linux x86_64, Python 3.11.2, Git 2.39.5. I did not build or run CTest. I independently compared all 51 mapping rows with the pinned LibreSSL 4.0.0 source. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15406 git diff --check d1ae628bc2f62459cce1e9872ba5632c938c71f2...03c55fc1dc98f97ec23cef6f24a17a2ef455a761 python3 tools/pr_stack_check.py 15406 --repo boykopovar/AnyPS5 curl -fsSL https://raw.githubusercontent.com/libressl/openbsd/ce488b78e0bd994780569df718596b9776ff681a/src/lib/libcrypto/objects/obj_xref.c -o /tmp/obj_xref.c curl -fsSL https://raw.githubusercontent.com/libressl/openbsd/ce488b78e0bd994780569df718596b9776ff681a/src/lib/libcrypto/objects/obj_mac.num -o /tmp/obj_mac.num python3 /tmp/verify-15406-mapping.py gh pr checks 15406 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | Note | |---|---|---| | Diff and conventions | passed | Exact-head checks passed. | | Mapping-table comparison | passed | All 51 rows match the pinned source. | | Merge preview | passed | Clean against current `main`. | | Hosted checks | not run | Six jobs are queued on this head. | | Local build and CTest | not run | No build was run. | | ABI/test-quality helpers | failed | Optional scripts are absent from the isolated head. | <details> <summary>Precheck output and mapping comparison</summary> ```text | Check | Status | Command / reason | |---|---|---| | build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` | | diff_check | passed | `git diff --check d1ae628bc2f62459cce1e9872ba5632c938c71f2...03c55fc1dc98f97ec23cef6f24a17a2ef455a761` | | conventions_and_pr_template | passed | `/usr/bin/python3 tools/check_conventions.py --base d1ae628bc2f62459cce1e9872ba5632c938c71f2 --head 03c55fc1dc98f97ec23cef6f24a17a2ef455a761 --title feat(libSceLibreSsl3): implement signature algorithm lookup --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-03c55fc1dc98/pr-body.md` | | changed_export_abi_audit | failed | `/usr/bin/python3 tools/pr_abi_audit.py --base d1ae628bc2f62459cce1e9872ba5632c938c71f2 --head 03c55fc1dc98f97ec23cef6f24a17a2ef455a761 --json` | | python_syntax | not_applicable | `No changed Python implementation files.` | | related_python_unit_tests | not_applicable | `No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.` | | python_test_registration | not_applicable | `No changed test_*.py files.` | | live_dependency_and_mergeability_check | passed | `/usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 15406 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-03c55fc1dc98/stack` | | build_dependent_cpp_tests | not_applicable | `Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.` | | test_quality_heuristics | failed | `/usr/bin/python3 /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-03c55fc1dc98/head-03c55fc1dc98-02deaeb1/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-03c55fc1dc98/head-03c55fc1dc98-02deaeb1 --json core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp core/libs/prx/libSceLibreSsl3/CMakeLists.txt core/libs/prx/libSceLibreSsl3/include/Api.hpp core/libs/prx/libSceLibreSsl3/src/SignatureAlgorithms.cpp core/libs/prx/libSceLibreSsl3/tests/SignatureAlgorithms.cpp docs/dev/debt/libSceLibreSsl3.md` | | negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` | ``` ```text All conventions checks passed. ``` ```text /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-03c55fc1dc98/head-03c55fc1dc98-02deaeb1/tools/pr_abi_audit.py': [Errno 2] No such file or directory /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-03c55fc1dc98/head-03c55fc1dc98-02deaeb1/tools/pr_test_quality.py': [Errno 2] No such file or directory ``` ```text reference rows: 51 production rows: 51 production mapping equals pinned LibreSSL mapping: True production keys sorted and unique: True ``` ```text conventions\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41586481373/job/125753064360 eligibility\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41586482486/job/125753066722 intake\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41586481375/job/125753064442 labels\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41586481363/job/125753064215 library-portability\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41586482458/job/125753066483 report\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41586482514/job/125753066470 ``` </details> ## Negative control | Assertion | Code change | Test result | |---|---|---| | A dynamically allocated ID colliding with a table key remains unmapped. | None; no runtime mutation was performed. | Not exercised. | ## Findings ### Blocking - **Custom object NID collision produces a false signature match.** `OBJ_create_nid_postfix` starts allocating at NID 956, and the LibreSSL 3 forwarding export routes `OBJ_create` to that registry. After 25 custom registrations, the returned NID is 980. The new table contains 980 and the lookup returns success with digest NID 64 and key NID 990, even though that value identifies a custom object in this runtime. This can make callers treat an unrelated custom signature object as a DH signature algorithm. Reconcile the table with the target registry's built-in NID range (or otherwise make static and dynamic NIDs distinguishable), and add a regression that creates enough custom objects to reach a mapped value such as 980 and verifies that lookup does not return the unrelated built-in mapping. ### Non-blocking The 51 rows match the pinned LibreSSL reference, but that establishes source-table parity only; the compatibility issue above arises from AnyPS5's forwarded dynamic object registry. ## Sources - [New lookup table and result behavior at this head](https://github.com/boykopovar/AnyPS5/blob/03c55fc1dc98f97ec23cef6f24a17a2ef455a761/core/libs/prx/libSceLibreSsl3/src/SignatureAlgorithms.cpp#L40-L75) - [Parent object registry starts dynamic NIDs at 956](https://github.com/boykopovar/AnyPS5/blob/03c55fc1dc98f97ec23cef6f24a17a2ef455a761/core/libs/prx/libSceLibreSsl/include/ObjectTable.hpp#L6) and [increments them in OBJ_create](https://github.com/boykopovar/AnyPS5/blob/03c55fc1dc98f97ec23cef6f24a17a2ef455a761/core/libs/prx/libSceLibreSsl/src/ObjectCreate.cpp#L93-L96) - [LibreSSL 3 forwards OBJ_create to the parent registry](https://github.com/boykopovar/AnyPS5/blob/03c55fc1dc98f97ec23cef6f24a17a2ef455a761/core/libs/prx/libSceLibreSsl3/ParentExports.cpp#L564-L565) - [Existing tests confirm dynamic IDs are returned consecutively](https://github.com/boykopovar/AnyPS5/blob/03c55fc1dc98f97ec23cef6f24a17a2ef455a761/core/libs/prx/libSceLibreSsl/tests/ObjectText.cpp#L149-L158) - [Pinned LibreSSL 4.0.0 signature triples](https://github.com/libressl/openbsd/blob/ce488b78e0bd994780569df718596b9776ff681a/src/lib/libcrypto/objects/obj_xref.c#L26-L311) ## Not verified No local build, CTest, module runtime test, Linux or Windows integration run, title/homebrew behavior, or console behavior was verified. The PR body reports extensive Linux and Windows focused testing; I did not independently reproduce those runs. The six hosted jobs, including intake and conventions, remain queued. The optional lexical ABI and test-quality helpers were unavailable in the isolated head. ## To get this to a good state Make dynamic IDs disjoint from the lookup table or exclude mappings that can alias runtime-created IDs, then add the `OBJ_create` collision regression. On the new head, rerun the convention and overlap checks, the signature-algorithm CTest, and the hosted jobs; I will recheck the exact new head and results.
MarcZX10 commented 2026-11-03 07:31:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-03T07:31:59Z.

Review: APPROVED


Re-checked — new head, collision risk addressed

The new head prevents the shared custom-object allocator from making custom NIDs appear to be signature algorithms, and the current applicable hosted checks have passed.

What I ran

Reviewed all six changed files at head 24ac9f770105c98bc55a4584208e5d760e0af5b3 against base d1ae628bc2f62459cce1e9872ba5632c938c71f2. The current-base merge preview is clean. Environment: Debian Linux x86_64, Python 3.11.2, Git 2.39.5; no local C++ build was run.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15406
git diff --check d1ae628bc2f62459cce1e9872ba5632c938c71f2...24ac9f770105c98bc55a4584208e5d760e0af5b3
python3 tools/check_conventions.py --base d1ae628bc2f62459cce1e9872ba5632c938c71f2 --head 24ac9f770105c98bc55a4584208e5d760e0af5b3 --title 'feat(libSceLibreSsl3): implement signature algorithm lookup' --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-24ac9f770105/pr-body.md
python3 tools/pr_abi_audit.py --base d1ae628bc2f62459cce1e9872ba5632c938c71f2 --head 24ac9f770105c98bc55a4584208e5d760e0af5b3 --json
python3 tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-24ac9f770105/head-24ac9f770105-b9953454 --json core/libs/prx/libSceLibreSsl3/tests/SignatureAlgorithms.cpp
python3 tools/pr_stack_check.py 15406 --repo boykopovar/AnyPS5
gh pr checks 15406 -R boykopovar/AnyPS5

Results

Check Result Note
Diff and conventions passed Whitespace and repository conventions passed.
ABI audit passed No declaration/export findings.
Test registration passed The new C++ test is registered by add_test.
Test-quality heuristic failed It flags possible registration; direct CMake inspection confirms registration.
Current-base preview passed Clean; no declared dependency.
Hosted applicable checks passed Windows and policy checks passed.
Linux and specialized hosted jobs not applicable Skipped by the workflow for this change.
Local build and CTest not run The review pass did not compile the C++ change.
PS5 behavior not run No console or firmware test was available.
Precheck summary, heuristic output and hosted statuses

Precheck table excerpt:

| Check | Status | Command / reason |
|---|---|---|
| build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` |
| diff_check | passed | `git diff --check d1ae628bc2f62459cce1e9872ba5632c938c71f2...24ac9f770105c98bc55a4584208e5d760e0af5b3` |
| conventions_and_pr_template | passed | `/usr/bin/python3 tools/check_conventions.py --base d1ae628bc2f62459cce1e9872ba5632c938c71f2 --head 24ac9f770105c98bc55a4584208e5d760e0af5b3 --title feat(libSceLibreSsl3): implement signature algorithm lookup --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-24ac9f770105/pr-body.md` |
| changed_export_abi_audit | failed | `/usr/bin/python3 tools/pr_abi_audit.py --base d1ae628bc2f62459cce1e9872ba5632c938c71f2 --head 24ac9f770105c98bc55a4584208e5d760e0af5b3 --json` |
| python_syntax | not_applicable | `No changed Python implementation files.` |
| related_python_unit_tests | not_applicable | `No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.` |
| python_test_registration | not_applicable | `No changed test_*.py files.` |
| live_dependency_and_mergeability_check | passed | `/usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 15406 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-24ac9f770105/stack` |
| build_dependent_cpp_tests | not_applicable | `Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.` |
| test_quality_heuristics | failed | `/usr/bin/python3 /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-24ac9f770105/head-24ac9f770105-b9953454/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-24ac9f770105/head-24ac9f770105-b9953454 --json core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp core/libs/prx/libSceLibreSsl3/CMakeLists.txt core/libs/prx/libSceLibreSsl3/include/Api.hpp core/libs/prx/libSceLibreSsl3/src/SignatureAlgorithms.cpp core/libs/prx/libSceLibreSsl3/tests/SignatureAlgorithms.cpp docs/dev/debt/libSceLibreSsl3.md` |
| negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` |
ABI audit: passed
All conventions checks passed.

The isolated-snapshot helper errors were:

/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-24ac9f770105/head-24ac9f770105-b9953454/tools/pr_abi_audit.py': [Errno 2] No such file or directory
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-24ac9f770105/head-24ac9f770105-b9953454/tools/pr_test_quality.py': [Errno 2] No such file or directory
{
  "findings": [
    {
      "path": "core/libs/prx/libSceLibreSsl3/tests/SignatureAlgorithms.cpp",
      "line": 1,
      "kind": "possible-unregistered-cpp-test",
      "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."
    }
  ],
  "negative_control_candidates": [],
  "limits": [
    "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.",
    "A test that passes against base is not by itself proof that the PR test is inadequate.",
    "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error."
  ]
}

The CMake file explicitly adds tests/SignatureAlgorithms.cpp to guest_libressl3_signature_algorithms_tests and registers that executable with add_test.

conventions	pass	23s	https://github.com/boykopovar/AnyPS5/actions/runs/41595475531/job/125781891014
labels	pass	8s	https://github.com/boykopovar/AnyPS5/actions/runs/41595475655/job/125781755655
windows	pass	6m53s	https://github.com/boykopovar/AnyPS5/actions/runs/41595474068/job/125781733081
edge-watch	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41595474068/job/125781734578
linux	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41595474068/job/125781734887
register-context	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41595474068/job/125781734879
relinker	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41595474068/job/125781735335
relinker-asan	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41595474068/job/125781735015
write-watch	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41595474068/job/125781734817
eligibility	pass	4s	https://github.com/boykopovar/AnyPS5/actions/runs/41595474068/job/125781697555
library-portability	pass	1m32s	https://github.com/boykopovar/AnyPS5/actions/runs/41595474069/job/125781697545
report	pass	55s	https://github.com/boykopovar/AnyPS5/actions/runs/41595474202/job/125781697753

Negative control

I did not run a local C++ negative control because that requires building the test. The PR description reports the previous implementation's collision behavior; I did not independently reproduce that result.

Findings

Blocking

None found in the six files reviewed at this head. The previous review's false-match concern is addressed: the test allocates custom NIDs through the shared registry and confirms those IDs do not match the signature table.

Non-blocking

The implementation deliberately leaves 18 higher-ID LibreSSL 4.0.0 mappings unsupported because the shared object registry allocates custom IDs starting at 956. The PR records this limitation as debt; it returns no match for those IDs rather than misclassifying dynamically created custom objects. Console identifier coverage and certificate interoperability remain unverified.

Sources

Not verified

No local C++ build, local CTest, PS5 firmware behavior, console behavior, or negative control was verified. The workflow skipped Linux and specialized jobs. The PR's reported Linux test and negative-control runs are author-reported, not runs I performed.

To get this to a good state

No code change is requested for this reviewed head. The documented unsupported mappings and console-verification debt remain visible. If the head changes, I will review the new diff and rerun the applicable checks.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5748564309 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15406#pullrequestreview-5748564309). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-03T07:31:59Z. **Review:** APPROVED --- # Re-checked — new head, collision risk addressed The new head prevents the shared custom-object allocator from making custom NIDs appear to be signature algorithms, and the current applicable hosted checks have passed. ## What I ran Reviewed all six changed files at head `24ac9f770105c98bc55a4584208e5d760e0af5b3` against base `d1ae628bc2f62459cce1e9872ba5632c938c71f2`. The current-base merge preview is clean. Environment: Debian Linux x86_64, Python 3.11.2, Git 2.39.5; no local C++ build was run. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15406 git diff --check d1ae628bc2f62459cce1e9872ba5632c938c71f2...24ac9f770105c98bc55a4584208e5d760e0af5b3 python3 tools/check_conventions.py --base d1ae628bc2f62459cce1e9872ba5632c938c71f2 --head 24ac9f770105c98bc55a4584208e5d760e0af5b3 --title 'feat(libSceLibreSsl3): implement signature algorithm lookup' --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-24ac9f770105/pr-body.md python3 tools/pr_abi_audit.py --base d1ae628bc2f62459cce1e9872ba5632c938c71f2 --head 24ac9f770105c98bc55a4584208e5d760e0af5b3 --json python3 tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-24ac9f770105/head-24ac9f770105-b9953454 --json core/libs/prx/libSceLibreSsl3/tests/SignatureAlgorithms.cpp python3 tools/pr_stack_check.py 15406 --repo boykopovar/AnyPS5 gh pr checks 15406 -R boykopovar/AnyPS5 ``` ## Results | Check | Result | Note | |---|---|---| | Diff and conventions | passed | Whitespace and repository conventions passed. | | ABI audit | passed | No declaration/export findings. | | Test registration | passed | The new C++ test is registered by `add_test`. | | Test-quality heuristic | failed | It flags possible registration; direct CMake inspection confirms registration. | | Current-base preview | passed | Clean; no declared dependency. | | Hosted applicable checks | passed | Windows and policy checks passed. | | Linux and specialized hosted jobs | not applicable | Skipped by the workflow for this change. | | Local build and CTest | not run | The review pass did not compile the C++ change. | | PS5 behavior | not run | No console or firmware test was available. | <details> <summary>Precheck summary, heuristic output and hosted statuses</summary> Precheck table excerpt: ```text | Check | Status | Command / reason | |---|---|---| | build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` | | diff_check | passed | `git diff --check d1ae628bc2f62459cce1e9872ba5632c938c71f2...24ac9f770105c98bc55a4584208e5d760e0af5b3` | | conventions_and_pr_template | passed | `/usr/bin/python3 tools/check_conventions.py --base d1ae628bc2f62459cce1e9872ba5632c938c71f2 --head 24ac9f770105c98bc55a4584208e5d760e0af5b3 --title feat(libSceLibreSsl3): implement signature algorithm lookup --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-24ac9f770105/pr-body.md` | | changed_export_abi_audit | failed | `/usr/bin/python3 tools/pr_abi_audit.py --base d1ae628bc2f62459cce1e9872ba5632c938c71f2 --head 24ac9f770105c98bc55a4584208e5d760e0af5b3 --json` | | python_syntax | not_applicable | `No changed Python implementation files.` | | related_python_unit_tests | not_applicable | `No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.` | | python_test_registration | not_applicable | `No changed test_*.py files.` | | live_dependency_and_mergeability_check | passed | `/usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 15406 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-24ac9f770105/stack` | | build_dependent_cpp_tests | not_applicable | `Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.` | | test_quality_heuristics | failed | `/usr/bin/python3 /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-24ac9f770105/head-24ac9f770105-b9953454/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-24ac9f770105/head-24ac9f770105-b9953454 --json core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp core/libs/prx/libSceLibreSsl3/CMakeLists.txt core/libs/prx/libSceLibreSsl3/include/Api.hpp core/libs/prx/libSceLibreSsl3/src/SignatureAlgorithms.cpp core/libs/prx/libSceLibreSsl3/tests/SignatureAlgorithms.cpp docs/dev/debt/libSceLibreSsl3.md` | | negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` | ``` ```text ABI audit: passed All conventions checks passed. ``` The isolated-snapshot helper errors were: ```text /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-24ac9f770105/head-24ac9f770105-b9953454/tools/pr_abi_audit.py': [Errno 2] No such file or directory /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15406-24ac9f770105/head-24ac9f770105-b9953454/tools/pr_test_quality.py': [Errno 2] No such file or directory ``` ```json { "findings": [ { "path": "core/libs/prx/libSceLibreSsl3/tests/SignatureAlgorithms.cpp", "line": 1, "kind": "possible-unregistered-cpp-test", "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage." } ], "negative_control_candidates": [], "limits": [ "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.", "A test that passes against base is not by itself proof that the PR test is inadequate.", "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error." ] } ``` The CMake file explicitly adds `tests/SignatureAlgorithms.cpp` to `guest_libressl3_signature_algorithms_tests` and registers that executable with `add_test`. ```text conventions pass 23s https://github.com/boykopovar/AnyPS5/actions/runs/41595475531/job/125781891014 labels pass 8s https://github.com/boykopovar/AnyPS5/actions/runs/41595475655/job/125781755655 windows pass 6m53s https://github.com/boykopovar/AnyPS5/actions/runs/41595474068/job/125781733081 edge-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41595474068/job/125781734578 linux skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41595474068/job/125781734887 register-context skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41595474068/job/125781734879 relinker skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41595474068/job/125781735335 relinker-asan skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41595474068/job/125781735015 write-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41595474068/job/125781734817 eligibility pass 4s https://github.com/boykopovar/AnyPS5/actions/runs/41595474068/job/125781697555 library-portability pass 1m32s https://github.com/boykopovar/AnyPS5/actions/runs/41595474069/job/125781697545 report pass 55s https://github.com/boykopovar/AnyPS5/actions/runs/41595474202/job/125781697753 ``` </details> ## Negative control I did not run a local C++ negative control because that requires building the test. The PR description reports the previous implementation's collision behavior; I did not independently reproduce that result. ## Findings ### Blocking None found in the six files reviewed at this head. The previous review's false-match concern is addressed: the test allocates custom NIDs through the shared registry and confirms those IDs do not match the signature table. ### Non-blocking The implementation deliberately leaves 18 higher-ID LibreSSL 4.0.0 mappings unsupported because the shared object registry allocates custom IDs starting at 956. The PR records this limitation as debt; it returns no match for those IDs rather than misclassifying dynamically created custom objects. Console identifier coverage and certificate interoperability remain unverified. ## Sources - [Signature mapping implementation and output handling](https://github.com/boykopovar/AnyPS5/blob/24ac9f770105c98bc55a4584208e5d760e0af5b3/core/libs/prx/libSceLibreSsl3/src/SignatureAlgorithms.cpp#L9-L63) - [Custom-NID collision and output-guard tests](https://github.com/boykopovar/AnyPS5/blob/24ac9f770105c98bc55a4584208e5d760e0af5b3/core/libs/prx/libSceLibreSsl3/tests/SignatureAlgorithms.cpp#L80-L150) - [Test target and CTest registration](https://github.com/boykopovar/AnyPS5/blob/24ac9f770105c98bc55a4584208e5d760e0af5b3/core/libs/prx/libSceLibreSsl3/CMakeLists.txt#L113-L124) - [Documented unsupported mappings and verification debt](https://github.com/boykopovar/AnyPS5/blob/24ac9f770105c98bc55a4584208e5d760e0af5b3/docs/dev/debt/libSceLibreSsl3.md#L29) ## Not verified No local C++ build, local CTest, PS5 firmware behavior, console behavior, or negative control was verified. The workflow skipped Linux and specialized jobs. The PR's reported Linux test and negative-control runs are author-reported, not runs I performed. ## To get this to a good state No code change is requested for this reviewed head. The documented unsupported mappings and console-verification debt remain visible. If the head changes, I will review the new diff and rerun the applicable checks.
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!15406
No description provided.