fix(http): trust the system CA list for HTTPS requests #11134

Open
p3n1cillin wants to merge 18 commits from upstream-pr/11134 into main
p3n1cillin commented 2026-10-25 19:12:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by p3n1cillin on 2026-10-25T19:12:47Z.


What

Depends on #9834, which adds libSceHttp's request transport. The libSceSsl helper this PR calls came from #11145, now merged. The stack, from the bottom:

  • #9834's head 974dfd5ade, unchanged;
  • three commits I offered on #9834 (comment, branch claude/9834-fixes-1031):
    • the chunk trailer bound from MarcZX10's review of this PR;
    • the public-header fix from jotitadev's review of this PR;
    • a fix to #9834's offline-imports test, which had brought back an abort/delete loop main removed;
  • this PR's own three commits: the libSceHttp call, its test and debt entry, and two debt wording commits.

The libSceSsl code is the one merged with #11145, as MarcZX10 asked on #11145.

With #9834, every HTTPS request that doesn't install a verify callback fails with 0x80431063, last error 0x8095F00C (unknown CA). The cause is that the libSceSsl context the title passes to sceHttpInit starts with no trust anchors unless the title loads some itself. Titles that rely on the console's built-in trust can't reach any public server.

  • PokeMMO Prospero (PPSA98001) makes its Google sign-in and client download through libSceHttp. It calls no sceHttps* function, loads no certificate and installs no verify callback. Its README reports the Google Drive backup working on firmware 12.40.
  • ProsperoStore (PPSA99000) also loads no certificate, but explicitly enables the known-CA check with sceHttpsEnableOption before fetching its public catalog.

On the console, both requests pass the known-CA check against public roots, so the system must trust them by default. That is inferred from the titles, not measured.

The change (the libSceSsl parts came with #11145):

  • libSceSsl reads the system CA list, /<sandbox word>/common/cert/CA_LIST.cer, once per process. libkernel already serves that file from the host trust store (#5280). The roots are parsed into a separate allocation pool, so they aren't charged to the title's sceSslInit pool; PokeMMO's is 512 KiB.
  • A new internal call, SslTrustSystemRoots_nid_no_patch(connection), makes one connection trust those roots after the context's own authorities. The session links them into the chain instead of copying them, and unlinks them before freeing.
  • libSceHttp calls it for every HTTPS connection.
  • A missing list fails loudly: if the sandbox word is unavailable, or the list can't be opened, is empty or holds no certificate, the call throws and names the path. Nothing is cached after a failure, so a later call tries again (from the reviews on #11145).
  • Unchanged: a bare sceSslCreateConnection, and what sceSslGetCaList and sceSslGetCaCerts report. Whether a direct libSceSsl connection on the console trusts the system roots is not measured.
  • Debt entries in both libraries say what is inferred and what isn't measured.

Tested

Windows 11 Pro (26300), Ryzen 5 7600X, WinLibs GCC 15.2.0, Release, full build of head 35c09d332f (merges cleanly into main e49d43d625). 164 of 164 pass: the 98 tests that libSceHttp, libSceHttp2, libSceSsl and libSceNet register (including the two trailer cases in guest_http_transport and #11145's five system CA list tests), public_headers with its 64 compile tests, and guest_offline_imports. The libSceHttp code of this PR is unchanged from the earlier stack; the title runs below were made on that stack:

  • All tests that libSceHttp, libSceNet and libSceSsl register pass, including guest_http_transport with a new no-callback case.
  • PokeMMO Prospero (PPSA98001): before this change it logs cloud: POST send failed (0x80431063). With it:
    • it shows Google's "Back up to Google Drive" screen with a device code (sign-in code shown (… at https://www.google.com/device));
    • after "not now", its updater checks the release over HTTPS and downloads and installs its 92 MB client (client update: download done, 92 MB in 2 s, RESULT client.update PASS);
    • it then stops at its ROM screen, which needs the user's own ROMs.
  • ProsperoStore (PPSA99000), with #8346 also merged because it stops on sceAppInstUtilInitialize without it, from a cleared /data/prosperostore, 60 s each:
    • without this change: "The catalog is on its way";
    • with it: the catalog loads, "New in the catalog 12", and the store's signed update check offers 01.000.106.
  • Prospero Themes (PPSA90210), which installs its own accept-all callback, still loads its community store.

The new guest_http_transport case makes an HTTPS request with no callback to the fixture TLS server:

  • WSL Ubuntu 26.04.1, GCC 15.2.0: the test sets SSL_CERT_FILE to the fixture root, so the request succeeds. With the libSceHttp call removed, the test fails. The transport and libSceSsl tests pass.
  • Windows: the roots come from the user's real store, so the case checks for 0x8095F00C.

tools/check_conventions.py --base origin/main passes.

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: #9834 (plus the two commits offered there)
  • Fixes: none
  • Unblocks: PPSA98001 #12762 (Google Drive sign-in and client download), PPSA99000 #12763 (store catalog, with #8346)
  • GPUs tested: n/a
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5007815042 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11134). Originally posted by [p3n1cillin](https://github.com/p3n1cillin) on 2026-10-25T19:12:47Z. --- ### What **Depends on #9834**, which adds libSceHttp's request transport. The libSceSsl helper this PR calls came from #11145, now merged. The stack, from the bottom: - #9834's head `974dfd5ade`, unchanged; - three commits I offered on #9834 ([comment](https://github.com/boykopovar/AnyPS5/pull/9834#issuecomment-6536923062), branch [`claude/9834-fixes-1031`](https://github.com/p3n1cillin/AnyPS5/commits/claude/9834-fixes-1031)): - the chunk trailer bound from MarcZX10's review of this PR; - the public-header fix from jotitadev's review of this PR; - a fix to #9834's offline-imports test, which had brought back an abort/delete loop `main` removed; - this PR's own three commits: the libSceHttp call, its test and debt entry, and two debt wording commits. The libSceSsl code is the one merged with #11145, as MarcZX10 asked on #11145. With #9834, every HTTPS request that doesn't install a verify callback fails with `0x80431063`, last error `0x8095F00C` (unknown CA). The cause is that the libSceSsl context the title passes to `sceHttpInit` starts with no trust anchors unless the title loads some itself. Titles that rely on the console's built-in trust can't reach any public server. - **PokeMMO Prospero** (PPSA98001) makes its Google sign-in and client download through [libSceHttp](https://github.com/Shabbypenguin/PokeMMO-Prospero/blob/76239f78c3d280c5e8b877f34f1395b9fff19b78/loader/platform/ps5/platform_ps5.c#L450-L530). It calls no `sceHttps*` function, loads no certificate and installs no verify callback. Its [README](https://github.com/Shabbypenguin/PokeMMO-Prospero/blob/76239f78c3d280c5e8b877f34f1395b9fff19b78/README.md) reports the Google Drive backup working on firmware 12.40. - **ProsperoStore** (PPSA99000) also loads no certificate, but explicitly enables the known-CA check with [`sceHttpsEnableOption`](https://github.com/darkxex/ProsperoStore/blob/c44069bfca758436f0867e1881d44bd7bfc2178a/src/platform/ps5/store_http.cpp) before fetching its public catalog. On the console, both requests pass the known-CA check against public roots, so the system must trust them by default. That is inferred from the titles, not measured. The change (the libSceSsl parts came with #11145): - **libSceSsl** reads the system CA list, `/<sandbox word>/common/cert/CA_LIST.cer`, once per process. libkernel already serves that file from the host trust store (#5280). The roots are parsed into a separate allocation pool, so they aren't charged to the title's `sceSslInit` pool; PokeMMO's is 512 KiB. - A new internal call, `SslTrustSystemRoots_nid_no_patch(connection)`, makes one connection trust those roots after the context's own authorities. The session links them into the chain instead of copying them, and unlinks them before freeing. - **libSceHttp** calls it for every HTTPS connection. - **A missing list fails loudly:** if the sandbox word is unavailable, or the list can't be opened, is empty or holds no certificate, the call throws and names the path. Nothing is cached after a failure, so a later call tries again (from the reviews on #11145). - **Unchanged:** a bare `sceSslCreateConnection`, and what `sceSslGetCaList` and `sceSslGetCaCerts` report. Whether a direct libSceSsl connection on the console trusts the system roots is not measured. - **Debt entries** in both libraries say what is inferred and what isn't measured. ### Tested Windows 11 Pro (26300), Ryzen 5 7600X, WinLibs GCC 15.2.0, Release, full build of head `35c09d332f` (merges cleanly into `main` `e49d43d625`). 164 of 164 pass: the 98 tests that libSceHttp, libSceHttp2, libSceSsl and libSceNet register (including the two trailer cases in `guest_http_transport` and #11145's five system CA list tests), `public_headers` with its 64 compile tests, and `guest_offline_imports`. The libSceHttp code of this PR is unchanged from the earlier stack; the title runs below were made on that stack: - All tests that libSceHttp, libSceNet and libSceSsl register pass, including `guest_http_transport` with a new no-callback case. - **PokeMMO Prospero (PPSA98001):** before this change it logs `cloud: POST send failed (0x80431063)`. With it: - it shows Google's "Back up to Google Drive" screen with a device code (`sign-in code shown (… at https://www.google.com/device)`); - after "not now", its updater checks the release over HTTPS and downloads and installs its 92 MB client (`client update: download done, 92 MB in 2 s`, `RESULT client.update PASS`); - it then stops at its ROM screen, which needs the user's own ROMs. - **ProsperoStore (PPSA99000)**, with #8346 also merged because it stops on `sceAppInstUtilInitialize` without it, from a cleared `/data/prosperostore`, 60 s each: - without this change: "The catalog is on its way"; - with it: the catalog loads, "New in the catalog 12", and the store's signed update check offers 01.000.106. - **Prospero Themes (PPSA90210)**, which installs its own accept-all callback, still loads its community store. The new `guest_http_transport` case makes an HTTPS request with no callback to the fixture TLS server: - **WSL Ubuntu 26.04.1, GCC 15.2.0:** the test sets `SSL_CERT_FILE` to the fixture root, so the request succeeds. With the `libSceHttp` call removed, the test fails. The transport and libSceSsl tests pass. - **Windows:** the roots come from the user's real store, so the case checks for `0x8095F00C`. `tools/check_conventions.py --base origin/main` passes. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: #9834 (plus the two commits offered there) - [x] Fixes: none - [x] Unblocks: PPSA98001 #12762 (Google Drive sign-in and client download), PPSA99000 #12763 (store catalog, with #8346) - [x] GPUs tested: n/a - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-25 19:16:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T19:16:29Z.

Review: CHANGES_REQUESTED


I found one blocking input-bound issue in the chunked response reader; details are attached to the terminal-chunk loop below. I did not complete a full review of the 2,194-line diff, so this request is limited to that finding.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5644837101 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11134#pullrequestreview-5644837101). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T19:16:29Z. **Review:** CHANGES_REQUESTED --- I found one blocking input-bound issue in the chunked response reader; details are attached to the terminal-chunk loop below. I did not complete a full review of the 2,194-line diff, so this request is limited to that finding.
XairRrR commented 2026-10-29 06:33:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-29T06:33:52Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The PR's own change, the SslTrustSystemRoots_nid_no_patch call and its test, builds, passes and fails without the fix. But the branch no longer merges into current main: it conflicts in docs/dev/debt/libSceHttp.md.

What I ran

  • Head: 477088125636734d8635ff8d0d30f82ca4209526 (merge base 750cf6cf487f948017295b1f3717af6f886f0f85)
  • main: 2960e9a6e7e1fc99c4ed180c71495b5eb83464c7
  • Machine: Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08), Release, Ninja, a clean worktree.
git fetch origin main pull/11134/head:refs/review/11134
git checkout --detach origin/main
git merge --no-ff --no-edit refs/review/11134        # conflict, aborted
git merge --abort
git checkout --detach refs/review/11134
git diff --check origin/main...refs/review/11134
python3 tools/check_conventions.py --base origin/main
cmake -S . -B build
cmake --build build -j10
ctest --test-dir build -j4 --output-on-failure -R "http|ssl|offline_imports|guest_net|^net_|libressl"
# negative control A: reverse 9c4bf03871's Request.cpp hunk
git show 9c4bf03871 -- core/libs/prx/libSceHttp/src/Request.cpp | git apply -R
cmake --build build -j10 --target guest_http_transport_tests libs
ctest --test-dir build --output-on-failure -R "^guest_http_transport$"
git checkout -- .
# negative control B: reverse 36c6473fd3's Request.cpp hunks
git show 36c6473fd3 -- core/libs/prx/libSceHttp/src/Request.cpp | git apply -R
cmake --build build -j10 --target guest_http_transport_tests libs
ctest --test-dir build --output-on-failure -R "^guest_http_transport$"
git checkout -- .
cmake --build build -j10 --target guest_http_transport_tests libs
ctest --test-dir build --output-on-failure -R "^guest_http_transport$"

Because of the conflict, the build and the tests ran on the PR head, not on a merge with current main.

Results

Check Result
Merge into main 2960e9a6e7 Conflict in docs/dev/debt/libSceHttp.md
git diff --check clean
tools/check_conventions.py --base origin/main All conventions checks passed.
Full build (PR head) OK, no errors
84 HTTP, HTTP2, SSL, LibreSSL, net and offline-import tests 84 passed (guest_net_ctl skipped)
guest_http_transport Passed, 0.24 s
Negative control A (no SslTrustSystemRoots_nid_no_patch call) guest_http_transport fails (Subprocess aborted)
Negative control B (no trailer bound) guest_http_transport fails (Subprocess aborted)
Bundled #9834 code compared with #9834's current head 449a38aa08 no difference in core/libs/prx/libSceHttp, core/libs/tests/networking, HttpTransportContextAllocation.cpp or GuestHttp.cpp
Merge output
Auto-merging core/libs/prx/libSceNet/Export.cpp
Auto-merging docs/dev/debt/libSceHttp.md
CONFLICT (content): Merge conflict in docs/dev/debt/libSceHttp.md
Selected test lines
Test #1816: guest_http ................................   Passed    0.31 sec
Test #1819: guest_http_transport_context_allocation ...   Passed    0.00 sec
Test #1820: guest_http_transport ......................   Passed    0.23 sec
Test #1826: guest_http2_system_roots ..................   Passed    0.18 sec
Test  #319: guest_offline_imports .....................   Passed    0.00 sec
Test #2079: guest_ssl_system_roots_system .............   Passed    0.19 sec
Test #2080: guest_ssl_system_roots_context ............   Passed    0.19 sec
Test #2081: guest_ssl_system_roots_empty ..............   Passed    0.00 sec
100% tests passed out of 84
Negative control A
1/1 Test #1820: guest_http_transport .............Subprocess aborted***Exception:   0.25 sec
0% tests passed, 1 tests failed out of 1

Negative control

The transport (Request.cpp) does not exist on main, so restoring every production file from origin/main would leave the test unable to compile. Instead I reversed only the production hunks of each fix:

  • A: without the SslTrustSystemRoots_nid_no_patch call from 9c4bf03871, guest_http_transport aborts. That is the expected result, since the new CheckSystemRootTrust case sends an HTTPS request with no verify callback. The test prints no case name, so I did not confirm which case aborted.
  • B: without the trailer bound and DropConsumed from 36c6473fd3, guest_http_transport aborts. This is new evidence on MarcZX10's changes request about the unbounded trailer loop: the bound is present and the regression test covers it. I did not check the original review thread line by line.

With the production files restored, the test passes again.

Findings

Blocking

  1. Conflict with current main in docs/dev/debt/libSceHttp.md. main now has #11503, which extends the sceHttpParseResponseHeader entry with the PPSA01494 and PPSA34502 call sites (main L14-L15). This branch rewrites the last sentence of the adjacent sceHttpSetCookieEnabled entry (head L14-L15). The resolution looks mechanical: keep main's sceHttpParseResponseHeader text and the branch's new cookie sentence ("No cookie store is implemented, so the request transport neither keeps nor adds cookies."). The checklist's "Based on current main" line is not true until you rebase.

Non-blocking

  1. The test leaves a file in the system temp directory. main writes anyps5-http-roots-<pid>.pem to std::filesystem::temp_directory_path() and never removes it (GuestHttpTransport.cpp L538-L544), so every run on Linux adds one file. Suggestion: remove it before returning, or write it into the test's working directory as GuestSandboxCertificates.cpp does.
  2. The test has no working directory of its own. Because of SSL_CERT_FILE, libkernel writes the fixture root to cert_cache/CA_LIST.cer in the current directory. guest_http_transport runs in libSceHttp's shared binary directory (CMakeLists.txt L53); after my run, a cert_cache/CA_LIST.cer was left there, holding the single "AnyPS5 Tests" fixture root. guest_http2_system_roots gives itself a dedicated WORKING_DIRECTORY (libSceHttp2 CMakeLists.txt L55-L57). Doing the same here would keep the fixture cache out of other tests' way.
  3. A test log in the debt file, from the bundled #9834 commit 0b4a6766ab. The transport entry ends with "all four focused HTTP tests pass under x86-64 QEMU emulation, but a native x86-64/full project build was unavailable" (L38). Under the repository rule, test results go in the pull request, not the debt file. That sentence belongs to #9834, but merging this PR would land it, so it is worth dropping in #9834 or here.
  4. Merge order. This branch contains #9834's commits plus two that are not in #9834. #9834 is currently a draft and depends on #9630, which is open. The Depends on line names #9834 and the extra commits; it could also name #9630, since the author's own comment says this cannot merge before it. On Windows, CheckSystemRootTrust only checks the unknown-CA failure, so there the success path through the system roots is covered only by the libSceSsl tests from #11145. I could not run it on Windows.

Not verified

  • The merged tree, because of the conflict. The tests ran on the PR head (merge base 750cf6cf48).
  • The Windows build and the Windows branch of CheckSystemRootTrust.
  • The title runs in the description (PPSA98001, PPSA99000, PPSA90210); no title was launched.
  • Console behaviour. As the debt entry says, default trust for sandboxed libSceHttp requests is inferred from homebrew sources, not measured.
  • tools/pr_overlap.py was not run.

To get this to a good state

  1. Rebase onto current main and resolve the docs/dev/debt/libSceHttp.md conflict as described above.
  2. Optionally, remove the temporary PEM after the test, give guest_http_transport its own WORKING_DIRECTORY, and add #9630 to the Depends on line.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5693756656 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11134#pullrequestreview-5693756656). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-10-29T06:33:52Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The PR's own change, the `SslTrustSystemRoots_nid_no_patch` call and its test, builds, passes and fails without the fix. But the branch no longer merges into current `main`: it conflicts in `docs/dev/debt/libSceHttp.md`. ## What I ran - Head: `477088125636734d8635ff8d0d30f82ca4209526` (merge base `750cf6cf487f948017295b1f3717af6f886f0f85`) - `main`: `2960e9a6e7e1fc99c4ed180c71495b5eb83464c7` - Machine: Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08), Release, Ninja, a clean worktree. ```sh git fetch origin main pull/11134/head:refs/review/11134 git checkout --detach origin/main git merge --no-ff --no-edit refs/review/11134 # conflict, aborted git merge --abort git checkout --detach refs/review/11134 git diff --check origin/main...refs/review/11134 python3 tools/check_conventions.py --base origin/main cmake -S . -B build cmake --build build -j10 ctest --test-dir build -j4 --output-on-failure -R "http|ssl|offline_imports|guest_net|^net_|libressl" # negative control A: reverse 9c4bf03871's Request.cpp hunk git show 9c4bf03871 -- core/libs/prx/libSceHttp/src/Request.cpp | git apply -R cmake --build build -j10 --target guest_http_transport_tests libs ctest --test-dir build --output-on-failure -R "^guest_http_transport$" git checkout -- . # negative control B: reverse 36c6473fd3's Request.cpp hunks git show 36c6473fd3 -- core/libs/prx/libSceHttp/src/Request.cpp | git apply -R cmake --build build -j10 --target guest_http_transport_tests libs ctest --test-dir build --output-on-failure -R "^guest_http_transport$" git checkout -- . cmake --build build -j10 --target guest_http_transport_tests libs ctest --test-dir build --output-on-failure -R "^guest_http_transport$" ``` Because of the conflict, the build and the tests ran on the PR head, not on a merge with current `main`. ## Results | Check | Result | |---|---| | Merge into `main` `2960e9a6e7` | **Conflict** in `docs/dev/debt/libSceHttp.md` | | `git diff --check` | clean | | `tools/check_conventions.py --base origin/main` | `All conventions checks passed.` | | Full build (PR head) | OK, no errors | | 84 HTTP, HTTP2, SSL, LibreSSL, net and offline-import tests | 84 passed (`guest_net_ctl` skipped) | | `guest_http_transport` | Passed, 0.24 s | | Negative control A (no `SslTrustSystemRoots_nid_no_patch` call) | `guest_http_transport` fails (Subprocess aborted) | | Negative control B (no trailer bound) | `guest_http_transport` fails (Subprocess aborted) | | Bundled #9834 code compared with #9834's current head `449a38aa08` | no difference in `core/libs/prx/libSceHttp`, `core/libs/tests/networking`, `HttpTransportContextAllocation.cpp` or `GuestHttp.cpp` | <details><summary>Merge output</summary> ``` Auto-merging core/libs/prx/libSceNet/Export.cpp Auto-merging docs/dev/debt/libSceHttp.md CONFLICT (content): Merge conflict in docs/dev/debt/libSceHttp.md ``` </details> <details><summary>Selected test lines</summary> ``` Test #1816: guest_http ................................ Passed 0.31 sec Test #1819: guest_http_transport_context_allocation ... Passed 0.00 sec Test #1820: guest_http_transport ...................... Passed 0.23 sec Test #1826: guest_http2_system_roots .................. Passed 0.18 sec Test #319: guest_offline_imports ..................... Passed 0.00 sec Test #2079: guest_ssl_system_roots_system ............. Passed 0.19 sec Test #2080: guest_ssl_system_roots_context ............ Passed 0.19 sec Test #2081: guest_ssl_system_roots_empty .............. Passed 0.00 sec 100% tests passed out of 84 ``` </details> <details><summary>Negative control A</summary> ``` 1/1 Test #1820: guest_http_transport .............Subprocess aborted***Exception: 0.25 sec 0% tests passed, 1 tests failed out of 1 ``` </details> ## Negative control The transport (`Request.cpp`) does not exist on `main`, so restoring every production file from `origin/main` would leave the test unable to compile. Instead I reversed only the production hunks of each fix: - **A:** without the `SslTrustSystemRoots_nid_no_patch` call from 9c4bf03871, `guest_http_transport` aborts. That is the expected result, since the new `CheckSystemRootTrust` case sends an HTTPS request with no verify callback. The test prints no case name, so I did not confirm which case aborted. - **B:** without the trailer bound and `DropConsumed` from 36c6473fd3, `guest_http_transport` aborts. This is new evidence on MarcZX10's changes request about the unbounded trailer loop: the bound is present and the regression test covers it. I did not check the original review thread line by line. With the production files restored, the test passes again. ## Findings ### Blocking 1. **Conflict with current `main`** in `docs/dev/debt/libSceHttp.md`. `main` now has #11503, which extends the `sceHttpParseResponseHeader` entry with the PPSA01494 and PPSA34502 call sites ([main L14-L15](https://github.com/boykopovar/AnyPS5/blob/2960e9a6e7e1fc99c4ed180c71495b5eb83464c7/docs/dev/debt/libSceHttp.md#L14-L15)). This branch rewrites the last sentence of the adjacent `sceHttpSetCookieEnabled` entry ([head L14-L15](https://github.com/boykopovar/AnyPS5/blob/477088125636734d8635ff8d0d30f82ca4209526/docs/dev/debt/libSceHttp.md#L14-L15)). The resolution looks mechanical: keep `main`'s `sceHttpParseResponseHeader` text and the branch's new cookie sentence ("No cookie store is implemented, so the request transport neither keeps nor adds cookies."). The checklist's "Based on current `main`" line is not true until you rebase. ### Non-blocking 1. **The test leaves a file in the system temp directory.** `main` writes `anyps5-http-roots-<pid>.pem` to `std::filesystem::temp_directory_path()` and never removes it ([GuestHttpTransport.cpp L538-L544](https://github.com/boykopovar/AnyPS5/blob/477088125636734d8635ff8d0d30f82ca4209526/core/libs/tests/networking/GuestHttpTransport.cpp#L538-L544)), so every run on Linux adds one file. Suggestion: remove it before returning, or write it into the test's working directory as `GuestSandboxCertificates.cpp` does. 2. **The test has no working directory of its own.** Because of `SSL_CERT_FILE`, libkernel writes the fixture root to `cert_cache/CA_LIST.cer` in the current directory. `guest_http_transport` runs in libSceHttp's shared binary directory ([CMakeLists.txt L53](https://github.com/boykopovar/AnyPS5/blob/477088125636734d8635ff8d0d30f82ca4209526/core/libs/prx/libSceHttp/CMakeLists.txt#L53)); after my run, a `cert_cache/CA_LIST.cer` was left there, holding the single "AnyPS5 Tests" fixture root. `guest_http2_system_roots` gives itself a dedicated `WORKING_DIRECTORY` ([libSceHttp2 CMakeLists.txt L55-L57](https://github.com/boykopovar/AnyPS5/blob/477088125636734d8635ff8d0d30f82ca4209526/core/libs/prx/libSceHttp2/CMakeLists.txt#L55-L57)). Doing the same here would keep the fixture cache out of other tests' way. 3. **A test log in the debt file, from the bundled #9834 commit 0b4a6766ab.** The transport entry ends with "all four focused HTTP tests pass under x86-64 QEMU emulation, but a native x86-64/full project build was unavailable" ([L38](https://github.com/boykopovar/AnyPS5/blob/477088125636734d8635ff8d0d30f82ca4209526/docs/dev/debt/libSceHttp.md#L38)). Under the repository rule, test results go in the pull request, not the debt file. That sentence belongs to #9834, but merging this PR would land it, so it is worth dropping in #9834 or here. 4. **Merge order.** This branch contains #9834's commits plus two that are not in #9834. #9834 is currently a draft and depends on #9630, which is open. The `Depends on` line names #9834 and the extra commits; it could also name #9630, since the author's own comment says this cannot merge before it. On Windows, `CheckSystemRootTrust` only checks the unknown-CA failure, so there the success path through the system roots is covered only by the libSceSsl tests from #11145. I could not run it on Windows. ## Not verified - The merged tree, because of the conflict. The tests ran on the PR head (merge base `750cf6cf48`). - The Windows build and the Windows branch of `CheckSystemRootTrust`. - The title runs in the description (PPSA98001, PPSA99000, PPSA90210); no title was launched. - Console behaviour. As the debt entry says, default trust for sandboxed libSceHttp requests is inferred from homebrew sources, not measured. - `tools/pr_overlap.py` was not run. ## To get this to a good state 1. Rebase onto current `main` and resolve the `docs/dev/debt/libSceHttp.md` conflict as described above. 2. Optionally, remove the temporary PEM after the test, give `guest_http_transport` its own `WORKING_DIRECTORY`, and add #9630 to the `Depends on` line.
MarcZX10 commented 2026-10-29 07:10:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T07:10:13Z.

Review: CHANGES_REQUESTED


Re-checked — new head, changes still requested

The author’s restack and Windows report address the earlier dependency update, but this head still conflicts with current main in the HTTP debt file.

What I ran

  • Reviewed exact head 477088125636734d8635ff8d0d30f82ca4209526 against current main edf6804cf52c62eacafc592dd6142cb4efe5bd05.
  • Ran git merge-base, git merge-tree --write-tree, git diff --name-status, and git diff --check.
  • Checked current hosted results. I did not independently run the Windows or Linux tests.

Results

Check Result
PR base 750cf6cf48
Current-main merge preview Conflicts in docs/dev/debt/libSceHttp.md
Main changes since PR base on touched paths libSceNet/Export.cpp and docs/dev/debt/libSceHttp.md
Diff check Passed; no output
Hosted Windows / conventions / labels / eligibility / report Passed
Hosted Linux and specialized jobs Skipped
Author-reported focused suite 97 Windows HTTP/HTTP2/SSL/Net tests passed on head 4770881256 merged with main 750cf6cf48; this is not current main
Unedited available command output
$ git merge-tree --write-tree upstream/main refs/review/upstream-11134
 e2f4ae1f63d9a9068c51aa4aaeffeb4514de035b
100644 cbf8f2bed2716bf8c439b134c576cbd9b9550633 1 docs/dev/debt/libSceHttp.md
100644 c24ee6b1e0113769043abde62e4a9655270568bf 2 docs/dev/debt/libSceHttp.md
100644 8f97e87c3ec5156cca5a6feb5d48beac07a74e25 3 docs/dev/debt/libSceHttp.md

Auto-merging core/libs/prx/libSceNet/Export.cpp
Auto-merging docs/dev/debt/libSceHttp.md
CONFLICT (content): Merge conflict in docs/dev/debt/libSceHttp.md

$ git diff --check upstream/main...refs/review/upstream-11134

$ gh pr checks 11134 -R boykopovar/AnyPS5
conventions	pass	12s
labels	pass	7s
windows	pass	12m29s
linux	skipping	0
register-context	skipping	0
relinker	skipping	0
relinker-asan	skipping	0
write-watch	skipping	0
eligibility	pass	5s
report	pass	41s

Negative control

Check Result
Integration against current main Merge preview exposes the debt-file conflict; no behavior mutation or negative-control test was run

Findings

Blocking

  • Please rebase on current main and reconcile the libSceHttp debt entry. Main also changed libSceNet/Export.cpp after the report's base, so rerun the focused integration tests on the refreshed head before requesting another review.

Non-blocking

  • None beyond the integration updates above.

Sources

Not verified

  • The refreshed head after resolving the debt conflict, or Linux behavior.

To get this to a good state

  • Rebase, resolve the overlapping debt and export paths, rerun the focused tests against current main and the resulting head, and report the exact commits.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5694056488 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11134#pullrequestreview-5694056488). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T07:10:13Z. **Review:** CHANGES_REQUESTED --- # Re-checked — new head, changes still requested The author’s restack and Windows report address the earlier dependency update, but this head still conflicts with current `main` in the HTTP debt file. ## What I ran - Reviewed exact head `477088125636734d8635ff8d0d30f82ca4209526` against current `main` `edf6804cf52c62eacafc592dd6142cb4efe5bd05`. - Ran `git merge-base`, `git merge-tree --write-tree`, `git diff --name-status`, and `git diff --check`. - Checked current hosted results. I did not independently run the Windows or Linux tests. ## Results | Check | Result | |---|---| | PR base | `750cf6cf48` | | Current-main merge preview | Conflicts in `docs/dev/debt/libSceHttp.md` | | Main changes since PR base on touched paths | `libSceNet/Export.cpp` and `docs/dev/debt/libSceHttp.md` | | Diff check | Passed; no output | | Hosted Windows / conventions / labels / eligibility / report | Passed | | Hosted Linux and specialized jobs | Skipped | | Author-reported focused suite | 97 Windows HTTP/HTTP2/SSL/Net tests passed on head `4770881256` merged with main `750cf6cf48`; this is not current `main` | <details><summary>Unedited available command output</summary> ```text $ git merge-tree --write-tree upstream/main refs/review/upstream-11134 e2f4ae1f63d9a9068c51aa4aaeffeb4514de035b 100644 cbf8f2bed2716bf8c439b134c576cbd9b9550633 1 docs/dev/debt/libSceHttp.md 100644 c24ee6b1e0113769043abde62e4a9655270568bf 2 docs/dev/debt/libSceHttp.md 100644 8f97e87c3ec5156cca5a6feb5d48beac07a74e25 3 docs/dev/debt/libSceHttp.md Auto-merging core/libs/prx/libSceNet/Export.cpp Auto-merging docs/dev/debt/libSceHttp.md CONFLICT (content): Merge conflict in docs/dev/debt/libSceHttp.md $ git diff --check upstream/main...refs/review/upstream-11134 $ gh pr checks 11134 -R boykopovar/AnyPS5 conventions pass 12s labels pass 7s windows pass 12m29s linux skipping 0 register-context skipping 0 relinker skipping 0 relinker-asan skipping 0 write-watch skipping 0 eligibility pass 5s report pass 41s ``` </details> ## Negative control | Check | Result | |---|---| | Integration against current `main` | Merge preview exposes the debt-file conflict; no behavior mutation or negative-control test was run | ## Findings ### Blocking - Please rebase on current `main` and reconcile the `libSceHttp` debt entry. Main also changed `libSceNet/Export.cpp` after the report's base, so rerun the focused integration tests on the refreshed head before requesting another review. ### Non-blocking - None beyond the integration updates above. ## Sources - [Author's restack and Windows report](https://github.com/boykopovar/AnyPS5/pull/11134#issuecomment-6470731585) - [Current-main HTTP exports](https://github.com/boykopovar/AnyPS5/blob/edf6804cf52c62eacafc592dd6142cb4efe5bd05/core/libs/prx/libSceNet/Export.cpp) - [Current-main HTTP debt entry](https://github.com/boykopovar/AnyPS5/blob/edf6804cf52c62eacafc592dd6142cb4efe5bd05/docs/dev/debt/libSceHttp.md) - [PR-head HTTP changes](https://github.com/boykopovar/AnyPS5/tree/477088125636734d8635ff8d0d30f82ca4209526/core/libs/prx/libSceHttp) ## Not verified - The refreshed head after resolving the debt conflict, or Linux behavior. ## To get this to a good state - Rebase, resolve the overlapping debt and export paths, rerun the focused tests against current `main` and the resulting head, and report the exact commits.
MarcZX10 commented 2026-10-29 09:02:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T09:02:51Z.

Review: CHANGES_REQUESTED


Re-check — changes requested\n\nThanks, this resolves the earlier HTTP debt conflict and the unbounded chunk-trailer fix is now present in the stack. The Windows report covers 97 HTTP/HTTP2/SSL/Net tests and conventions on the refreshed 4c7d275bef base.\n\nCurrent upstream main has since advanced to aaccd0ba39, and this head is 44 commits behind it. CONTRIBUTING requires keeping the branch up to date with main. Please sync this head to the current main and rerun the relevant HTTP tests and conventions on the resulting exact head. I did not run them locally.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5695176479 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11134#pullrequestreview-5695176479). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T09:02:51Z. **Review:** CHANGES_REQUESTED --- ## Re-check — changes requested\n\nThanks, this resolves the earlier HTTP debt conflict and the unbounded chunk-trailer fix is now present in the stack. The Windows report covers 97 HTTP/HTTP2/SSL/Net tests and conventions on the refreshed 4c7d275bef base.\n\nCurrent upstream main has since advanced to aaccd0ba39, and this head is 44 commits behind it. CONTRIBUTING requires keeping the branch up to date with main. Please sync this head to the current main and rerun the relevant HTTP tests and conventions on the resulting exact head. I did not run them locally.
XairRrR commented 2026-10-29 13:05:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-29T13:05:21Z.

Review: APPROVED


Re-checked — approved

The rebase onto main 5454cd2e45 resolves the docs/dev/debt/libSceHttp.md conflict that blocked my last review; the merged tree builds, the HTTP, SSL and net tests pass, and the new test still fails without the fix.

What changed since my last review

  • Head 4770881256 → 0618c3d9c1, rebased from main 750cf6cf48 (via 4c7d275bef) to 5454cd2e45.
  • git range-diff over the 15 commits: 14 are identical. Only the first #9834 commit (859d586ef7) changed, in docs/dev/debt/libSceHttp.md: the conflict resolution described in the author's comments. main's sceHttpParseResponseHeader call-site sentence (PPSA01494, PPSA34502) and main's sceHttpWaitRequest sentence are kept, and so is the branch's new cookie sentence ("No cookie store is implemented, so the request transport neither keeps nor adds cookies.").
  • The bundled #9834 commits match #9834's current head 449a38aa08: git range-diff shows 9 of 10 identical, and the first one differs only in context lines from the different bases (GuestOfflineImports.cpp, the debt file).
  • The checklist now has Unblocks: PPSA98001 #12762, PPSA99000 #12763. The author reports a Windows rerun on 0618c3d9c1: 97 tests, guest_offline_imports and conventions pass. I accept that as author-reported.

What I ran

  • Head: 0618c3d9c135aa5799867caf9550922256fd77b5
  • main: 899ae3d1ad32ccea94dc24e66fdc948ce8a88171 (merge base 5454cd2e455994d992aca39335ce60507eeda1eb)
  • Merged tree: 8dcc97550b
  • Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08), Release, Ninja, a clean worktree.
git fetch origin main pull/11134/head:refs/review/11134
git range-diff 750cf6cf48..4770881256 5454cd2e45..0618c3d9c1
git range-diff <#9834 base>..449a38aa08 5454cd2e45..b0f6accebb
git checkout --detach origin/main
git merge --no-ff --no-edit refs/review/11134
git diff --check origin/main...refs/review/11134
python3 tools/check_conventions.py --base origin/main
cmake --build build -j10
ctest --test-dir build -j4 --output-on-failure -R "http|ssl|offline_imports|guest_net|^net_|libressl"
# negative control: reverse 16f11e8ffd's Request.cpp hunk
git show 16f11e8ffd -- core/libs/prx/libSceHttp/src/Request.cpp | git apply -R
cmake --build build -j10 --target guest_http_transport_tests libs
ctest --test-dir build --output-on-failure -R "^guest_http_transport$"
git checkout -- .
cmake --build build -j10 --target guest_http_transport_tests libs
ctest --test-dir build --output-on-failure -R "^guest_http_transport$"
Check Result
Merge into main 899ae3d1ad clean
git diff --check clean
tools/check_conventions.py --base origin/main All conventions checks passed.
Full build (merged tree) OK, 0 errors
90 HTTP, HTTP2, SSL, LibreSSL, net and offline-import tests 90 passed (guest_net_ctl skipped)
Negative control (no SslTrustSystemRoots_nid_no_patch call) guest_http_transport aborts; passes again once restored
Selected test lines
13/90 Test #1984: guest_http_transport .........................   Passed    0.24 sec
48/90 Test #1983: guest_http_transport_context_allocation ......   Passed    0.00 sec
11/90 Test #1990: guest_http2_system_roots .....................   Passed    0.18 sec
 7/90 Test #2268: guest_ssl_system_roots_system ................   Passed    0.20 sec
10/90 Test #2269: guest_ssl_system_roots_context ...............   Passed    0.20 sec
32/90 Test #2270: guest_ssl_system_roots_empty .................   Passed    0.00 sec
44/90 Test #2271: guest_ssl_system_roots_blank .................   Passed    0.00 sec
46/90 Test  #432: guest_offline_imports ........................   Passed    0.00 sec
100% tests passed out of 90
Negative control
1/1 Test #1984: guest_http_transport .............Subprocess aborted***Exception:   0.30 sec
0% tests passed, 1 tests failed out of 1

Previous findings

  • Blocking 1, conflict in docs/dev/debt/libSceHttp.md: Resolved. The merge with current main is clean, and both sides' sentences are present (lines 14-15 of the merged file).
  • Non-blocking 1, PEM left in the system temp directory: Still open. GuestHttpTransport.cpp L538-L544 is unchanged.
  • Non-blocking 2, no dedicated WORKING_DIRECTORY for guest_http_transport: Still open. CMakeLists.txt L53-L54 is unchanged.
  • Non-blocking 3, the QEMU test-result sentence in the debt file: Still open. It is still at the end of libSceHttp.md L38, from #9834.
  • Non-blocking 4, merge order: Still open. #9834 is still a draft, #9630 is still open, and the Depends on line still names only #9834.

New findings

Blocking

None.

Non-blocking

  1. The Tested section names an old base. It still says head 4770881256 on main 750cf6cf48 and #9834 head 2a6b65da00. The rerun on 0618c3d9c1 and #9834's 449a38aa08 appears only in the latest comment. Copying that into the description would keep the description and the head in step.

Not verified

  • The Windows build and the Windows branch of CheckSystemRootTrust.
  • The title runs (PPSA98001, PPSA99000, PPSA90210); no title was launched.
  • Console default trust for sandboxed libSceHttp requests, which the debt entry marks as inferred.
  • tools/pr_overlap.py was not run.

The approval covers this PR's change on top of the bundled #9834 commits. It still has to merge after #9630 and #9834, as the author says.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5698138270 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11134#pullrequestreview-5698138270). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-10-29T13:05:21Z. **Review:** APPROVED --- # Re-checked — approved The rebase onto `main` `5454cd2e45` resolves the `docs/dev/debt/libSceHttp.md` conflict that blocked my last review; the merged tree builds, the HTTP, SSL and net tests pass, and the new test still fails without the fix. ## What changed since my last review - Head `4770881256` → `0618c3d9c1`, rebased from `main` `750cf6cf48` (via `4c7d275bef`) to `5454cd2e45`. - `git range-diff` over the 15 commits: 14 are identical. Only the first #9834 commit (`859d586ef7`) changed, in `docs/dev/debt/libSceHttp.md`: the conflict resolution described in the author's comments. `main`'s `sceHttpParseResponseHeader` call-site sentence (PPSA01494, PPSA34502) and `main`'s `sceHttpWaitRequest` sentence are kept, and so is the branch's new cookie sentence ("No cookie store is implemented, so the request transport neither keeps nor adds cookies."). - The bundled #9834 commits match #9834's current head `449a38aa08`: `git range-diff` shows 9 of 10 identical, and the first one differs only in context lines from the different bases (`GuestOfflineImports.cpp`, the debt file). - The checklist now has `Unblocks: PPSA98001 #12762, PPSA99000 #12763`. The author reports a Windows rerun on `0618c3d9c1`: 97 tests, `guest_offline_imports` and conventions pass. I accept that as author-reported. ## What I ran - Head: `0618c3d9c135aa5799867caf9550922256fd77b5` - `main`: `899ae3d1ad32ccea94dc24e66fdc948ce8a88171` (merge base `5454cd2e455994d992aca39335ce60507eeda1eb`) - Merged tree: `8dcc97550b` - Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08), Release, Ninja, a clean worktree. ```sh git fetch origin main pull/11134/head:refs/review/11134 git range-diff 750cf6cf48..4770881256 5454cd2e45..0618c3d9c1 git range-diff <#9834 base>..449a38aa08 5454cd2e45..b0f6accebb git checkout --detach origin/main git merge --no-ff --no-edit refs/review/11134 git diff --check origin/main...refs/review/11134 python3 tools/check_conventions.py --base origin/main cmake --build build -j10 ctest --test-dir build -j4 --output-on-failure -R "http|ssl|offline_imports|guest_net|^net_|libressl" # negative control: reverse 16f11e8ffd's Request.cpp hunk git show 16f11e8ffd -- core/libs/prx/libSceHttp/src/Request.cpp | git apply -R cmake --build build -j10 --target guest_http_transport_tests libs ctest --test-dir build --output-on-failure -R "^guest_http_transport$" git checkout -- . cmake --build build -j10 --target guest_http_transport_tests libs ctest --test-dir build --output-on-failure -R "^guest_http_transport$" ``` | Check | Result | |---|---| | Merge into `main` `899ae3d1ad` | clean | | `git diff --check` | clean | | `tools/check_conventions.py --base origin/main` | `All conventions checks passed.` | | Full build (merged tree) | OK, 0 errors | | 90 HTTP, HTTP2, SSL, LibreSSL, net and offline-import tests | 90 passed (`guest_net_ctl` skipped) | | Negative control (no `SslTrustSystemRoots_nid_no_patch` call) | `guest_http_transport` aborts; passes again once restored | <details><summary>Selected test lines</summary> ``` 13/90 Test #1984: guest_http_transport ......................... Passed 0.24 sec 48/90 Test #1983: guest_http_transport_context_allocation ...... Passed 0.00 sec 11/90 Test #1990: guest_http2_system_roots ..................... Passed 0.18 sec 7/90 Test #2268: guest_ssl_system_roots_system ................ Passed 0.20 sec 10/90 Test #2269: guest_ssl_system_roots_context ............... Passed 0.20 sec 32/90 Test #2270: guest_ssl_system_roots_empty ................. Passed 0.00 sec 44/90 Test #2271: guest_ssl_system_roots_blank ................. Passed 0.00 sec 46/90 Test #432: guest_offline_imports ........................ Passed 0.00 sec 100% tests passed out of 90 ``` </details> <details><summary>Negative control</summary> ``` 1/1 Test #1984: guest_http_transport .............Subprocess aborted***Exception: 0.30 sec 0% tests passed, 1 tests failed out of 1 ``` </details> ## Previous findings - Blocking 1, conflict in `docs/dev/debt/libSceHttp.md`: **Resolved.** The merge with current `main` is clean, and both sides' sentences are present (lines 14-15 of the merged file). - Non-blocking 1, PEM left in the system temp directory: **Still open.** [GuestHttpTransport.cpp L538-L544](https://github.com/boykopovar/AnyPS5/blob/0618c3d9c135aa5799867caf9550922256fd77b5/core/libs/tests/networking/GuestHttpTransport.cpp#L538-L544) is unchanged. - Non-blocking 2, no dedicated `WORKING_DIRECTORY` for `guest_http_transport`: **Still open.** [CMakeLists.txt L53-L54](https://github.com/boykopovar/AnyPS5/blob/0618c3d9c135aa5799867caf9550922256fd77b5/core/libs/prx/libSceHttp/CMakeLists.txt#L53-L54) is unchanged. - Non-blocking 3, the QEMU test-result sentence in the debt file: **Still open.** It is still at the end of [libSceHttp.md L38](https://github.com/boykopovar/AnyPS5/blob/0618c3d9c135aa5799867caf9550922256fd77b5/docs/dev/debt/libSceHttp.md#L38), from #9834. - Non-blocking 4, merge order: **Still open.** #9834 is still a draft, #9630 is still open, and the `Depends on` line still names only #9834. ## New findings ### Blocking None. ### Non-blocking 1. **The `Tested` section names an old base.** It still says head `4770881256` on `main` `750cf6cf48` and #9834 head `2a6b65da00`. The rerun on `0618c3d9c1` and #9834's `449a38aa08` appears only in the latest comment. Copying that into the description would keep the description and the head in step. ## Not verified - The Windows build and the Windows branch of `CheckSystemRootTrust`. - The title runs (PPSA98001, PPSA99000, PPSA90210); no title was launched. - Console default trust for sandboxed libSceHttp requests, which the debt entry marks as inferred. - `tools/pr_overlap.py` was not run. The approval covers this PR's change on top of the bundled #9834 commits. It still has to merge after #9630 and #9834, as the author says.
jotitadev commented 2026-10-30 14:36:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-30T14:36:55Z.

Review: COMMENTED


This head fails public_headers, both on its own and merged into current main.

Ubuntu 26.04, i7-8700, GCC 15.2, Release, BUILD_TESTING=ON. Head 0618c3d9c1 merged (--no-commit) onto main f91137142e. The merge is clean and the full build passes. All HTTP/SSL/net tests pass except public_headers (38/39). The build CI doesn't run on PRs, so it didn't show up here.

The audit finds 43 exports declared a second time outside their public header. All of them come from the extern "C" blocks in the #9834 files of this stack, and #9834's head b6df6465e7 fails the same way:

  • libSceHttp/src/Request.cpp:33-55: the sceNet* and sceSsl* exports and sceHttpUriParse, sceHttpUriMerge, sceHttpParseStatusLine;
  • tests/networking/GuestHttpTransport.cpp:41-64 and tests/HttpTransportContextAllocation.cpp:11-20: the sceHttp*, sceNetInit and sceSslInit/Term exports.
sceSslWrite: expected exactly one header declaration; found 2: core/libs/prx/libSceHttp/src/Request.cpp:52, core/libs/prx/libSceSsl/include/Ssl.hpp:24

It goes away if those files include prx/libSceHttp/include/Http.hpp, prx/libSceNet/include/Net.hpp and prx/libSceSsl/include/Ssl.hpp, and the APS5_VABI lines are dropped. The signatures match the headers. Request.cpp keeps its four *_nid_no_patch lines. One more change is needed: HttpTransportContextAllocation.cpp then has to pass reinterpret_cast<::HttpMemoryPoolStats*>(buffer) to sceHttpGetMemoryPoolStats, because the header takes a typed pointer.

With that change (3 files, +9/-55), on the same merge:

  • Audit: 0 errors.
  • Full build OK.
  • HTTP/SSL/net tests plus public_headers and the 64 public_headers_compile_*: 103/103 pass.
  • guest_http_transport*: passes 3/3.

I checked this on Linux only. The Windows side, Net.hpp included after winsock2.h, isn't tested.

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5713857771 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11134#pullrequestreview-5713857771). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-30T14:36:55Z. **Review:** COMMENTED --- This head fails `public_headers`, both on its own and merged into current `main`. Ubuntu 26.04, i7-8700, GCC 15.2, Release, `BUILD_TESTING=ON`. Head `0618c3d9c1` merged (`--no-commit`) onto `main` `f91137142e`. The merge is clean and the full build passes. All HTTP/SSL/net tests pass except `public_headers` (38/39). The build CI doesn't run on PRs, so it didn't show up here. The audit finds 43 exports declared a second time outside their public header. All of them come from the `extern "C"` blocks in the #9834 files of this stack, and #9834's head `b6df6465e7` fails the same way: - `libSceHttp/src/Request.cpp:33-55`: the `sceNet*` and `sceSsl*` exports and `sceHttpUriParse`, `sceHttpUriMerge`, `sceHttpParseStatusLine`; - `tests/networking/GuestHttpTransport.cpp:41-64` and `tests/HttpTransportContextAllocation.cpp:11-20`: the `sceHttp*`, `sceNetInit` and `sceSslInit`/`Term` exports. ``` sceSslWrite: expected exactly one header declaration; found 2: core/libs/prx/libSceHttp/src/Request.cpp:52, core/libs/prx/libSceSsl/include/Ssl.hpp:24 ``` It goes away if those files include `prx/libSceHttp/include/Http.hpp`, `prx/libSceNet/include/Net.hpp` and `prx/libSceSsl/include/Ssl.hpp`, and the `APS5_VABI` lines are dropped. The signatures match the headers. `Request.cpp` keeps its four `*_nid_no_patch` lines. One more change is needed: `HttpTransportContextAllocation.cpp` then has to pass `reinterpret_cast<::HttpMemoryPoolStats*>(buffer)` to `sceHttpGetMemoryPoolStats`, because the header takes a typed pointer. With that change (3 files, +9/-55), on the same merge: - Audit: 0 errors. - Full build OK. - HTTP/SSL/net tests plus `public_headers` and the 64 `public_headers_compile_*`: 103/103 pass. - `guest_http_transport*`: passes 3/3. I checked this on Linux only. The Windows side, `Net.hpp` included after `winsock2.h`, isn't tested. Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
jotitadev commented 2026-10-30 20:18:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-30T20:18:08Z.

Review: COMMENTED


Re-checked f9f85640fd on Linux: public_headers passes, so both sides are covered now.

Ubuntu 26.04, i7-8700, GCC 15.2, Release, BUILD_TESTING=ON. Head merged (--no-commit) onto current main 16345cad6a; clean merge, full build OK.

  • public_headers and guest_http_transport*: pass 3/3.
  • HTTP/SSL/net tests, public_headers* and guest_offline_imports: 160/160.
  • Control: reverting only f9f85640fd on the merge brings back the same 43 duplicate declarations and public_headers fails.

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5718178230 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11134#pullrequestreview-5718178230). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-30T20:18:08Z. **Review:** COMMENTED --- Re-checked `f9f85640fd` on Linux: `public_headers` passes, so both sides are covered now. Ubuntu 26.04, i7-8700, GCC 15.2, Release, `BUILD_TESTING=ON`. Head merged (`--no-commit`) onto current `main` `16345cad6a`; clean merge, full build OK. - `public_headers` and `guest_http_transport*`: pass 3/3. - HTTP/SSL/net tests, `public_headers*` and `guest_offline_imports`: 160/160. - Control: reverting only `f9f85640fd` on the merge brings back the same 43 duplicate declarations and `public_headers` fails. Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
XairRrR commented 2026-11-02 23:10:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-02T23:10:26Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

This pull request does not merge cleanly into main (5cb015caaa): head 35c09d332f conflicts in

  • core/libs/prx/libSceHttp/CMakeLists.txt

Please rebase it onto current main. I will review the change once it merges cleanly.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5744740171 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11134#pullrequestreview-5744740171). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-02T23:10:26Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested This pull request does not merge cleanly into `main` (5cb015caaaaf83f8ee431414ee6a457b5b307d49): head 35c09d332f3e86b6846ba05a25f662e25e8b7de9 conflicts in - `core/libs/prx/libSceHttp/CMakeLists.txt` Please rebase it onto current `main`. I will review the change once it merges cleanly. <!-- anyps5-bots job=2795 head=35c09d332f3e86b6846ba05a25f662e25e8b7de9 -->
MarcZX10 commented 2026-11-14 07:53:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T07:53:55Z.

Review: COMMENTED


Reviewed — comments

Nothing blocks this; the points below are optional.

What I ran

Inspected the prepared diff and changed source at head 35c09d332f3e86b6846ba05a25f662e25e8b7de9 through repo_read.py. No build or tests were run during this review.

Results

Check Result Note
Source inspection passed Transport and resolver paths reviewed
Build and tests not run Author-reported results only

Findings

Blocking

None.

Non-blocking

  • HostResolver::Start() leaves already-started detached workers alive if creation of a later worker throws, then the failure path deletes the resolver they access. If fewer than four workers can be created, this can leave threads using freed resolver state. See core/libs/prx/libSceHttp/src/Resolver.cpp:44.

Not verified

  • I read every changed source file listed in the review bundle. The bundle README identifies all 11 changed files as included; the corresponding changed lines in manifest.json were not individually cross-checked against the diff.
  • Build, tests, Windows and console behavior were not independently verified. The results in the PR description are author-reported.

To get this to a good state

Nothing is required. Consider making resolver worker startup all-or-nothing, or retaining the resolver for the lifetime of any successfully started worker.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5902880221 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11134#pullrequestreview-5902880221). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T07:53:55Z. **Review:** COMMENTED --- # Reviewed — comments Nothing blocks this; the points below are optional. ## What I ran Inspected the prepared diff and changed source at head `35c09d332f3e86b6846ba05a25f662e25e8b7de9` through `repo_read.py`. No build or tests were run during this review. ## Results | Check | Result | Note | |---|---|---| | Source inspection | passed | Transport and resolver paths reviewed | | Build and tests | not run | Author-reported results only | ## Findings ### Blocking None. ### Non-blocking - `HostResolver::Start()` leaves already-started detached workers alive if creation of a later worker throws, then the failure path deletes the resolver they access. If fewer than four workers can be created, this can leave threads using freed resolver state. See `core/libs/prx/libSceHttp/src/Resolver.cpp:44`. ## Not verified - I read every changed source file listed in the review bundle. The bundle README identifies all 11 changed files as included; the corresponding changed lines in `manifest.json` were not individually cross-checked against the diff. - Build, tests, Windows and console behavior were not independently verified. The results in the PR description are author-reported. ## To get this to a good state Nothing is required. Consider making resolver worker startup all-or-nothing, or retaining the resolver for the lifetime of any successfully started worker.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/11134:upstream-pr/11134'
git switch 'upstream-pr/11134'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/11134'
git switch 'upstream-pr/11134'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/11134'
git switch 'upstream-pr/11134'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/11134'
git switch 'main'
git merge --squash 'upstream-pr/11134'
git switch 'main'
git merge --ff-only 'upstream-pr/11134'
git switch 'main'
git merge 'upstream-pr/11134'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!11134
No description provided.