feat(libs): resolve four sysctl names and stub the IME clause setter #15781
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15781"
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 fishingpvalues on 2026-11-04T14:40:39Z.
What
Two measured exports that titles reach are still short of the console on current
main. This replaces the closed #8553, rebased onto currentmain; the IME entry is under Silent stubs as requested in the review there.libkernel:sysctlnametomibdid not resolvekern.smp.maxcpus,kern.stackprot,kern.sched.nameandkern.timecounter.hardware, while a PS5 (firmware 12.70) payload process resolves them to{1, 2147482816, 2147482814},{1, 2147483151},{1, 2147483182, 2147483181}and{1, 2147482838, 2147482834}. The four names and MIBs live in the tablesysctlalready uses for its measured-absent check, andsysctlnametomibresolves them from that same table, so the two paths cannot drift. Size queries and short output buffers keep the behaviour of the other names.sysctlby those exact MIBs still returns-1withENOENTas measured, andsysctlbynamekeeps returningENOENTfor the names.libSceIme:sceImeSetConsecutiveClauseConversionEnabledthrew throughNotImplemented_nid_no_patch, but PPSA24191 calls it with 1 before everysceImeOpenand only opens the panel when it returns 0. It is now a silent stub that returns 0 for any byte and stores nothing, because the panel is not drawn and no conversion consumes the flag. The unknown effect on conversion, the result while a panel is open and the error codes stay in the library's technical debt file.The
pr_overlap.pycheck lists only documentation-file adjacency with open PRs; no open PR implements these exports or changes these code paths.Tested
libc,libkernel,libSceIme, and bothguest_system_configuration_testsandguest_ime_parameters_tests.LD_PRELOADto bypass the host-CPU guard because OrbStack exposes an emulated VirtualApple CPU without AVX2, unrelated to this change.main1e24993fa3; both tests were rebuilt and pass on the rebased tree.41990425622), and Conventions passed.sysctlnametomib, callssysctlwith the returned MIB and checks the measuredENOENTwith the buffer and length untouched; it also checks theENOMEMpartial copy of a three-component MIB into a two-word buffer.python3 tools/check_conventions.py --base origin/main: passed.git diff --check: clean.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)