Repository navigation
Conversation
The conflict check already treats reserved space as free, but the remap paths refused NO_OVERWRITE, so a reserve or map inside an existing reservation threw instead of succeeding.
Owner
|
Merged into AnyKyty as |
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
FixedNoOverwriteConflicttreats a reserved, unmapped range as free forMAP_FIXED | MAP_NO_OVERWRITE, butRemapFixedIntoRegisteredandDoReserveVirtualstill refused everyNO_OVERWRITErequest, so a reserve or map inside an existing reservation fell through toRequireAvailableand threwfixed mapping ... overlaps a registered guest allocation. Both paths now take the remap when the whole range is reserved; a range that holds a live mapping still fails with ENOMEM as before (e9c8664).Tested
Windows 10 22H2, WinLibs GCC 15.2.0, LLVM 21.1.8.
GuestMemory.cppgainsCheckNoOverwriteFillsReservedRange: a0x90reserve and a0x90direct map inside a 4-page reservation succeed at the requested address, and a0x90reserve over the now-mapped page still returns ENOMEM. Run on its own it passes with the change and throwsfixed mapping 0x200004000+0x4000 overlaps a registered guest allocation 0x200000000+0x10000without it.guest_memorytest stops on this machine atRequireResidentMapping(VirtualQuerystate), on cleanAnyKytyas well, before reaching the new check; that failure is unrelated to this change.python tools/check_conventions.py --base origin/AnyKytyandtools/check_kyty_settings.py: passed.0xb000000000+0x4800000000, then callssceKernelReserveVirtualRange(0xf000000000, 0xd00000, 0x400090)inside it about 12 s in, and aborted there. With the change it runs on and renders for about 30 s until kyty: bindless S#/T# loaded with s_buffer_load at a runtime offset stops resource tracking ("GetSamplerResource dword 0 is not a valid runtime value") #294.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)