Repository navigation
feat(libSceLibreSsl): implement memory BIOs - #9536
9 commits merged into
Conversation
Progress report (b28bb77 → 242c411)📈 System libraries: 26.77% (+0.02%, +11 implemented, +2 declared functions) ✅ 11 implemented
🆕 2 declared as stubs
Changed libraries (implemented exports)
|
MarcZX10
left a comment
There was a problem hiding this comment.
I reviewed the BIO implementation against the pinned LibreSSL 3.4.1 bss_mem.c, bio_lib.c and buffer.c behavior, including buffer ownership, close/reset controls, EOF/retry, method dispatch, callbacks, reference release and growth limits. The focused tests cover the main transfer/ownership/error paths, failure injection, callback order and 64-bit guest ABI. I did not find an additional BIO-specific blocker in this pass.
This stack depends on #9535, where I requested a fix for ERR_free_strings followed by ERR_load_crypto_strings remaining permanently in the freed state. Please revalidate the integrated stack after that fix; I’m not treating this comment as approval. The PR reports the Windows full-suite and 7/7 LibreSSL/patched-library selection, with baseline failures and the temporary #8310 fixture overlay disclosed; I did not rerun a local build. Current hosted eligibility, conventions, intake, labels and report checks pass; product jobs are skipped.
MarcZX10
left a comment
There was a problem hiding this comment.
I rechecked the BIO implementation against the pinned LibreSSL 3.4.1 memory BIO behavior and verified the parent stack update on #9535. The PR declares Depends on #9535, which in turn depends on #9529; no order/overlap issue remains in the declared stack. Tests are extensively reported, with the 5 full-suite failures and platform limits disclosed; hosted eligibility, conventions, intake, labels and report checks pass, while product builds were skipped. I found no additional blocking issue in the reviewed diff.
MarcZX10
left a comment
There was a problem hiding this comment.
The reviewed memory BIO implementation matches the pinned LibreSSL 3.4.1 behavior; the declared dependency chain #9536 → #9535 → #9529 is consistent. My earlier #9535 lifecycle request was corrected after source verification, and the updated ERR change is approved. The author reports focused and full-suite testing with failures disclosed; current eligibility, conventions, intake, labels and report checks pass, while product jobs are skipped. I found no blocking issue in this diff.
|
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.
|
MarcZX10
left a comment
There was a problem hiding this comment.
Rechecked the unchanged BIO implementation at its current head. Its memory BIO behaviors and ABI follow the pinned LibreSSL 3.4.1 sources, and the PR declares the current ERR/#9529 dependency chain. The focused tests and extensive full-suite/baseline failure accounting are author-reported; required hosted policy checks pass and product/relinker jobs were skipped. I did not run local tests.
jotitadev
left a comment
There was a problem hiding this comment.
Linux run, since the description says Linux/macOS were not run, plus one gap in the wiping coverage.
Machine: Linux x86_64, i7-8700, Ubuntu 26.04 (kernel 7.0.0-38), GCC 15.2, Release, BUILD_TESTING=ON. Head 0b6880e4d merged --no-commit onto main ab347d144 (clean). git submodule update --init checked out 3rdparty/libressl-openbsd at 078b3d1df.
- Build ok. The seven tests pass:
guest_libressl_bio,guest_libressl_bio_patched,guest_libressl_error,guest_libressl_errors,guest_libressl_free_strings,guest_libressl_free_strings_firstandpatched_libraries. - Red→green: removing
bio->flags |= RetryReadfromreadMemoryabortsguest_libressl_biowithempty writable BIO retry, so the retry and EOF paths are covered. - Gap: removing the
clearBuffer(buffer)beforefree_nid_postfix(buffer.data)in the growth branch ofwriteMemorystill passesguest_libressl_bio. The test armswipePointeronly beforeBIO_free, so the buffer a growing write frees (abcat capacity 8, when the second write grows it to 20) is never checked. LibreSSL wipes there too:mem_write→BUF_MEM_grow_clean→recallocarray(str->data, str->max, n, 1)(buffer.c:121in the pinned submodule), which clears the old allocation before it frees it. SettingwipePointer/wipeSizeto the oldbuffer->data/capacitybefore the second write and then requiringwipePointer == nullptrcovers it: I tried it here, and it passes with the PR and aborts withfreed buffer was not wipedonce the growthclearBufferis removed.
Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
MarcZX10
left a comment
There was a problem hiding this comment.
The implementation currently wipes the old owned buffer before freeing it during growth, and again before destruction. The regression only arms wipePointer immediately before BIO_free, so it does not verify the growth path: removing the clearBuffer(buffer) immediately before free_nid_postfix(buffer.data) in writeMemory would still pass the submitted test. Please add an assertion around a growth-triggering write that records the old allocation/capacity and verifies those bytes are zero when that allocation is released. This matters because the PR explicitly claims secure clearing of owned storage. Also, this head is 4 ahead / 119 behind current main (merge base a6dcea927); please refresh it and rerun the focused BIO suite, conventions and test-registration checks. I did not run a local C++ build in this pass; the Linux focused test/control described by the other reviewer is independently reported, not my run.
|
@Felipebmaitan firmware 13.42 data for the memory BIOs ("PS5 module/version equivalence ... unverified"), plus the growth-wipe point from the reviews. I ran the decrypted What was compared: 1,048 operation sequences, 14,708 steps. After every step both sides printed:
The sequences were:
The method table matches: type Differences
Everything else matches.
|
|
Addressed the firmware-PC/module report and the growth-wipe coverage request / follow-up in published head
The pinned 3.4.1 public guard disagrees with the measured nonnegative module dispatch; this difference is explicit in debt. Negative public lengths retain the pinned guard, and unmeasured raw negative/ex-data limits remain unchanged. The cited evidence is PC execution of modules with allocator stand-ins, not console execution. Padding zeroing is unchanged. The growth regression records the old allocation and full capacity before growth, fills spare capacity with nonzero bytes and checks the allocation is wiped at release. Destruction wiping coverage remains. A bounded negative control removing only growth clearing failed with Reconciled main and published #9535 Validation: Windows 7/7 selected CTests pass, including public headers. WSL Linux six runtime tests pass; the global public-header audit timed out at 90.10s on the mounted source tree. Affected LibreSSL/LibreSSL3 headers compile together with strict warnings on both platforms. Conventions, whitespace and Windows registration audit pass; overlap refreshed. Full hosted CI, native-filesystem Linux header audit and re-review remain pending. No full-suite, sanitizer, macOS, console or title run is claimed. The PR body contains detailed evidence and remaining stack overlaps. |
|
Refreshed existing stack head Owned order: #9535 → #9536 → #9571. #9529/#11165 are merged. For #9571, #9446 remains an external prerequisite; its author has not confirmed the proposed order. Its inherited BN integration is preserved, not treated as new agreement or validation of the firmware differences reported on #9446. Ubuntu 24.04 amd64 container through Docker on Apple Silicon; GCC 13.3.0, CMake 3.28.3, Ninja, Python 3.12.3, Release. Actual source-built libc/libkernel/LibreSSL/LibreSSL3 and pinned bundled dependencies, using the component harness below. This is not full root configuration or native Windows/macOS/console evidence. The initial CMAC build was clean; final stack heads were reconfigured/rebuilt incrementally. Docker logs userfaultfd unavailable (Operation not permitted), using libc's existing memory-comparison fallback. Native/patched dispatch, null/zero, callbacks, retry/errors, nonzero-slack full-capacity growth and destruction-wipe assertions are unchanged from the published repairs. The control below removes only growth clearing; original production source is restored for final results. CMAC supported coverage is retained and ENGINE-refusal assertion stays removed. Native commands set Native focused CTest outputPatched focused CTest outputConventionsWhitespaceStandalone public headersGenerator recoveryGenerator SHA256 beforeGenerator SHA256 afterPublic definitions and NIDsScoped registration auditAll scoped executables are registered. This is not a full-root registration pass: the component harness omits the root registrations of nine unrelated libc fixtures, which the global checker reports as unrun ( Growth-only control, nativeGrowth-only control, patchedThe control was run on the final combined #9571 head (same BIO implementation/test as #9536), with 30-second CTest limits. Both fail immediately with External reproduction harnessSave this outside the repository; mount the exact head at cmake_minimum_required(VERSION 3.20)
project(LibreSslStackValidation LANGUAGES C CXX)
enable_testing()
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(LIBS_INCLUDE_DIR /src/core/libs)
set(ANYPS5_TEST_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/tests)
set(PATCHED_DIR ${CMAKE_BINARY_DIR}/patched)
function(add_test_executable target)
add_executable(${target} ${ARGN})
set_target_properties(${target} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${ANYPS5_TEST_OUTPUT_DIRECTORY})
endfunction()
function(configure_windows_unwind target)
endfunction()
function(add_asan_test_options)
endfunction()
add_compile_options(-ffunction-sections -fdata-sections)
add_link_options(-Wl,--gc-sections)
include(/src/cmake/ZArchive.cmake)
set(BUILD_TESTING OFF)
add_library(libc SHARED)
add_subdirectory(/src/core/libs/prx/libc libc)
target_include_directories(libc PRIVATE ${LIBS_INCLUDE_DIR})
target_link_options(libc PRIVATE LINKER:-z,now)
target_link_options(libc INTERFACE LINKER:--no-as-needed)
add_subdirectory(/src/core/libs/prx/libkernel kernel)
add_subdirectory(/src/core/libs/prx/libSceSsl ssl)
set(BUILD_TESTING ON)
add_subdirectory(/src/core/libs/prx/libSceLibreSsl libressl)
add_subdirectory(/src/core/libs/prx/libSceLibreSsl3 libressl3)
foreach(target libSceLibreSsl libSceLibreSsl3)
target_link_libraries(${target} PUBLIC libc PRIVATE libkernel)
endforeach()
include(/src/core/libs/prx/libSceLibreSsl/ErrorQueue.cmake)
if(EXISTS /src/core/libs/prx/libSceLibreSsl/MemoryBio.cmake)
include(/src/core/libs/prx/libSceLibreSsl/MemoryBio.cmake)
endif()
if(EXISTS /src/core/libs/prx/libSceLibreSsl/Cmac.cmake)
include(/src/core/libs/prx/libSceLibreSsl/Cmac.cmake)
endif()
file(GLOB patcherSources /src/core/libs/nid/src/*.cpp)
add_executable(nid_patcher ${patcherSources})
target_include_directories(nid_patcher PRIVATE /src/core/libs/nid/include)
foreach(target libc libkernel libSceLibreSsl libSceLibreSsl3)
set_target_properties(${target} PROPERTIES PREFIX "" SUFFIX .prx BUILD_RPATH "$ORIGIN" BUILD_WITH_INSTALL_RPATH ON INSTALL_RPATH "$ORIGIN")
add_custom_command(OUTPUT ${PATCHED_DIR}/${target}.prx
COMMAND ${CMAKE_COMMAND} -E make_directory ${PATCHED_DIR}
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:${target}> ${PATCHED_DIR}/${target}.prx
COMMAND $<TARGET_FILE:nid_patcher> ${target} ${PATCHED_DIR}/${target}.prx
DEPENDS ${target} nid_patcher)
list(APPEND patched ${PATCHED_DIR}/${target}.prx)
endforeach()
add_custom_target(focused_patched ALL DEPENDS ${patched})
if(BIO_CONTROL)
get_target_property(sslSources libSceLibreSsl SOURCES)
list(REMOVE_ITEM sslSources /src/core/libs/prx/libSceLibreSsl/src/Bio.cpp)
set_property(TARGET libSceLibreSsl PROPERTY SOURCES ${sslSources})
target_sources(libSceLibreSsl PRIVATE /validation/BioNoGrowthWipe.cpp)
endif()
The optional control replaces only the single Complete overlap output (limitations retained)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.
No full-product/whole-suite, new Windows, sanitizer, title, PS5, or hosted product-CI pass is claimed. Maintainer-dispatched full Linux/Windows CI and current-head review remain outstanding. AI-assisted: yes. |
|
The published BIO repairs in Native and patched BIO tests both pass. They retain normal dispatch/callbacks for nonnegative null/zero writes, owned/read-only results, retry flags, error ordering and accounting, plus the regression that seeds spare capacity with nonzero bytes and observes full-allocation wiping at growth and destruction. The existing bounded negative-control evidence is historical; its identical source/fixture was not reworked or rerun unnecessarily. ERR remains numeric throughout load/free and its generator dependencies remain testing-only. The complete focused combined selection passes 39 native + 3 patched cases with actual source-built libraries. Headers, scoped registration, conventions and whitespace pass. This is amd64 Docker on Apple Silicon, with the existing userfaultfd comparison fallback, not a full product, new Windows/macOS runtime, sanitizer or console run. No branch/code change was needed on this settled prerequisite; this lower head was not independently rebuilt. The updated template and current-main validation response record exact heads, commands and limits. #9446 ordering remains an external CMAC blocker and has been explicitly followed up. AI-assisted: yes. |
|
@Felipebmaitan Thank you for the memory BIOs, and for your patience with this stack; it has waited a long time. We read the BIO code against LibreSSL 2.x (bss_mem.c, bio_lib.c and BUF_MEM_grow_clean): the struct layouts, read/write/gets/reset, growth and wiping, the control commands and the callback codes all match. Two small things before merge:
Everything else looks right to us. Thanks again. |
|
@oneandonlydean Addressed the remaining maintainer request on the existing stack, refreshed bottom-up without force-pushing or dropping maintainer ancestry:
This PR: The BIO test change removes exactly the ex-data assignment, Exact head
The harness imports actual repository library/test fragments, source-building pinned dependencies; it is not the full root/product suite. Docker denies userfaultfd, invoking libc's existing comparison fallback. No new local Windows/macOS runtime, sanitizer, title or physical-console run was performed; no skipped/pending hosted job is counted as passed. Firmware-module evidence remains PC execution with stand-in imports. Earlier no-Python fragment and bounded BIO negative-control evidence is historical; those settled checks were not rerun, and neither production BIO nor the wipe assertions changed. Hosted CI for Owned order remains #9535 → #9536 → #9571. External blocker only for CMAC: the #9446 author has not confirmed the proposed #9446-before-#9571 order in the linked request; no change or agreement is attributed to that branch. Its independent BN firmware/rebase work is not claimed fixed. No merge or replacement PR. AI-assisted: yes. Native focused testsPatched focused testsERR fixture recoveryPreservation/count/NID auditHeadersScoped registrationsConventionsOverlap output: exit 2, including incomplete comparisonsOther 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.
Reproduction harness and test commandsConfigure: cmake_minimum_required(VERSION 3.20)
project(LibreSslStackValidation LANGUAGES C CXX)
enable_testing()
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
option(LIBRESSL_TESTING "Build focused tests" ON)
set(LIBS_INCLUDE_DIR /src/core/libs)
set(ANYPS5_TEST_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/tests)
set(PATCHED_DIR ${CMAKE_BINARY_DIR}/patched)
function(add_test_executable target)
add_executable(${target} ${ARGN})
set_target_properties(${target} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${ANYPS5_TEST_OUTPUT_DIRECTORY})
endfunction()
function(configure_windows_unwind target)
endfunction()
function(configure_host_test_executable target)
endfunction()
function(add_asan_test_options)
endfunction()
add_compile_options(-ffunction-sections -fdata-sections)
add_link_options(-Wl,--gc-sections)
include(/src/cmake/ZArchive.cmake)
set(BUILD_TESTING OFF)
add_library(libc SHARED)
add_subdirectory(/src/core/libs/prx/libc libc)
target_include_directories(libc PRIVATE ${LIBS_INCLUDE_DIR})
target_link_options(libc PRIVATE LINKER:-z,now)
target_link_options(libc INTERFACE LINKER:--no-as-needed)
add_subdirectory(/src/core/libs/prx/libkernel kernel)
add_subdirectory(/src/core/libs/prx/libSceSsl ssl)
set(BUILD_TESTING ${LIBRESSL_TESTING})
add_subdirectory(/src/core/libs/prx/libSceLibreSsl libressl)
add_subdirectory(/src/core/libs/prx/libSceLibreSsl3 libressl3)
foreach(target libSceLibreSsl libSceLibreSsl3)
target_link_libraries(${target} PUBLIC libc PRIVATE libkernel)
endforeach()
include(/src/core/libs/prx/libSceLibreSsl/ErrorQueue.cmake)
if(EXISTS /src/core/libs/prx/libSceLibreSsl/MemoryBio.cmake)
include(/src/core/libs/prx/libSceLibreSsl/MemoryBio.cmake)
endif()
if(EXISTS /src/core/libs/prx/libSceLibreSsl/Cmac.cmake)
include(/src/core/libs/prx/libSceLibreSsl/Cmac.cmake)
endif()
add_custom_target(libs)
include(/src/core/libs/prx/libSceLibreSsl/ProtocolSelection.cmake)
file(GLOB patcherSources /src/core/libs/nid/src/*.cpp)
add_executable(nid_patcher ${patcherSources})
target_include_directories(nid_patcher PRIVATE /src/core/libs/nid/include)
foreach(target libc libkernel libSceLibreSsl libSceLibreSsl3)
set_target_properties(${target} PROPERTIES PREFIX "" SUFFIX .prx BUILD_RPATH "$ORIGIN" BUILD_WITH_INSTALL_RPATH ON INSTALL_RPATH "$ORIGIN")
add_custom_command(OUTPUT ${PATCHED_DIR}/${target}.prx
COMMAND ${CMAKE_COMMAND} -E make_directory ${PATCHED_DIR}
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:${target}> ${PATCHED_DIR}/${target}.prx
COMMAND $<TARGET_FILE:nid_patcher> ${target} ${PATCHED_DIR}/${target}.prx
DEPENDS ${target} nid_patcher)
list(APPEND patched ${PATCHED_DIR}/${target}.prx)
endforeach()
add_custom_target(focused_patched ALL DEPENDS ${patched})
add_dependencies(libs focused_patched)set -eu
layer=$1
LD_LIBRARY_PATH=/validation/build:/validation/build/kernel:/validation/build/libressl:/validation/build/libressl3 ctest --test-dir /validation/build -R '^(guest_libressl|guest_crypto_memcmp)' -E '(_patched|_nid)$' --output-on-failure --no-tests=error > /evidence/$layer-native.log 2>&1
LD_LIBRARY_PATH=/validation/build/patched ctest --test-dir /validation/build -R '^guest_libressl_((bio|cmac)_patched|protocol_nid)$' --output-on-failure --no-tests=error > /evidence/$layer-patched.log 2>&1
python3 /src/tools/check_test_registration.py --list /validation/build > /evidence/$layer-registrations.txt
ninja -C /validation/build -t commands libressl/libSceLibreSsl.prx libressl3/libSceLibreSsl3.prx > /evidence/$layer-runtime-commands.txt
! grep -q GenerateErrorStrings.py /evidence/$layer-runtime-commands.txt
test "$(grep -c -- '-c /src/core/libs/prx/libSceLibreSsl/src/Error.cpp' /evidence/$layer-runtime-commands.txt)" = 1
sha256sum /validation/build/prx/libSceLibreSsl/ErrorStrings.inc > /evidence/$layer-fixture.log
rm /validation/build/prx/libSceLibreSsl/ErrorStrings.inc
cmake --build /validation/build --target libSceLibreSsl libSceLibreSsl3 >> /evidence/$layer-fixture.log 2>&1
test ! -e /validation/build/prx/libSceLibreSsl/ErrorStrings.inc
cmake --build /validation/build --target guest_libressl_error_string_tests >> /evidence/$layer-fixture.log 2>&1
sha256sum /validation/build/prx/libSceLibreSsl/ErrorStrings.inc >> /evidence/$layer-fixture.log
LD_LIBRARY_PATH=/validation/build:/validation/build/kernel:/validation/build/libressl:/validation/build/libressl3 ctest --test-dir /validation/build -R '^guest_libressl_(errors|free_strings|free_strings_first)$' --output-on-failure --no-tests=error >> /evidence/$layer-fixture.log 2>&1
tail -5 /evidence/$layer-native.log
tail -5 /evidence/$layer-patched.log |
|
@oneandonlydean @MarcZX10 Refreshed the existing branch after its main conflict; please re-review exact head Memory BIO methods and callbacks. Refreshed published history onto fetched main Resolved the pending-export debt conflict by independently recounting the merged Current owned heads: #9536 Exact head
Docker denies userfaultfd, so libc uses its existing comparison fallback. No new local Windows/macOS runtime, sanitizer, commercial-title or physical-console run; Hosted CI on #9446 remains an external prerequisite for CMAC: still open at No merge performed. AI-assisted: yes. Native testsPatched testsFixture regenerationPreservation/count/NID auditHeadersScoped registrationsConventionsOverlap output: exit 2, including incomplete comparisonsOther 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.
External harness and commandsMount the exact checkout read-only at cmake_minimum_required(VERSION 3.20)
project(LibreSslStackValidation LANGUAGES C CXX)
enable_testing()
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(LIBS_INCLUDE_DIR /src/core/libs)
set(ANYPS5_TEST_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/tests)
set(PATCHED_DIR ${CMAKE_BINARY_DIR}/patched)
function(add_test_executable target)
add_executable(${target} ${ARGN})
set_target_properties(${target} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${ANYPS5_TEST_OUTPUT_DIRECTORY})
endfunction()
function(configure_windows_unwind target)
endfunction()
function(configure_host_test_executable target)
endfunction()
function(add_asan_test_options)
endfunction()
add_compile_options(-ffunction-sections -fdata-sections)
add_link_options(-Wl,--gc-sections)
include(/src/cmake/ZArchive.cmake)
set(BUILD_TESTING OFF)
add_library(libc SHARED)
add_subdirectory(/src/core/libs/prx/libc libc)
target_include_directories(libc PRIVATE ${LIBS_INCLUDE_DIR})
target_link_options(libc PRIVATE LINKER:-z,now)
target_link_options(libc INTERFACE LINKER:--no-as-needed)
add_subdirectory(/src/core/libs/prx/libkernel kernel)
add_subdirectory(/src/core/libs/prx/libSceSsl ssl)
set(BUILD_TESTING ON)
add_subdirectory(/src/core/libs/prx/libSceLibreSsl libressl)
add_subdirectory(/src/core/libs/prx/libSceLibreSsl3 libressl3)
foreach(target libSceLibreSsl libSceLibreSsl3)
target_link_libraries(${target} PUBLIC libc PRIVATE libkernel)
endforeach()
include(/src/core/libs/prx/libSceLibreSsl/ErrorQueue.cmake)
include(/src/core/libs/prx/libSceLibreSsl/MemoryBio.cmake)
if(EXISTS /src/core/libs/prx/libSceLibreSsl/Cmac.cmake)
include(/src/core/libs/prx/libSceLibreSsl/Cmac.cmake)
endif()
add_custom_target(libs)
include(/src/core/libs/prx/libSceLibreSsl/ProtocolSelection.cmake)
file(GLOB patcherSources /src/core/libs/nid/src/*.cpp)
add_executable(nid_patcher ${patcherSources})
target_include_directories(nid_patcher PRIVATE /src/core/libs/nid/include)
foreach(target libc libkernel libSceLibreSsl libSceLibreSsl3)
set_target_properties(${target} PROPERTIES PREFIX "" SUFFIX .prx BUILD_RPATH "$ORIGIN" BUILD_WITH_INSTALL_RPATH ON INSTALL_RPATH "$ORIGIN")
add_custom_command(OUTPUT ${PATCHED_DIR}/${target}.prx
COMMAND ${CMAKE_COMMAND} -E make_directory ${PATCHED_DIR}
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:${target}> ${PATCHED_DIR}/${target}.prx
COMMAND $<TARGET_FILE:nid_patcher> ${target} ${PATCHED_DIR}/${target}.prx
DEPENDS ${target} nid_patcher)
list(APPEND patched ${PATCHED_DIR}/${target}.prx)
endforeach()
add_custom_target(focused_patched ALL DEPENDS ${patched})
add_dependencies(libs focused_patched)set -eu
layer=$1
build=/evidence/build
LD_LIBRARY_PATH=$build:$build/kernel:$build/libressl:$build/libressl3 ctest --test-dir $build -R '^(guest_libressl|guest_crypto_memcmp)' -E '(_patched|_nid)$' --output-on-failure --no-tests=error > /evidence/$layer-native.log 2>&1
LD_LIBRARY_PATH=$build/patched ctest --test-dir $build -R '^guest_libressl_((bio|cmac)_patched|protocol_nid)$' --output-on-failure --no-tests=error > /evidence/$layer-patched.log 2>&1
python3 /src/tools/check_test_registration.py --list $build > /evidence/$layer-registrations.txt
ninja -C $build -t commands libressl/libSceLibreSsl.prx libressl3/libSceLibreSsl3.prx > /evidence/$layer-runtime-commands.txt
! grep -q GenerateErrorStrings.py /evidence/$layer-runtime-commands.txt
test "$(grep -c -- '-c /src/core/libs/prx/libSceLibreSsl/src/Error.cpp' /evidence/$layer-runtime-commands.txt)" = 1
sha256sum $build/prx/libSceLibreSsl/ErrorStrings.inc > /evidence/$layer-fixture.log
rm $build/prx/libSceLibreSsl/ErrorStrings.inc
cmake --build $build --target libSceLibreSsl libSceLibreSsl3 >> /evidence/$layer-fixture.log 2>&1
test ! -e $build/prx/libSceLibreSsl/ErrorStrings.inc
cmake --build $build --target guest_libressl_error_string_tests >> /evidence/$layer-fixture.log 2>&1
sha256sum $build/prx/libSceLibreSsl/ErrorStrings.inc >> /evidence/$layer-fixture.log
LD_LIBRARY_PATH=$build:$build/kernel:$build/libressl:$build/libressl3 ctest --test-dir $build -R '^guest_libressl_(errors|free_strings|free_strings_first)$' --output-on-failure --no-tests=error >> /evidence/$layer-fixture.log 2>&1
tail -5 /evidence/$layer-native.log
tail -5 /evidence/$layer-patched.logFormal re-review requests to GitHub returned HTTP 404 for this PR; no reviewer request was registered. The validation reply explicitly asks @MarcZX10 to re-review. This API failure is separate from the validated code fixes and completed hosted CI. Readiness: the stale |
b9cd424
What
Memory BIO methods and callbacks. Refreshed published history onto fetched main
b28bb772177768f99874ca38f6252cd0139acf2a. #9535 is merged; its numeric ERR behavior, shared queue and test-only generator/Python/submodule setup remain unchanged. No replacement PR, force push or unrelated branch changes.Resolved the pending-export debt conflict by independently recounting the merged
Export.cpp: 254 literalNotImplemented_nid_no_patch(__func__)calls, matching direct exported stub bodies. Published runtime implementations and supported fixtures are byte-identical to the previous head; the removed BIO ex-data throw/reference assertion remains absent and production refusal stays intact.Tested
Exact head
242c41111435bd5d02a55d17acb54ea35146a3c8, integrated mainb28bb772177768f99874ca38f6252cd0139acf2a. Ubuntu amd64 Docker on Apple Silicon; GCC 13.3.0, CMake 3.28.3, Ninja, Python 3.12.3, Release. Native below means unpatched symbols, not execution on native Linux hardware.44af6828fdc064ca16f94aeb07ac913651d2bfce0f5ecbeee6b9b476e6be24e3; three lifecycle cases pass again. Runtime graphs exclude the generator and compile the shared queue once.python3 tools/check_conventions.py --base origin/mainand whitespace pass in isolated Git contexts pinningorigin/mainto the integrated SHA above, without changing shared tracking refs.Docker denies userfaultfd, so libc uses its existing comparison fallback. No new local Windows/macOS runtime, sanitizer, commercial-title or physical-console run; Hosted CI on
242c41111435bd5d02a55d17acb54ea35146a3c8:windows,conventions,library-portability,eligibility,labelsandreportsucceeded.linux,relinker,relinker-asan,register-context,write-watchandedge-watchwere skipped; earlier conventions attempts were cancelled. GitHub reports CLEAN / MERGEABLE; skipped jobs are not claimed as executed. Current-head maintainer re-review remains pending. Previous hosted results and bounded growth-wipe/no-Python fragment controls remain historical. Firmware-module comparison evidence remains attributed PC execution with stand-in imports, not console evidence. No success is claimed for skipped or pending jobs.Formal re-review requests to GitHub returned HTTP 404 for this PR; no reviewer request was registered. The validation reply explicitly asks @MarcZX10 to re-review. This API failure is separate from the validated code fixes and completed hosted CI.
Readiness: the stale
needs rebaselabel has cleared. Formal re-review requests returned HTTP 404 and no reviewer request is registered. MarcZX10 was explicitly asked in the validation reply, but the historical change request remains a review-queue blocker until a formal re-request is registered or the review state is updated.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)