Repository navigation
feat(libSceLibreSsl3): implement signature algorithm lookup - #15406
oneandonlydean merged 3 commits into
Conversation
MarcZX10
left a comment
There was a problem hiding this comment.
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/AnyPS5Results
| 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_postfixstarts allocating at NID 956, and the LibreSSL 3 forwarding export routesOBJ_createto 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
- Parent object registry starts dynamic NIDs at 956 and increments them in OBJ_create
- LibreSSL 3 forwards OBJ_create to the parent registry
- Existing tests confirm dynamic IDs are returned consecutively
- Pinned LibreSSL 4.0.0 signature triples
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
left a comment
There was a problem hiding this comment.
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/AnyPS5Results
| 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_postfixstarts allocating at NID 956, and the LibreSSL 3 forwarding export routesOBJ_createto 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
- Parent object registry starts dynamic NIDs at 956 and increments them in OBJ_create
- LibreSSL 3 forwards OBJ_create to the parent registry
- Existing tests confirm dynamic IDs are returned consecutively
- Pinned LibreSSL 4.0.0 signature triples
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
left a comment
There was a problem hiding this comment.
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/AnyPS5Results
| 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
- Signature mapping implementation and output handling
- Custom-NID collision and output-guard tests
- Test target and CTest registration
- Documented unsupported mappings and verification debt
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.
24ac9f7 to
673f399
Compare
|
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.
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.
|
Keep both test targets in libSceLibreSsl3/CMakeLists.txt and both debt entries; recount the callable-export lines on the merged tree: 145 callable exports (135 named, 10 known only by NID) and 102 of the 126 NID-only exports carrying a name. Fix-up on atharvjairath's change.
|
Hi @atharvjairath, Thanks for this. We added a merge of current main on your branch (99c15da) so it no longer conflicts: both test targets in |
What
OBJ_find_sigid_algsnow 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 numbersThe 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
673f3997b451against main6d173c1a1978.The earlier regression run on 24ac9f7 created 102 custom objects. Substituting the old 03c55fc LibreSSL3 binaries made that fixture fail at custom identifier 980 on both platforms. The source approval for the collision fix was on 24ac9f7. Earlier approval
Both loader runs printed
signature mappings: 15977 cases, 623311 checks, 33 mappings, 102 custom objects.Earlier validation on 24ac9f7 and the historical commits cited below
Exact current head
24ac9f770105c98bc55a4584208e5d760e0af5b3, on implementation head03c55fc1dc98f97ec23cef6f24a17a2ef455a761and tested maind1ae628bc2f62459cce1e9872ba5632c938c71f2. 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.OBJ_createallocations 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.python3 tools/pr_overlap.py --branch feat/libressl3-signature-algorithmsexits 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 fix(relinker): match AppContent utility import to provider #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
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)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.
main)docs/dev/debt/libSceLibreSsl3.mdL35, L215docs/dev/debt/libSceLibreSsl3.mdL35, L215docs/dev/debt/libSceLibreSsl3.mdL32, L35, L215docs/dev/debt/libSceLibreSsl3.mdL35docs/dev/debt/libSceLibreSsl3.mdL35OBJ_find_sigid_algscore/libs/prx/libSceLibreSsl3/src/SignatureAlgorithms.cppcore/libs/prx/libSceLibreSsl3/tests/SignatureAlgorithms.cppdocs/dev/debt/libSceLibreSsl3.mdL35, L215docs/dev/debt/libSceLibreSsl3.mdL35docs/dev/debt/libSceLibreSsl3.mdL35docs/dev/debt/libSceLibreSsl3.mdL31-32, L35docs/dev/debt/libSceLibreSsl3.mdL35core/libs/prx/libSceLibreSsl3/AdditionalExports.cppL610-618core/libs/prx/libSceLibreSsl3/include/Api.hppL279-280docs/dev/debt/libSceLibreSsl3.mdL35, L180-181docs/dev/debt/libSceLibreSsl3.mdL35Some 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.
core/libs/prx/libSceLibreSsl3/CMakeLists.txtcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/CMakeLists.txtcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/CMakeLists.txtcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/CMakeLists.txtcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/CMakeLists.txtcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/CMakeLists.txtcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/CMakeLists.txtdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/CMakeLists.txtcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/CMakeLists.txtcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/AdditionalExports.cppcore/libs/prx/libSceLibreSsl3/CMakeLists.txtcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mddocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/AdditionalExports.cppcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/AdditionalExports.cppcore/libs/prx/libSceLibreSsl3/CMakeLists.txtcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/AdditionalExports.cppcore/libs/prx/libSceLibreSsl3/CMakeLists.txtcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/AdditionalExports.cppcore/libs/prx/libSceLibreSsl3/CMakeLists.txtcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/AdditionalExports.cppcore/libs/prx/libSceLibreSsl3/CMakeLists.txtcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/AdditionalExports.cppcore/libs/prx/libSceLibreSsl3/CMakeLists.txtcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/AdditionalExports.cppcore/libs/prx/libSceLibreSsl3/CMakeLists.txtcore/libs/prx/libSceLibreSsl3/include/Api.hppcore/libs/prx/libSceLibreSsl3/src/SignatureAlgorithms.cppcore/libs/prx/libSceLibreSsl3/tests/SignatureAlgorithms.cppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/AdditionalExports.cppcore/libs/prx/libSceLibreSsl3/CMakeLists.txtcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/CMakeLists.txtcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/CMakeLists.txtdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/AdditionalExports.cppcore/libs/prx/libSceLibreSsl3/CMakeLists.txtcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/CMakeLists.txtcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/AdditionalExports.cppcore/libs/prx/libSceLibreSsl3/CMakeLists.txtcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/AdditionalExports.cppcore/libs/prx/libSceLibreSsl3/CMakeLists.txtcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/AdditionalExports.cppcore/libs/prx/libSceLibreSsl3/CMakeLists.txtcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/AdditionalExports.cppcore/libs/prx/libSceLibreSsl3/CMakeLists.txtcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/AdditionalExports.cppcore/libs/prx/libSceLibreSsl3/CMakeLists.txtcore/libs/prx/libSceLibreSsl3/include/Api.hppdocs/dev/debt/libSceLibreSsl3.mdcore/libs/prx/libSceLibreSsl3/CMakeLists.txt