Add buddy-contains - #182
Open
nirvanaK456 wants to merge 3 commits into
Open
Conversation
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.
Hey,
When dealing with cross cache related attacks i've more than once found myself parsing the output of
buddy-dump, so what i usually do is runpageinfoon the page i'm interested in. However, if said page is in the PCP or has been merged into a block of order > 0, thestruct pagewill not have thePG_BUDDYflag set, therefore i made this command in the same spirit asslab-contains.The default mode parses the free-lists just like
buddy-dumpto find out if a given page is in the buddy or not.One can use the
-Loption to skip the free-lists parsing, this mode only uses flags present instruct pageit can detect whether a page is in the middle of a buddy block but it cannot find out if a page is in the PCP or not.this is quite useful for me, i don't know if people would like to use it too.
If something needs refactoring or modifications i would be happy to do so.