Repository navigation
fix(libc): reach the application map area end with the guest arena - #652
Merged
oneandonlydean merged 1 commit intoOct 5, 2026
Merged
Conversation
9 tasks done
9 tasks done
On Windows the guest arena ended at 0x72_0000_0000: boykopovar#231 kept its 448 GiB size after boykopovar#153 had moved its start down to 0x2_0000_0000. Titles map fixed addresses up to the application map area end, 0xFC_0000_0000 (SCE_KERNEL_APP_MAP_AREA_END_ADDR on the PS4), and a direct memory mapping above the old end threw "shared mapping outside the guest arena". The arena is now reserved up to 0xFC_0000_0000. The out-of-arena errors name the address and length, and a fixed mapping over a used arena range says whether it hit a host region. guest_memory maps direct memory at the last two pages below the end, reads it through an alias and checks that a mapping at the end is refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Celegans12
force-pushed
the
fix/guest-arena-app-map-area
branch
from
October 5, 2026 15:51
e109bb8 to
5085746
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
On Windows the guest arena ends at 0x72_0000_0000, so a fixed direct memory mapping above it throws
shared mapping outside the guest arena.HOST_USER_MAX), as doesSCE_KERNEL_APP_MAP_AREA_END_ADDRin GPCS4 (PS4 reference).GuestArenaMap_nid_postfix; whichever merges second needs a one-line rebase. No behavioural overlap.Tested
main53dc19c: configure-DBUILD_TESTING=ON, full build,--target libs,ctest:ctest --output-on-failure)guest_memorygainsCheckFixedMappingsReachTheApplicationAreaEnd: a fixed mapping of the last two pages below 0xFC_0000_0000, read through an alias, and a refused one at the end; it fails onmainat the range check.main: without this change it aborts at that first mapping; with it, it runs on tosceAudioOut2PortCreate: data format 0xc00 is not implemented.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)