feat(libs): add four sysctl MIB mappings and an IME setter #8553
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8553"
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-10-20T16:25:37Z.
What
Two small exports that titles actually reach:
libkernel:sysctlnametomibnow resolveskern.smp.maxcpus,kern.stackprot,kern.sched.nameandkern.timecounter.hardwareto the MIBs measured on a PS5 (firmware 12.70) payload process: {1, 2147482816, 2147482814}, {1, 2147483151}, {1, 2147483182, 2147483181} and {1, 2147482838, 2147482834}. Payloads that probe these names (e.g. allocator probes) no longer get an exception;sysctlby those exact MIBs still returns -1/ENOENT as measured, and writes throw.libSceIme:sceImeSetConsecutiveClauseConversionEnabledstops throwing and returns 0 for any value. PPSA24191 calls it with 1 before everysceImeOpenand opens the panel only when it returns 0; nothing consumes the flag, so no state is stored.Tested
macOS (Apple Silicon). Both affected test targets compile in a linux/amd64 container build; running the ctests there fails on unmodified main too because the emulated x86_64 CPU lacks AVX/BMI2 which the guest libs' host-CPU check requires. Verified with a source-level smoke script instead: the four mappings match the measured console MIBs, pre-existing table entries are untouched, the short-buffer/size-query/truncation semantics of
sysctlnametomibare unchanged, unknown names still throw, and the IME setter no longer callsNotImplemented_nid_no_patch.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)Imported from boykopovar/AnyPS5. Originally posted by fishingpvalues on 2026-10-20T19:00:43Z.
The
BuildandProgress reportruns show "Action required": the author of this PR has no commit or merged PR in the repository yet, so thepull_request-triggered workflows need a collaborator to approve them (Actions tab of the run, orgh workflow run build.yml --repo boykopovar/AnyPS5 --ref main --field pr=8553).Everything else is green: Conventions, PR labels, PR intake. The pr-overlap note against #6936 is a benign adjacency in
docs/dev/debt/libkernel.md(that PR appends a new line after the one this PR updates; the three-way merge is clean and no exports overlap).Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-20T23:19:12Z.
@fishingpvalues Thanks. The four mappings use the MIBs already recorded from the console measurement, and the test table covers them.
One small docs request. With the
NotImplemented_nid_no_patchcall gone,sceImeSetConsecutiveClauseConversionEnabledis a silent stub: it returns 0 and ignores its argument. CONTRIBUTING.md says a silent stub goes under "Silent stubs" in its library's debt file. ItslibSceIme.mdentry is still under "Unknown function info". Could you move it under "Silent stubs" (next tosceImeOpen), keeping the text about PPSA24191 and the unknowns? The code needs nothing else.After that, the bar is a full CI run with
guest_system_configurationandguest_ime_parameterspassing on Linux and Windows. TheBuildworkflow needs a maintainer to start it for a first-time contributor, and we'll do that.Imported from boykopovar/AnyPS5. Originally posted by fishingpvalues on 2026-10-21T06:54:00Z.
Moved
sceImeSetConsecutiveClauseConversionEnabledunder "Silent stubs" next tosceImeOpen, with the PPSA24191 text and unknowns kept (4dc025bb0). Thanks for starting the Build run.Imported from boykopovar/AnyPS5. Originally posted by harisibrar1 on 2026-10-24T15:38:06Z.
Review: APPROVED
Checked against main
b607bfdc8band FreeBSD 11.4 (sys/kern/kern_sysctl.c, kern_exec.c, subr_smp.c, kern_tc.c, sched_ule.c):sysctl_register_oidcounts OID_AUTO numbers down from 0x7fffffff, which gives values near INT_MAX and children numbered below their parents.sysctlbynameon these names still returns ENOENT throughIsUnansweredName, as measured; only the name-to-MIB step changes. The branch merges cleanly.950a21aec8, unknown names return -1/ENOENT rather than throwing; the code and debt text are already right.boolwhile Export.cpp usesstd::uint8_t; matching them would keep the declarations consistent.Reviewed with AI assistance (Claude Code); the checks above were run locally on my machine.
Pull request closed