Repository navigation
libkernel: paging: implement block-level hole punching - #324
Merged
Merged
Conversation
hexagonal-sun
force-pushed
the
pt-hole-punching
branch
10 times, most recently
from
October 10, 2026 16:26
cca26ad to
cb17141
Compare
If the end_address() of one of the regions takes us beyond usize::MAX then this function always returns true due to overflow. Use end_address_inclusive() instead which won't overflow the address space.
…ges() The address of the next page was computed prior to a bounds check. If the next page address (which didn't need to be computed) overflowed, it could cause a panic on debug builds.
Add unit tests for the intersection() function. Furthermore, fix a bug where the intersection() function would overflow when computing the interscetion at the address space maximum.
Allow pages to be punched out of block-level mappings, ensuring that page-demotion happens correctly. Also make the TLB invalidation API richer so that more targeted TLB invalidations can be invoked.
hexagonal-sun
force-pushed
the
pt-hole-punching
branch
from
October 12, 2026 16:51
cb17141 to
f1fd54a
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.
Allow pages to be punched out of block-level mappings, ensuring that page-demotion happens correctly. Also make the TLB invalidation API richer so that more targeted TLB invalidations can be invoked.