Repository navigation
Conversation
Contributor
Author
|
Closing this draft as superseded. The live-fragment query after partial munmap is already proposed in #1731, and my #1929 stacks on that change while adding support for mapped non-readable ranges. This draft contains only the earlier readable-range implementation and has no distinct remaining change, so keeping it open would duplicate the same behavior. |
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
sceKernelVirtualQuerymatched guest allocations by their original allocation extent, even after a partialmunmapsplit the live mapping into separate pieces. It could report the unmapped hole as committed and return a range spanning that hole.Match queries against the registered live pieces, then join adjacent protection fragments that still belong to the same allocation. A gap now ends the reported range, and
SCE_KERNEL_VQ_FIND_NEXTfinds the next live piece. Fixes #1894.Based on current
mainatf1451396. No open PR implements this fix.Tested
guest_memory_tests;ctest -R '^guest_memory$'passed (1/1, 0.02 s).mprotect, partial unmapping of its middle page, failure to query the hole,FIND_NEXT, and the extents on both sides.python3 tools/check_conventions.py --base upstream/mainandgit diff --checkpassed.action_required); this account cannot approve them.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repository