Skip to content

feat(libSceLibreSsl): accept null in SSL_SESSION_free - #16140

Closed
MarrasFederico wants to merge 6 commits into
boykopovar:mainfrom
MarrasFederico:feat/libressl-session-free-null
Closed

MarrasFederico wants to merge 6 commits into
boykopovar:mainfrom
MarrasFederico:feat/libressl-session-free-null

Conversation

@MarrasFederico

@MarrasFederico MarrasFederico commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

What

Treat null session disposal as a no-op without changing the error queue. Non-null session reference counting and disposal remain unsupported and throw before dereference.

Source and remaining gap: SSL_SESSION_free - non-null session release is unimplemented and not measured on a PS5. LibreSSL 2.5.4 returns immediately for null and otherwise decrements the reference count and may free the session (ssl_sess.c).

python3 tools/pr_overlap.py --branch feat/libressl-session-free-null --repo boykopovar/AnyPS5 --base main --jobs 2 examined 1871 open PRs. Confirmed textual overlaps: #10915 #11553 #15827; the report contains no shared export. The command exited 2 because 38 older heads conflict with its base. I compared each reported head against its own merge base, including the original stub location: none changes or adds SSL_SESSION_free. Pairwise merge checks also report shared-file conflicts; these do not establish a functional dependency. Shared debt insertions may need textual reconciliation when merging the other pending-export PRs. Upstream now omits the unstable numeric total.

Tested

Ubuntu 26.04.1 LTS x86-64, GCC 15.2.0, Release, BUILD_TESTING=ON; tested main commit ce694129c4ffaaafe7fe3621ac7e038aca7b79f7.

  • Built guest_libre_ssl_error_model_tests with nice -n 19 cmake --build build --parallel 2 --target guest_libre_ssl_error_model_tests. Only one target was built at a time.
  • ctest --test-dir build -R '^guest_libre_ssl_error_model$' --output-on-failure passes with the new cases in the existing guest test.
  • Main has a throwing placeholder. Negative control kept the corrected declaration and replaced only SSL_SESSION_free_nid_postfix with the original throwing body. After rebuilding the same target, the test failed with SSL_SESSION_free_nid_postfix not implemented. Restoring the implementation, rebuilding and rerunning passes.
  • python3 tools/check_conventions.py --base upstream/main and git diff --check pass. No title, console or Windows run.

After merging upstream main 04cdd527604d521845afc58f9374afb92ff85f76, rebuilt the same target with the same limits and reran the focused test: it passes. The feature code and test changes are identical to those used for the negative control above; only upstream updates and the debt inventory reconciliation were merged.

After merging upstream main 151a2cb6e274f594a09c8a2ca42f44af2e5c40d8, rebuilt the same target with the same limits and reran the focused test: it passes. The feature code and test changes are identical to those used for the negative control above; only upstream updates and the debt inventory reconciliation were merged.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

Merge verification: updated against main 5c184f22eb19e8c5a5f733cb5e3aba5dbe534fdb with a normal merge. Main and this PR are preserved independently; the implemented function bodies are unchanged. Built guest_libre_ssl_error_model_tests with nice -n 19 cmake --build build --parallel 2 --target guest_libre_ssl_error_model_tests; ctest --test-dir build -R '^guest_libre_ssl_error_model$' --output-on-failure passes. Conventions and the public-header audit pass. No console or Windows run.

@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed docs prx labels 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 needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Nov 6, 2026
@github-actions

github-actions Bot commented Nov 7, 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 12730 core/libs/prx/libSceLibreSsl/include/Api.hpp L804-805

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/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 11466 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 13266 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 13285 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 13546 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 13547 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 13877 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 15480 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 15737 docs/dev/debt/libSceLibreSsl.md
PR 15994 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 16241 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md
PR 16242 core/libs/prx/libSceLibreSsl/Export.cpp
core/libs/prx/libSceLibreSsl/include/Api.hpp
docs/dev/debt/libSceLibreSsl.md

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 7, 2026
@MarrasFederico MarrasFederico closed this by deleting the head repository Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant