docs(libkernel): note the sceKernelVirtualQuery fields seven titles read #11732
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11732"
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 milescoviello on 2026-10-27T06:21:01Z.
What
The
sceKernelVirtualQueryentry indocs/dev/debt/libkernel.mdsays the console offsets beyond the address, protection and size fields are not hardware-measured. Title code gives evidence for them, and this adds it. Of 34 calls in seven titles, 31 pass an info size of 0x48 (the 72 bytes the entry describes). In the 30 instructions after each call, the 27 that take the result in a stack buffer read:VirtualQueryInfostartendoffsetprotectionmemory_typeis_direct), 0x10 (is_committed) or 0x50, or masking 0x1fnameThis is a bounded scan: reads later in the caller, or through a copy of the result, aren't ruled out, so a field missing here may still be used.
How
I found the calls through the import's PLT stub in each title's relinked
eboot.bin, took the info buffer from therdxset before each call, and listed the reads from that buffer in the 30 instructions after it. Calls whose buffer isn't a stack slot aren't counted. No code change.Changed:
docs/dev/debt/libkernel.md.Overlap: #11625 rewrites the next entry (
app0.zar files and directories). I offered on #11625 to land second; this PR is marked to go after it, and I will rebase it once #11625 merges.Tested
Docs only.
tools/check_conventions.py --base upstream/mainpasses.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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T06:33:52Z.
Review: DISMISSED
The title-call-site inventory is useful, but the table's unqualified “read” wording is broader than the stated method, which inspects the 30 instructions after each call. Please scope the title/field claims to that inspected window and note that later or indirect reads are not ruled out, as the revised #11739 now does.
There is also an unresolved overlap order with open #11625. I found the offer on #11625 to land first and the
Depends on: #11625line, but no acknowledgement from #11625's author agreeing to that sequence.CONTRIBUTING.mdrequires agreement with the overlapping PR's author. Please get that confirmation (or agree the opposite order) and reflect the agreed sequence in the checklist before this is ready for approval.This is docs-only; hosted current-base conventions passes, and product jobs are skipped by policy. I did not independently inspect the title binaries.