fix: report five always-throwing network and kernel exports as not implemented #11042
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11042"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-25T14:57:03Z.
What
This is #10984's fix applied to five network and kernel exports. Each of them threw a bare exception on every valid call, so
tools/progress.pycounted it as implemented. The final path now goes throughNotImplemented_nid_no_patch, which counts it as todo (6,104 → 6,099 of 12,305).A valid call sees no change in behaviour beyond the exception: it still throws, now with the text
<name> not implemented, andsceKernelInternalMemoryGetAvailableSizethrows aruntime_errorwhere it threw alogic_error. Every early answer is unchanged, includingsceNetCtlGetInfoV6's NOT_CONNECTED on a host without an IPv6 address, and each debt entry keeps the old reason.sceNetCtlGetInfoV6: "info code is not implemented", on a host with an IPv6 address.sceRudpActivate: threwruntime_error("sceRudpActivate"), as transport mode checks, address conversion and connection activation are not implemented.sceKernelInternalMemoryGetAvailableSize: "internal pool statistics are not implemented".mlockall: "MCL_FUTURE is not implemented: later mappings are not locked" and "MCL_CURRENT is not implemented: the process also holds host stacks, heaps, modules and driver mappings".EINVALfor zero or unknown flags is unchanged.clock_settime: "setting CLOCK_REALTIME toRelated: #10984 (the same fix for four exports), #11009 (the same fix for seven content and audio exports).
Tested
agc_write_tracking_metadata_commitfailed once in each of two attempts ('an untouched leaf has a write stamp'), a test this PR doesn't touch. Run 40201834100: it then passed 20 of 20 on this head.guest_net_ctl,guest_rudp_context_lifecycle,guest_memory,guest_mlockandguest_freebsd_clocksrequire the exact<name> not implementedtext. Each fails with its commit's product change reverted and passes with it.guest_net_ctl's new check was run under anLD_PRELOADgetifaddrsshim that adds one.8a3605f69a, a merge ofmain636a9c1eec(run).main's #10299 rewrites the socket debt entry right after themlockallentry this PR changes; the merge keeps both, and nothing else conflicted. Theguest_net_ctl,guest_rudp_context_lifecycle,guest_memory,guest_mlock,guest_freebsd_clocksandguest_mmap_fixed_anonymoustests, with the tests the selection pulls in for the files this PR touches, pass 10 runs in a row. Linux: 23 run, 23 pass, 0 skip, 0 fail. Windows: 28 run, 28 pass, 0 skip, 0 fail,agc_write_tracking_metadata_commitamong them. The before arm failsguest_rudp_context_lifecycle,guest_net_ctl,guest_freebsd_clocks,guest_memoryandguest_mlockon both. Suites: libc and libkernel pass on Linux (144 and 208) and on Windows (171 and 224). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.077a4ae318, a merge ofmain49d1f9b07e(run). Gruzzberry's #9682 adds asettimeofdayentry right before theclock_settimeentry this PR changes; the merge keeps both, and nothing else conflicted. This PR's changed lines are the same as before the merge. Theguest_net_ctl,guest_rudp_context_lifecycle,guest_memory,guest_mlock,guest_freebsd_clocks,guest_mmap_fixed_anonymousandguest_kernel_systests (the last holdsmain's newsettimeofdaycases), with the tests the selection pulls in for the files this PR touches, pass 10 runs in a row. Linux: 24 run, 24 pass, 0 skip, 0 fail. Windows: 29 run, 29 pass, 0 skip, 0 fail. The before arm failsguest_rudp_context_lifecycle,guest_net_ctl,guest_freebsd_clocks,guest_memoryandguest_mlockon both. Suites: libc and libkernel pass on Linux (144 and 209), and libc passes on Windows (171). On Windows, libkernel's suite runs 227 tests and failsguest_timed_join_import_libkernel_sysandguest_timed_join_import_libkernel_web, which this PR doesn't touch;main88f99678bffails the same two in this verify's Windows job (run), andmain's own Windows CI passes them. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.e488e5b8f3, following the rule that tests don't require a placeholder to throw (run). The tests no longer require the exact<name> not implementedtext fromsceKernelInternalMemoryGetAvailableSize,mlockall(three flag values),clock_settime(three times),sceNetCtlGetInfoV6with an IPv6 address andsceRudpActivate, since such a check fails once the call is implemented. The calls still throw, as the debt entries say, and the argument checks stay. The five tests, with the other tests the run picked, pass 10 runs in a row. Linux: 23 run, 23 pass, 0 skip, 0 fail. Windows: 28 run, 28 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (144 and 209). On Windows libc passes (171), and libkernel has 2 failures of 227,guest_timed_join_import_libkernel_sysandguest_timed_join_import_libkernel_web, which fail onmaintoo (run). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.7ace2fe514, a merge ofmain518d36eaec(run, run). xXPBSXx's #10148 rewrites thesceNetCtlGetInfoentry indocs/dev/debt/libSceNetCtl.md, on the line before thesceNetCtlGetInfoV6entry this PR changes; the merge keepsmain'ssceNetCtlGetInfoentry and this PR'ssceNetCtlGetInfoV6one. Nothing else conflicted, and this PR's changed lines are the same. The first run took this PR's six tests with the tests for every file the merge changes, 10 runs each. Linux: 255 run, 246 pass, 9 skip (seven AGC tests on lavapipe and two video-out tests with no display or Vulkan device), 0 fail; libc and libkernel pass (145 and 212). Windows: 275 run, 188 pass, 85 skip (83 AGC tests and the same two video-out tests, no Vulkan device), 2 fail:agc_driver_frame_replayandagc_driver_frame_replay_concurrent, whoseagc_frame_replayhelper exited with 0xC0000139 (entry point not found) within 0.2 s. On Windows libc passes (174), and libkernel has 4 failures of 233:exec_arguments,guest_timed_join_import_libkernel_sysandguest_timed_join_import_libkernel_web, each a PythonFileNotFoundError: [WinError 2](the system cannot find the file specified), andguest_kqueue, which aborted (0xc0000409) after 2.79 s. The second run, on the same commit, namesguest_kqueue, theagc_driver_frame_replaytests and this PR's six tests, 10 runs each. Linux: 30 run, 30 pass, 0 skip, 0 fail. Windows: 40 run, 40 pass, 0 skip, 0 fail, includingguest_kqueueand all eightagc_driver_frame_replaytests. Suites: libc and libkernel pass on Linux (145 and 212) and on Windows (174 and 233),exec_arguments,guest_kqueueand the twoguest_timed_join_importtests included. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.06e6e107a1, a merge ofmain439d03db38(run), as oneandonlydean asked. InTime.cpp,clock_settimekeeps 00xDisaster's #11402 checked copy of the time (EFAULT) andmain's argument checks (EINVAL), in that order, and a valid request then takesNotImplemented_nid_no_patchinstead ofmain's exception.GuestMlock.cppkeepsmain's ASan/TSan guard, and this PR's removal of themlockallthrow checks stays. Themlockalldebt entry keepsmain's text with this PR's sentence on valid flags.guest_freebsd_clocks,guest_mlock,guest_memory,guest_mmap_fixed_anonymous,guest_net_ctlandguest_rudp_context_lifecycle, with the tests for the files the merge changes, pass 10 runs in a row. Linux: 26 run, 26 pass, 0 skip, 0 fail. Windows: 32 run, 32 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (166 and 264). On Windows libc passes (194) and libkernel passes 283 of 286:exec_arguments,guest_timed_join_import_libkernel_sysandguest_timed_join_import_libkernel_webfail at their setup in the verify's Windows build (FileNotFoundErrorstarting the title, or copying the libraries they load), withmain's code too, and pass inmain's own Windows job at1829def9bf(job). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.0efa1a8697, a merge ofmainef7515f071(run). The one conflict wasdocs/dev/debt/libkernel.md'ssceKernelInternalMemoryGetAvailableSizeentry, where ionut27001's #11897 records what a payload process on a PS5 (firmware 12.70) got; the merge takes #11897's measured text and keeps this PR's wording that a non-null query goes throughNotImplemented_nid_no_patch. The code and the rest of this PR's diff are the same. The clock, memory,mlock, network and write-tracking tests, with the shader tests built in the same executables, ran 10 times with no failure (each runner builds its own set). Linux: 26 run, 26 pass, 0 skip, 0 fail. Windows: 32 run, 32 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (166 and 265). On Windows libc passes (194), and libkernel passes 285 of 288:exec_arguments,guest_timed_join_import_libkernel_sysandguest_timed_join_import_libkernel_webfail at their setup in the verify's Windows build (FileNotFoundErrorstarting the title, or copying the libraries they load), withmain's code too, and pass inmain's own Windows job at1829def9bf(job). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.49a05d8769, a merge ofmain7a96c6af26(run). zaryabzip's #13799 (sceRudpBind,sceRudpListenandsceRudpAccept) changes thesceRudpBindcall that follows thesceRudpActivatethrow check this PR removes fromGuestRudpContextLifecycle.cpp, tosceRudpBind(ctx, 5, 0, 2). The merge keeps both changes, and nothing else conflicted. #13799 doesn't changesceRudpActivate, and this PR's other changed lines are the same as before the merge. Nine tests pass 10 runs in a row: this PR's six,main's newguest_rudp_listen,guest_offline_imports(which callssceRudpActivate) andguest_mmap_executable. Linux: 9 run, 9 pass, 0 skip, 0 fail. Windows: 9 run, 9 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (199 and 308) and on Windows (226 and 330). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.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)docs/dev/debt/libkernel.md, resolved here after it merges, keeping both); #14049 (xXPBSXx) goes after this PR (merge order only, on #14049). #9682, #10148 and #11402 have merged, and this branch carries themImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T15:18:23Z.
Review: APPROVED
Reviewed exact head
79d7265aa9. The changes preserve each export's existing argument validation and early error returns, then route only previously always-throwing valid calls through NotImplemented_nid_no_patch. Tests now require the exact marker text and retain checks for the earlier validation answers. I syntax-compiled the changed production and test translation units with GCC; GuestMemory needed its normal generated GUEST_MEMORY_MODULE macro supplied. The author reports focused red-green checks and hosted runner results; product jobs are skipped by path policy.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T15:54:51Z.
Review: CHANGES_REQUESTED
The reviewed head
79d7265aa953cc56e2e4f587fbcb2561ce5a1dd5is based on3a2c51afd2ee6a824cd3a294912c65e6bbf2b768, while current upstreammainis160f6592b55cab4216a2a3c558ffbd6ce3b7dad9. GitHub reports this PR asDIRTY; a local three-way merge of those exact refs conflicts indocs/dev/debt/libkernel.md. Please rebase onto currentmain, resolve the debt-file conflict while preserving both sides, and rerun the focused checks.The overlap report also names open #7464, #9682 and #10148. I fetched their current heads and trial-merged each against this head; conflicts are limited to the relevant debt file(s). These changes appear to document separate behaviors, but
CONTRIBUTING.mdasks authors to agree on order for reported shared-line overlaps and record any required dependency in the checklist. Please coordinate with those authors and updateDepends onif one needs to land first. #10299 is already merged and is an ancestor of currentmain, so it does not need a pending dependency entry.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T02:37:20Z.
Review: APPROVED
Re-checked — new head, looks good
The current-head rebase preserves the five export changes, records the agreed ordering with adjacent debt-file work, and includes fresh Linux/Windows baseline-versus-change results.
What I ran
Reviewed head
49a05d87690484267f976433b818230db106e832against PR base7a96c6af261cc94c366274eff6274cd972355a9c; the merge preview against currentmaincf79276fee2f042feb6a7c71d0d6a27e9cfe2592is clean. Environment: Debian Linux x86-64, Python 3.11.2; no local C++ build or tests.Results
main7a96c6af26, Linux passed 9/9 and Windows passed 9/9 across 10 runs; the author reports the five baseline regressions fail before the change and pass after it.Negative control
NotImplementedpath while argument checks remain intact.Findings
Blocking
None found on the refreshed head.
Non-blocking
The test runs and baseline control are author-reported. The declared #7464 merge order remains in effect; this approval does not change that order.
Sources
Not verified
I did not run local C++ tests, the full suite, or console behavior. The baseline control and platform test runs above are author-reported.