Skip to content

feat(libSceLibreSsl): answer the ENGINE calls with an empty engine list - #10878

Merged
oneandonlydean merged 31 commits into
boykopovar:mainfrom
EagleBearerYS:feat/libressl-init-engine-calls
Nov 6, 2026
Merged

oneandonlydean merged 31 commits into
boykopovar:mainfrom
EagleBearerYS:feat/libressl-init-engine-calls

Conversation

@EagleBearerYS

@EagleBearerYS EagleBearerYS commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

What

Implements the 11 libSceLibreSsl ENGINE exports from LibreSSL 2.5.4, the version the module's other calls follow (firmware 13.40 measurements):

  • The 11 ENGINE calls answer for an empty engine list: both portable 2.5.4 builds define OPENSSL_NO_HW_PADLOCK, which removes the only built-in engine, and the module exports no call that adds one. ENGINE_get_first returns null, ENGINE_by_id pushes ENGINE_R_NO_SUCH_ENGINE, and a null engine (or command name) pushes ERR_R_PASSED_NULL_PARAMETER with function code 0xfff onto the existing error queue. A non-null engine throws.

UI_OpenSSL still throws. main now implements the other calls this paragraph named: SSL_library_init in LordVersA's #11662, UI_set_result, SSL_load_error_strings, OBJ_cleanup and PKCS12_PBE_add in #12601, and CRYPTO_cleanup_all_ex_data in #8826. This PR doesn't change them.

Related: #10475 (the configuration and algorithm registration calls, where the review asks for the same as the init calls here: throws until their 2.5.4 work is implemented), #10376 and #10486 (the UI objects UI_OpenSSL waits on), #9535, #9536 and #9571 (ERR_error_string, which would give the codes the ENGINE calls push their text).

Tested

  • GitHub's runners: run 40166519917: guest_libressl_error, guest_libressl_runtime and guest_libressl_x509_errors pass 10 of 10 on Linux and on Windows, 0 skipped.
  • Linux (Ubuntu 24.04, gcc 13.3, lavapipe), CI's flags and full ctest: 2,115 passed, 90 skipped, 5 failed, all IPv6-only socket tests that fail on that machine on main too.
  • guest_libressl_error covers every ENGINE call; against main's behaviour its 13 of 13 cases fail.
  • Not tested on a console.
  • c0c4c48, a merge of main 451e21f (run). main's feat(libSceLibreSsl): implement ASN.1 integer and string helpers #10005 and this PR both change the pending-exports count in docs/dev/debt/libSceLibreSsl.md; the merge counts what is left, 332, which is main's 348 less this PR's 16 and the number of calls in Export.cpp that still throw. It keeps this PR's ERR and ENGINE entries beside main's new ASN1 ones. The PR's code diff is unchanged. The guest_libressl tests and public_headers pass 10 runs in a row. Linux: 10 run, 10 pass, 0 skip, 0 fail. Windows: 10 run, 10 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (144 and 207) and on Windows (171 and 223). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 6415537, a merge of main e05ba6f (run). main's feat(libressl): implement cipher metadata queries #10071 and this PR both change the pending-exports count in the LibreSSL debt file. The merge counts what is left: Export.cpp now has 329 NotImplemented exports, main's 345 less this PR's 16, and nothing else conflicted. The guest_libressl tests and public_headers pass 10 runs in a row. Linux: 11 run, 11 pass, 0 skip, 0 fail. Windows: 11 run, 11 pass, 0 skip, 0 fail. The before arm, main with this PR's tests, doesn't build. Suites: libc and libkernel pass on Linux (144 and 207) and on Windows (171 and 223). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • Stock LibreSSL 2.5.4, by @ahmadmuj (review): a C probe linked statically against the portable 2.5.4 libcrypto.a and libssl.a, replaying this PR's ENGINE calls with the same arguments, gives every result its tests expect. ENGINE_get_first is null before and after ENGINE_load_builtin_engines and after ENGINE_cleanup, with no error; ENGINE_by_id gives null and one 0x26fff074 for dynamic, padlock, openssl and rdrand; a null id or engine for each call returns 0 or null and pushes exactly one 0x26fff043, as does ENGINE_ctrl_cmd with a null command name. The OpenBSD tree the debt entries link also builds without padlock (-DOPENSSL_NO_HW_PADLOCK), and padlock compiles only for i386, so no 2.5.4 build has a built-in engine on amd64. Not a console measurement: an engine Sony added would not show here. On 6415537 merged onto main a7a2eec, ctest -R guest_libressl passed 10 of 10.
  • 0631e0c and 0006af5, merges of main 2e1c722 and 8a29e08 (run). main's fix(libSceLibreSsl): follow LibreSSL 2.5.4 and 4.0.0 for null digest buffers and SHA-512/t lengths #10484 rewrote the digest entry next to the pending-exports count, and feat(libSceLibreSsl): implement the OCSP status and reason strings #9949 added Ocsp.cpp to the library's sources and its OCSP entry next to this PR's ENGINE entry; both merges keep both sides, and the ERR entry keeps this PR's sentence that the ENGINE calls are the only exports that add an error. The guest_libressl tests and public_headers pass 10 runs in a row. Linux: 12 run, 12 pass, 0 skip, 0 fail. Windows: 12 run, 12 pass, 0 skip, 0 fail. The before arm, main with this PR's tests, doesn't build. Suites: libc and libkernel pass on Linux (144 and 208) and on Windows (171 and 224). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • f3af853, the init calls back to throws (run), after @ahmadmuj's review: it reverts ca6f5d1, so Export.cpp has 331 NotImplemented exports and the pending-exports count says 331. The ENGINE commit is unchanged. The guest_libressl tests and public_headers pass 10 runs in a row. Linux: 12 run, 12 pass, 0 skip, 0 fail. Windows: 12 run, 12 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (144 and 208) and on Windows (171 and 224). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • Firmware 13.42's libSceLibreSsl.sprx, run by BunnyFl (comment): the decrypted module run natively on a PC, not a console. It runs the module's DT_INIT, then the sequence of ahmadmuj's probe through the module's own exports, against Engine.cpp from f3af853 compiled unchanged, with errors read back through the module's own ERR_get_error. Three runs gave identical results.
    • ENGINE_get_first returns null after DT_INIT, after ENGINE_load_builtin_engines and after ENGINE_cleanup, with no error.
    • ENGINE_by_id returns null and queues one 0x26fff074 for "dynamic", "padlock", "rdrand", "openssl", "aesni", "sce", "" and "x".
    • A null id or engine for by_id, get_next, init, finish, free, ctrl, ctrl_cmd and load_private_key returns 0 or null and queues one 0x26fff043.
    • All 21 results and error codes match this PR. Copies with either reason code changed, or with ENGINE_by_id(NULL) reporting no such engine, are caught.
    • From the disassembly, not run: ENGINE_load_builtin_engines only runs a one-time init and walks the existing list. The list head is stored to in only two routines, and the one that appends to the list is called only from code nothing in the module refers to. The module exports no ENGINE_add: its 13 ENGINE_ exports are this PR's 11 plus ENGINE_get_id and ENGINE_set_default.
  • 7af6326, a merge of main 5e90e75 (run). main's 9a848d0 implements the TLS alert descriptions and lowers the pending-export count in docs/dev/debt/libSceLibreSsl.md from 342 to 341, on the line this PR sets. The merge keeps main's change and sets the count to 330, the NotImplemented_nid_no_patch exports left in the merged Export.cpp. Nothing else conflicted, and this PR's other changed lines are the same. The 12 guest_libressl tests pass 10 runs in a row. Linux: 12 run, 12 pass, 0 skip, 0 fail. Windows: 12 run, 12 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (145 and 210) and on Windows (174 and 231). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • b0266db, a merge of main 84e91df (run). main's feat(libSceLibreSsl): return the measured version from SSLeay #9745 (SSLeay) lowers the pending-export count in docs/dev/debt/libSceLibreSsl.md to 340, on the line this PR sets; the merge keeps it and sets 329, the NotImplemented_nid_no_patch exports left in the merged Export.cpp. Nothing else conflicted, and this PR's other changed lines are the same. The guest_libressl tests with the tests for the files the merge changes, 22 of them, pass 10 runs in a row. Linux: 22 run, 22 pass, 0 skip, 0 fail. Windows: 22 run, 22 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (145 and 211) and on Windows (174 and 232). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 29e338a, a merge of main 18ef6be (run). alvaroelpob's feat(libSceLibreSsl): implement sk_num, sk_value, sk_pop and sk_pop_free #10373 (sk_*) and feat(libSceLibreSsl): implement UI_METHOD creation and its opener, writer, reader and closer accessors #10376 (UI_create_method) add src/Stack.cpp and src/Ui.cpp to the add_library line in core/libs/prx/libSceLibreSsl/CMakeLists.txt that this PR extends with src/Engine.cpp, and lower the pending-export count in docs/dev/debt/libSceLibreSsl.md to 321, on the line this PR sets. The merge lists all the sources and sets 310, the NotImplemented_nid_no_patch exports left in the merged Export.cpp. This PR's other changed lines are the same. The guest_libressl tests with the tests for the files the merge changes pass 10 runs in a row. Linux: 91 run, 91 pass, 0 skip, 0 fail. Windows: 89 run, 89 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (145 and 212) and on Windows (174 and 233). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 06c0f56, a merge of main 0cd07dc (run). alvaroelpob's feat(libSceLibreSsl): implement EVP_PKEY_type #10398, feat(libSceLibreSsl): implement the X509_STORE_CTX error, depth, current certificate and chain accessors #10447 and feat(libSceLibreSsl): implement RSA_flags and RSA_size #10449 add src/Pkey.cpp, src/X509StoreContext.cpp and src/Rsa.cpp to the add_library line in core/libs/prx/libSceLibreSsl/CMakeLists.txt where this PR adds src/Engine.cpp; the merge keeps all of them. The pending-exports count in docs/dev/debt/libSceLibreSsl.md says 313 on main, where Export.cpp has 307 calls that throw; the merge sets 296, what the merged Export.cpp leaves. This PR's other changed lines are the same. guest_libressl_error, guest_libressl_runtime and guest_libressl_x509_errors pass 10 runs in a row. Linux: 3 run, 3 pass, 0 skip, 0 fail. Windows: 3 run, 3 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (166 and 264). On Windows libc passes (194), and libkernel passes 283 of 286: exec_arguments, guest_timed_join_import_libkernel_sys and guest_timed_join_import_libkernel_web fail at their setup in the verify's Windows build (FileNotFoundError starting the title, or copying the libraries they load), and pass in main's own Windows job at 1829def (job). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 42de15a, a merge of main 04fefeb (run). The one conflict was the pending-exports count in docs/dev/debt/libSceLibreSsl.md: main reads 300 after JaceTheBlu's feat(libSceLibreSsl): implement X509_LOOKUP_file and X509_STORE_add_lookup #11105 (X509 lookups), and with this PR's implementations the merged Export.cpp has 289 calls left that go through NotImplemented_nid_no_patch, so the entry now says 289. This PR's other changed lines are the same. guest_libressl_error, guest_libressl_runtime and guest_libressl_x509_errors ran 10 times with no failure. Linux: 3 run, 3 pass, 0 skip, 0 fail. Windows: 3 run, 3 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (171 and 289). On Windows libc passes (199), and libkernel passes 309 of 312: exec_arguments, guest_timed_join_import_libkernel_sys and guest_timed_join_import_libkernel_web fail at their setup in the verify's Windows build (FileNotFoundError starting the title, or copying the libraries they load), with main's code too, and pass in main's own Windows job at 1829def (job). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • b43c407, a merge of main 0362b15 (run). Two conflicts, both with feat(libSceLibreSsl): implement six sourced LibreSSL 2.5.4 exports #12601, and each keeps both sides:
  • 047990e, a merge of main c12e7e6 (run), which brings JaceTheBlu's feat(libSceLibreSsl): implement OBJ_create and free added objects in OBJ_cleanup #13562 (OBJ_create and OBJ_cleanup). The one conflict was the pending-exports count in docs/dev/debt/libSceLibreSsl.md: main reads 292 after feat(libSceLibreSsl): implement OBJ_create and free added objects in OBJ_cleanup #13562, and with this PR's implementations the merged Export.cpp has 281 calls left that go through NotImplemented_nid_no_patch, so the entry now says 281. CMakeLists.txt, Export.cpp and Api.hpp merged without conflicts, and this PR's other changed lines are the same. ^guest_libressl and public_headers ran 10 times with no failure. Linux: 34 run, 34 pass, 0 skip, 0 fail. Windows: 34 run, 34 pass, 0 skip, 0 fail. The libc and libkernel suites run 199 and 308 tests on Linux and 226 and 330 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • aebea55, a merge of main 0a148be (run), which brings Ninot1Quyi's fix(libSceLibreSsl): preserve SHA-512 initialization buffers #13820 (SHA-512 initialization buffers) and hyvvs's feat(libSceLibreSsl): free GENERAL_NAME and GENERAL_NAMES allocations #13760 (GENERAL_NAME_free and GENERAL_NAMES_free).
    • The one conflict was the pending-exports count in docs/dev/debt/libSceLibreSsl.md, next to main's new and changed entries. The merge keeps those entries, and every other line comes from the side that changed it.
    • The count is the merged tree's Export.cpp total, 279 NotImplemented_nid_no_patch exports; main's line was 2 above its own total.
    • This PR's other changed lines are the same.
    • ×10: ^guest_libressl and public_headers. Linux: 38 run, 38 pass, 0 skip, 0 fail. Windows: 38 run, 38 pass, 0 skip, 0 fail. The libc and libkernel suites run 199 and 308 tests on Linux and 226 and 330 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • d593273: merges of main 88e804b (0204bff) and 3c3b3cd (68ed652), each followed by a recount of the pending exports (6ea7b38, d593273) (run, on d593273).
  • 2c2693c, a merge of main b28bb77 (run), which brings HQasper's feat(libSceLibreSsl): implement the EVP message digest and HMAC functions #9448 (the EVP message digest and HMAC functions).
    • Two conflicting files, both resolved by keeping both sides: the add_library source list in CMakeLists.txt, where feat(libSceLibreSsl): implement the EVP message digest and HMAC functions #9448 adds src/Evp.cpp and this PR src/Engine.cpp, and docs/dev/debt/libSceLibreSsl.md, which keeps feat(libSceLibreSsl): implement the EVP message digest and HMAC functions #9448's new entry.
    • The count is 250, the NotImplemented_nid_no_patch calls left in the merged Export.cpp: main's 261, which its line now matches, less the 11 this PR implements.
    • This PR's other changed lines over main are the same, and it merges cleanly with main a4eca2a.
    • ×10: the ^guest_libressl tests, with guest_libressl_error and public_headers. Linux: 46 run, 46 pass, 0 skip, 0 fail. Windows: 46 run, 46 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (217 and 319) and on Windows (244 and 340). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 4a059b2, a merge of main 4f41f4c (run), which brings Felipebmaitan's feat(libSceLibreSsl): implement CMAC with AES-CBC methods #9571 (CMAC with the AES-CBC ciphers).
    • The conflicts: CMakeLists.txt's add_library source list, where both sides add sources; the resolution is the union, each once. And docs/dev/debt/libSceLibreSsl.md, in two entries:
      • the pending-exports count: the merged Export.cpp has 220 NotImplemented exports, so the entry now says 220 (this PR said 250, main 231);
      • the ERR_get_error entry: this PR said the ENGINE calls are the only exports that add an error, and main says Memory BIO and CMAC failures publish to the queue. It now reads "Memory BIO, CMAC and ENGINE failures publish to this queue".
    • No function is in both PRs, and this PR's other lines are unchanged.
    • ×10: every ^guest_libressl test. Linux: 51 run, 51 pass, 0 skip, 0 fail. Windows: 51 run, 51 pass, 0 skip, 0 fail. The libc and libkernel suites run 300 and 322 tests on Linux and 327 and 342 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 81344ff, a merge of main 9ab6a28 (run), which brings MatteoSid's feat(libSceLibreSsl): implement EC groups and keys for named curves #10395 (EC groups and keys).
    • The conflicts, each resolved by keeping both sides:
      • CMakeLists.txt's add_library source list: main adds src/Ec.cpp and this PR src/Engine.cpp, and the line keeps both;
      • docs/dev/debt/libSceLibreSsl.md: the merged Export.cpp has 211 NotImplemented exports, so the pending-exports entry now says 211 (this PR said 220, main 222).
    • No function is in both PRs, and this PR's other lines are unchanged.
    • ×10: every ^guest_libressl test, with public_headers. Linux: 54 run, 54 pass, 0 skip, 0 fail. Windows: 54 run, 54 pass, 0 skip, 0 fail. The libc and libkernel suites run 303 and 327 tests on Linux and 335 and 354 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 3f1b7ed, a merge of main b611e63 (run), which brings LordVersA's feat(libSceLibreSsl): implement SSL library init #11662 (SSL_library_init).
    • The conflict: the pending-exports count in docs/dev/debt/libSceLibreSsl.md, which both sides changed. The merged Export.cpp had 210 NotImplemented exports, so the entry said 210 (this PR said 211, main 221). No function is in both PRs, and this PR's other lines are unchanged.
    • ×10: every ^guest_libressl test, with public_headers. Linux: 54 run, 54 pass, 0 skip, 0 fail. Windows: 54 run, 54 pass, 0 skip, 0 fail. The libc and libkernel suites run 303 and 329 tests on Linux and 335 and 360 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 61a6d5a, a merge of main d63781e (run), which brings alvaroelpob's feat(libSceLibreSsl): implement EVP_CIPHER_block_size #10450 (EVP_CIPHER_block_size).
    • The conflicts, each resolved by keeping both sides: CMakeLists.txt's add_library source list, where main adds src/EvpCipher.cpp and this PR src/Engine.cpp, and the pending-exports count in docs/dev/debt/libSceLibreSsl.md: the merged Export.cpp had 209 NotImplemented exports, so the entry said 209 (this PR said 210, main 220). No function is in both PRs, and this PR's other lines are unchanged.
    • ×10: every ^guest_libressl test (now including feat(libSceLibreSsl): implement EVP_CIPHER_block_size #10450's guest_libressl_evp_cipher) and public_headers. Linux: 55 run, 55 pass, 0 skip, 0 fail. Windows: 55 run, 55 pass, 0 skip, 0 fail. The libc and libkernel suites run 303 and 329 tests on Linux and 335 and 360 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 97f4ac9, a merge of main 9f9e420 (run), which brings alvaroelpob's feat(libSceLibreSsl): implement OCSP_response_status and OCSP_single_get0_status #10448 (OCSP_response_status, OCSP_single_get0_status).
    • The conflicts:
      • CMakeLists.txt's add_library source list, where main adds src/OcspResponse.cpp and this PR src/Engine.cpp. The line keeps both.
      • the pending-exports count in docs/dev/debt/libSceLibreSsl.md. The merged Export.cpp has 207 NotImplemented exports, so the pending-exports entry now says 207 (this PR said 209, main 218).
    • No function is in both PRs, and this PR's other lines are unchanged.
    • ×10: every ^guest_libressl test (now including feat(libSceLibreSsl): implement OCSP_response_status and OCSP_single_get0_status #10448's guest_libressl_ocsp_response) and public_headers. Linux: 56 run, 56 pass, 0 skip, 0 fail. Windows: 56 run, 56 pass, 0 skip, 0 fail. The libc and libkernel suites run 303 and 329 tests on Linux and 335 and 360 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 0bcf9ee, a merge of main e772fb2 (run), which brings our feat(libSceLibreSsl): implement the EVP cipher calls on the cipher context #10834 (the EVP cipher calls on the cipher context), StoneDC's test(libSceLibreSsl): model error queue interleavings #12774, test(libSceLibreSsl): expand DES ECB known answers #12775 and test(libSceLibreSsl): guard SHA padding and digest output extents #14283 (tests of error-queue interleavings, DES ECB known answers, and SHA padding and digest extents) and rooklz's fix(libSceLibreSsl): throw the documented exception for faulting lookup and verify-parameter arguments #14717 (the documented exception for faulting lookup and verify-parameter arguments).
    • The conflicts:
    • No function is in both PRs, and this PR's other lines are unchanged.
    • ×10: every ^guest_libressl test and public_headers. Linux: 58 run, 58 pass, 0 skip, 0 fail. Windows: 57 run, 57 pass, 0 skip, 0 fail; guest_libressl3_mixed_evp is registered only on Linux. The libc and libkernel suites run 322 and 331 tests on Linux and 353 and 362 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
    • AMD Radeon RX 6300 (RADV NAVI24), from TechLevelZero's AMD bot (report): this head merged onto main e772fb2, Mesa 25.2.8. 1,329 passed, 5 failed (none new: 4 also fail on main, 1 unstable on main), 8 skipped, with no new validation IDs (642 tests on the GPU).
  • c2913c4, after four merges of main: de9ec6a (main bf80054), fbefb5d (c454d7b), e35a93b (8ad0364) and c2913c4 (cd75a62) (×10).

Checklist

…E and ex_data init calls

SSL_library_init returns 1, and SSL_load_error_strings, OBJ_cleanup,
PKCS12_PBE_add and CRYPTO_cleanup_all_ex_data return nothing, as in
LibreSSL 2.5.4. None of them changes state an export reads here: no
cipher or digest lookup by name is exported, ERR_error_string and
OBJ_create still throw, and no ex_data index can be created.
PKCS12_PBE_add is empty in that release.
LibreSSL 2.5.4's only built-in engine, padlock, is compiled out by
OPENSSL_NO_HW_PADLOCK in both of its portable builds, and the module
exports no call that adds an engine, so the list stays empty.
ENGINE_get_first returns null and ENGINE_load_builtin_engines and
ENGINE_cleanup do nothing. ENGINE_by_id pushes ENGINE_R_NO_SUCH_ENGINE
for an id and ERR_R_PASSED_NULL_PARAMETER for null. ENGINE_get_next,
ENGINE_init, ENGINE_finish, ENGINE_free, ENGINE_ctrl, ENGINE_ctrl_cmd
and ENGINE_load_private_key push ERR_R_PASSED_NULL_PARAMETER for a null
engine, or for a null command name in ENGINE_ctrl_cmd, and return null
or 0. Every error uses LibreSSL's function code 0xfff. A non-null
engine throws, since none can exist.
@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Progress report (f53ddbc → 8d0d053)

📈 System libraries: 27.91% (+0.01%, +4 implemented functions)

✅ 4 implemented
Library Name
libSceLibreSsl ENGINE_by_id_nid_postfix
libSceLibreSsl ENGINE_cleanup_nid_postfix
libSceLibreSsl ENGINE_get_first_nid_postfix
libSceLibreSsl ENGINE_load_builtin_engines_nid_postfix
⚪ 3 behaviourally empty (constant return or throw)
Library Name
libSceLibreSsl ENGINE_cleanup_nid_postfix
libSceLibreSsl ENGINE_get_first_nid_postfix
libSceLibreSsl ENGINE_load_builtin_engines_nid_postfix

Changed libraries (implemented exports)

Library Before After Change
libSceLibreSsl 256/446 (57.40%) 260/446 (58.30%) +0.90%

@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

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 11146 core/libs/prx/libSceLibreSsl/Export.cpp L193-242
core/libs/prx/libSceLibreSsl/include/Api.hpp L638-647
PR 15827 core/libs/prx/libSceLibreSsl/Export.cpp L193-242
core/libs/prx/libSceLibreSsl/include/Api.hpp L638-647

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 10508 core/libs/prx/libSceLibreSsl/CMakeLists.txt
core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 11128 core/libs/prx/libSceLibreSsl/CMakeLists.txt
core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 11176 core/libs/prx/libSceLibreSsl/CMakeLists.txt
core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 11359 core/libs/prx/libSceLibreSsl/CMakeLists.txt
core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 11466 core/libs/prx/libSceLibreSsl/CMakeLists.txt
core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 12729 core/libs/prx/libSceLibreSsl/CMakeLists.txt
core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 12730 core/libs/prx/libSceLibreSsl/CMakeLists.txt
core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 13266 core/libs/prx/libSceLibreSsl/CMakeLists.txt
core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 13285 core/libs/prx/libSceLibreSsl/CMakeLists.txt
core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 13486 core/libs/prx/libSceLibreSsl/CMakeLists.txt
core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
core/libs/tests/GuestLibreSslError.cpp
docs/dev/debt/libSceLibreSsl.md
PR 13546 core/libs/prx/libSceLibreSsl/CMakeLists.txt
core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 13547 core/libs/prx/libSceLibreSsl/CMakeLists.txt
core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 13860 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
core/libs/tests/GuestLibreSslError.cpp
docs/dev/debt/libSceLibreSsl.md
PR 13877 core/libs/prx/libSceLibreSsl/CMakeLists.txt
core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 14115 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 14212 docs/dev/debt/libSceLibreSsl.md
PR 15278 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 15279 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 15280 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 15281 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 15480 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 15481 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 15482 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 15483 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 15994 core/libs/prx/libSceLibreSsl/CMakeLists.txt
core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 16126 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 16139 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
core/libs/tests/GuestLibreSslError.cpp
docs/dev/debt/libSceLibreSsl.md
PR 16140 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 16141 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
core/libs/tests/GuestLibreSslError.cpp
docs/dev/debt/libSceLibreSsl.md
PR 16143 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 16144 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 16153 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 16154 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 16156 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 16157 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 16158 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 16159 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 16160 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 16162 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 16163 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 16164 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md

@MarcZX10

Copy link
Copy Markdown
Contributor

I am checking the engine-list assumption against the console module and its available evidence. The LibreSSL portable build configuration shows the padlock engine can be compiled out, but does not by itself establish that the PS5 module has no built-in or dynamically registered engines. The debt entry correctly records that possibility as unresolved, while these exports now return an empty-list result and ENGINE_by_id reports every non-null ID as unknown. Is there evidence from the PS5 module/build or hardware that settles the engine inventory? Without that, the implementations may silently misreport a console engine as absent. I have not approved this PR.

@MarcZX10

Copy link
Copy Markdown
Contributor

One additional process point: #10475 is still open, and its patch adds adjacent no-op runtime exports and edits the same Runtime.cpp and libSceLibreSsl.md files. Your description identifies it as a related sibling, but the checklist says Depends on: none. The repository overlap rule asks authors to agree on landing order and declare Depends on when the changes overlap. Please coordinate with #10475’s author and record the agreed order so the PRs can be rebased and checked together.

Main's boykopovar#10005 and this branch both change the pending-exports count in the
debt file. The merge counts what is left: Export.cpp now has 332
NotImplemented exports, main's 348 less this branch's 16. It keeps this
branch's ERR and ENGINE entries and main's new ASN1 entries.
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 25, 2026
Main's boykopovar#10071 and this branch both change the pending-exports count in the
debt file. The merge counts what is left: Export.cpp now has 329
NotImplemented exports, main's 345 less this branch's 16.
@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Oct 25, 2026
Main's boykopovar#10484 rewrites the digest entry right after the pending-exports
count this branch sets; the merge keeps both. Export.cpp still has 329
NotImplemented exports.

@ahmadmuj ahmadmuj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed head 6415537 merged locally onto main a7a2eec (merge 696f8b4512). The only conflict is the pending count in the debt file, next to main's Digest edit; 329 is still right after the merge. Linux, gcc. No console, so nothing here says what the PS5 module itself does.

What I ran:

  • ctest -R guest_libressl on the merge: 10/10 pass. guest_libressl_error and guest_libressl_runtime also pass 5 repeats each.
  • Your two test files on main: GuestLibreSslError.cpp doesn't compile against the old (void) declarations, and guest_libressl_runtime aborts with SSL_library_init_nid_postfix not implemented.
  • tools/check_conventions.py --base origin/main: passes.
  • A small C probe linked statically against stock LibreSSL 2.5.4 (portable tarball, libcrypto.a + libssl.a), replaying your ENGINE and init blocks with the same arguments. Every line matches your test:
    • ENGINE_get_first is NULL before and after ENGINE_load_builtin_engines and after ENGINE_cleanup, with no error.
    • ENGINE_by_id("dynamic") gives NULL and one 0x26fff074. "padlock", "openssl" and "rdrand" do the same.
    • A null id or engine for by_id, get_next, init, finish, free, ctrl, ctrl_cmd and load_private_key returns 0/NULL and pushes exactly one 0x26fff043. So does ENGINE_ctrl_cmd(e, NULL, ...), since 2.5.4 checks e and cmd_name before anything else (eng_ctrl.c:265-268).
    • SSL_library_init returns 1 both times, with no error.

On MarcZX10's engine-inventory question, one more data point. The OpenBSD in-tree build at 2e2c612066 (the commit your debt entries link) also sets -DOPENSSL_NO_HW_PADLOCK (src/lib/libcrypto/Makefile:24, # XXX enable this?). It leaves eng_padlock.c out of SRCS, and Symbols.list has no ENGINE_load_padlock. Even if padlock were compiled in, eng_padlock.c:102-107 only defines COMPILE_HW_PADLOCK for i386, so on amd64 ENGINE_load_padlock does nothing. Neither upstream 2.5.4 build has a built-in engine on amd64. That doesn't rule out Sony adding one, and I can't check that.

Findings:

  1. The five init calls hit the same question as #10475. There, the change request asks to keep OPENSSL_add_all_algorithms_noconf and friends throwing because 2.5.4 does real work in them. SSL_library_init is the same kind of call. In 2.5.4 it runs EVP_add_cipher/EVP_add_digest and ssl_load_ciphers (ssl/ssl_algs.c:66-129). In the probe, EVP_get_cipherbyname("aes-128-cbc") and EVP_get_digestbyname("sha256") go from NULL to non-NULL across it. SSL_load_error_strings changes ERR_error_string(0x26fff074) from lib(38):func(4095):reason(116) to engine routines:CRYPTO_internal:no such engine. Your point that nothing exported reads this state yet holds on the merge: ERR_error_string, SSL_CTX_new and PEM_read_bio_PrivateKey all still throw. But it's the same trade-off #10475 is blocked on, so it's probably worth settling both PRs the same way. Either way, the ENGINE half stands on its own.

  2. Small debt wording fix: "no *_get_ex_new_index is exported" isn't quite right. SSL_CTX_get_ex_new_index and SSL_get_ex_new_index are exported (Export.cpp:951 and :1176). They still throw, so the conclusion holds. Maybe "every *_get_ex_new_index export still throws".

Main's boykopovar#9949 adds Ocsp.cpp to the library sources next to this branch's
Engine.cpp, and its OCSP entry after this branch's ENGINE entry; the
merge keeps both. The ERR entry keeps this branch's sentence that the
ENGINE calls are the only exports that add an error, since the OCSP
string calls add none. With boykopovar#9949's three exports implemented,
Export.cpp has 326 NotImplemented exports, and the pending-exports
count says 326.
…nd ex_data init calls throwing

LibreSSL 2.5.4, the version the debt entries name, does real work in
SSL_library_init, which registers the ciphers and digests
(ssl/ssl_algs.c), and in SSL_load_error_strings, which loads the error
strings. A call that does nothing is not that behaviour, so both throw
again until it is implemented. OBJ_cleanup, PKCS12_PBE_add and
CRYPTO_cleanup_all_ex_data go back with them, so the init calls are
settled together. The ENGINE calls keep their answers.

This reverts ca6f5d1. Export.cpp has 331 NotImplemented exports, and
the pending-exports count says 331.
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 25, 2026
@EagleBearerYS EagleBearerYS changed the title feat(libSceLibreSsl): implement the init calls and answer the ENGINE calls with an empty engine list feat(libSceLibreSsl): answer the ENGINE calls with an empty engine list Oct 25, 2026
@EagleBearerYS

Copy link
Copy Markdown
Contributor Author

@ahmadmuj thank you, the probe is exactly the evidence this PR needed. Finding 1: agreed. In 2.5.4 SSL_library_init registers the ciphers and digests and SSL_load_error_strings loads the error strings, so a call that does nothing isn't their behaviour. f3af853 returns all five init calls to throws, as MarcZX10 asked for the similar calls on #10475, and drops their debt entry, so finding 2 goes with it. The PR now covers only the ENGINE calls, I've retitled it to match, and the pending count is 331. Its run passes the guest_libressl tests and public_headers 10 runs in a row on Linux and Windows, 0 skip.

@MarcZX10 on the engine inventory: ahmadmuj's probe, linked statically against stock LibreSSL 2.5.4, gets every ENGINE result this PR's tests expect, and no 2.5.4 build has a built-in engine on amd64 (padlock is compiled out, and compiles only for i386). It isn't a console measurement, and the debt entry still says a console build with its own engines isn't ruled out. Could you both take another look?

@BunnyFl

BunnyFl commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

@MarcZX10 @EagleBearerYS firmware 13.42 data on the engine-inventory question, from the decrypted libSceLibreSsl.sprx itself, run natively on a PC (not a console). I ran the module's DT_INIT, then the same sequence as ahmadmuj's probe through the module's own exports, against Engine.cpp from f3af853c40 compiled unchanged. The module's errors were read back with its own ERR_get_error.

  • ENGINE_get_first returns NULL after DT_INIT, after ENGINE_load_builtin_engines and after ENGINE_cleanup, with no error.
  • ENGINE_by_id returns NULL with one 0x26fff074 for "dynamic", "padlock", "rdrand", "openssl", "aesni", "sce", "" and "x".
  • A NULL id or engine for by_id, get_next, init, finish, free, ctrl, ctrl_cmd and load_private_key returns 0/NULL with one 0x26fff043.
  • All 21 results and error codes match the PR. Three identical runs; copies with either reason code changed, or ENGINE_by_id(NULL) reporting "no such engine", are caught.

Per the disassembly (not run), nothing in the module can add an engine:

  • ENGINE_load_builtin_engines (0x7b710) only calls a one-time init at 0x10a00 and then walks the existing list from ENGINE_get_first, calling three routines on each engine it finds.
  • The engine list head (0x167790) is stored to only inside two routines. One is the routine that appends to the list (0x7d030), whose only caller is 0x7d500. That is not an export, and no instruction or relocation in the module refers to it. The other routine (0x7d1c0) is reached only from 0x7d4d0.
  • The module exports no ENGINE_add. Its 13 ENGINE_ exports are the PR's 11 plus ENGINE_get_id and ENGINE_set_default.

@EagleBearerYS

Copy link
Copy Markdown
Contributor Author

@BunnyFl thank you, that answers the engine-inventory question from the module itself: all 21 results and error codes match Engine.cpp, and the disassembly shows nothing in the module that can add an engine, with no ENGINE_add among its 13 ENGINE_ exports. I've added your results to the Tested section.

@MarcZX10 @ahmadmuj, this is the firmware data for the engine-inventory question. On the overlap with #10475: this PR now goes after it, recorded under Depends on, with a note in its thread. Could you take another look?

@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ AMD GPU test: passed

PR head 4a059b2 merged onto main 4f41f4c · tested 2026-11-03 13:05 UTC · 18 min

GPU AMD Radeon RX 6300 (RADV NAVI24), driver Mesa 25.2.8-0ubuntu0.24.04.4, Vulkan 1.4.318
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-42-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 1,148 passed · 5 failed (0 new, 3 also fail on main, 2 unstable on main) · 6 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 1,159 of 3,811 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (551 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.3 s, ⚠️ public_headers 42.2 s, ⚠️ agc_driver_image_sample_unnormalized 39.1 s, ⚠️ agc_driver_lazy_resolved_abi 37.2 s
Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_pipeline_journal: failed in 7 of the last 9 main runs
agc_driver_store_over_untracked: failed in 1 of the last 9 main runs
Failing on main too (3, not counted against this PR)
agc_driver_image_table
agc_driver_native_depth_bda_clear
agc_driver_native_multisample_depth
Validation IDs already present on main (4 IDs in 472 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (472 tests): agc_driver_address_passes, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, agc_driver_bda_anchor_reads, agc_driver_bda_span_reads, agc_driver_bindless_images, and 464 more
VUID-vkCmdCopyImage-srcImage-01548 (8 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth, agc_driver_stencil_null_feedback, agc_driver_stencil_plane_memory
VUID-vkCmdCopyImage-srcImage-01551 (8 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth, agc_driver_stencil_null_feedback, agc_driver_stencil_plane_memory
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (1 test): agc_driver_srgb8_color_target
Skipped (6)
agc_driver_copied_writer_label_order: skipped, the device reports a minStorageBufferOffsetAlignment of 4, so the dispatch binds its record at +0x1004 in place and nothing is written back; the test needs an alignment above 4
agc_driver_float16_unused_nan_payloads: skipped, the device has no native f16 conversions with RTE rounding and kept f16 denormals
agc_driver_linear_target_direct_write_completion: skipped, the device does not keep host imports write-watched, so no completion stamp over the target is tracked
agc_driver_ngg_vertex_wave_reduction: skipped, s3 describes a 32-lane wave only on 32-lane subgroups, and the device has 64 lanes
agc_driver_scattered_runs: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_sparse_dma_buf_import: skipped, host imports are unavailable: /dev/udmabuf is not accessible
Reproduce
git fetch origin 4a059b2970a8145927df20aef06dd48407fac235 4f41f4c375f5abb487dbd184fbc150f31994d762
git checkout 4f41f4c375f5abb487dbd184fbc150f31994d762 && git merge --no-ff 4a059b2970a8145927df20aef06dd48407fac235
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 12 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 16 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 3, 2026
@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Nov 4, 2026
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 4, 2026
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 5, 2026
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 5, 2026
@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Nov 5, 2026
@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ AMD GPU test: passed

PR head 0bcf9ee merged onto main e772fb2 · tested 2026-11-05 17:48 UTC · 19 min

GPU AMD Radeon RX 6300 (RADV NAVI24), driver Mesa 25.2.8-0ubuntu0.24.04.4, Vulkan 1.4.318
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-42-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 1,329 passed · 5 failed (0 new, 4 also fail on main, 1 unstable on main) · 8 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 1,342 of 4,074 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (642 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.1 s, ⚠️ public_headers 63.3 s, ⚠️ agc_driver_image_sample_unnormalized 36.0 s
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_pipeline_journal: failed in 9 of the last 10 main runs
Failing on main too (4, not counted against this PR)
agc_driver_image_table
agc_driver_native_depth_bda_clear
agc_driver_native_multisample_depth
agc_driver_submit_progress
Validation IDs already present on main (4 IDs in 553 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (553 tests): agc_driver_address_draw_space_reuse, agc_driver_address_passes, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, agc_driver_bda_anchor_reads, agc_driver_bda_span_reads, and 545 more
VUID-vkCmdCopyImage-srcImage-01548 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (1 test): agc_driver_prepared_exports
Skipped (8)
agc_driver_copied_writer_label_order: skipped, the device reports a minStorageBufferOffsetAlignment of 4, so the dispatch binds its record at +0x1004 in place and nothing is written back; the test needs an alignment above 4
agc_driver_float16_unused_nan_payloads: skipped, the device has no native f16 conversions with RTE rounding and kept f16 denormals
agc_driver_gcn_display_present: skipped, no display: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
agc_driver_linear_target_direct_write_completion: skipped, the device does not keep host imports write-watched, so no completion stamp over the target is tracked
agc_driver_ngg_vertex_wave_reduction: skipped, s3 describes a 32-lane wave only on 32-lane subgroups, and the device has 64 lanes
agc_driver_recorded_draw_staging: skipped, the device does not keep host imports write-watched, so the target is never resident
agc_driver_scattered_runs: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_vertex_elected_atomic_max: skipped, the device runs vertex programs in subgroups, so they keep their cross-lane reductions
Reproduce
git fetch origin 0bcf9eeb470f36f1839675ce920618a02dd7e2a1 e772fb25cc72ee5faf77847f06bbc69533016e82
git checkout e772fb25cc72ee5faf77847f06bbc69533016e82 && git merge --no-ff 0bcf9eeb470f36f1839675ce920618a02dd7e2a1
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 12 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 16 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Nov 5, 2026
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 5, 2026
@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Nov 5, 2026
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 6, 2026
# Conflicts:
#	core/libs/prx/libSceLibreSsl/CMakeLists.txt
@oneandonlydean
oneandonlydean merged commit d3aa21c into boykopovar:main Nov 6, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build docs needs rebase Conflicts with main, rebase needed prx

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants