fix(libkernel): track committed ranges accurately in memory pool block stats #23301
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/23301"
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 gurtgg on 2026-11-18T21:47:42Z.
What
committedRanges) incore/libs/prx/libkernel/DirectMemory/MemoryPoolExport.cppso overlappingPoolCommitcalls and partial/repeatedPoolDecommitcalls maintain exactcommittedBytesaccounting without double-counting or underflow.addr + lenaddress wraparound (len > UINTPTR_MAX - lo) inPoolCommitandPoolDecommit.GuestCopyOut_nid_no_patch's built-inerrnopreservation insceKernelMemoryPoolExpand.Tested
guest_memory_pool(core/libs/tests/GuestMemoryPool.cpp): covers overlapping commits, partial/interior/duplicate decommits, address overflow, andsceKernelMemoryPoolExpandunwritable output pointer cleanup.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 PrivacyOnion on 2026-11-18T21:53:48Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
46c2696a4c:tools/check_conventions.pypassed.guest_memory_pool_stats_testsbuilt cleanly.guest_memory_pool_stats):core/libs/prx/libkernel/DirectMemory/MemoryPoolExport.cppreverted tomainand the new tests kept, the suite fails: Restoring the change makes it pass again.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-23T04:54:16Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the review evidence supports merging.
What I ran
Reviewed head
46c2696a4cc60d637c0c8b3695e7e183bab4281dagainst the supplied diff. I did not run commands or tests; this review environment provides read-only repository access throughrepo_read.py.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Tests, build, and runtime behavior were not verified. Both files listed as reviewed in
manifest.jsonwere read:core/libs/prx/libkernel/DirectMemory/MemoryPoolExport.cppandcore/libs/tests/GuestMemoryPoolStats.cpp. No changed files were excluded.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T14:12:42Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
d7e34c81a8ceb9d9d793da6bc40259cef78757cd. No tests or build commands were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No tests were executed. No files were excluded by the manifest;
files.jsonwas unavailable. The complete contents of the changed implementation and test files were read.To get this to a good state
Nothing is required.