-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS : plugins updates, for recent kernels support #1116
Draft
Abyss-W4tcher
wants to merge
23
commits into
volatilityfoundation:develop
Choose a base branch
from
Abyss-W4tcher:macosx_plugins_updates
base: develop
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
macOS : plugins updates, for recent kernels support #1116
Abyss-W4tcher
wants to merge
23
commits into
volatilityfoundation:develop
from
Abyss-W4tcher:macosx_plugins_updates
Conversation
This file contains 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.
Hi 👋,
This Pull Request provides updates to existing macOS plugins, for compatibility with recent kernels. It indirectly depends on the work produced in #1115. It is marked as "Draft" for now, but is available for anyone to try !
Instead of opening one PR for each change, I thought it would be easier to track down the global update here.
Changes are mostly small fixes on types and structures naming changes, while keeping the compatibility for older kernels. A couple reworks were necessary for some plugins, and extensions.
Tested on kernels :
10.9.3_build-13D65
10.12.6_build-16G29
10.15.7_build-19H15
12.0.1_build-21A559
13.6.4_build-22G513
14.0_build-23A5257q
Plugins version haven't been bumped for now.
Details
Here are the justifications, in the form of a before/after on kernel structures :
volatility3/framework/symbols/mac/init.py
filedesc :
fileproc :
fileglob :
vnode :
mac.pslist
bsd_info :
mac.kevents
mac.list_files
Recursive logic was updated to an iterative one, as
"maximum recursion depth exceeded in comparison"
were encountered when deep recursion occured.volatility3/framework/symbols/mac/extensions/init.py
proc (impacts
mac.pslist
) :mac.malfind
Fixes #848. As
vm_map_object
was removed from the kernel, updates on the logic to getvm_object
from avm_map_entry
were done. See :Here is an article brieflly talking about it :
https://saaramar.github.io/kmem_guard_t_blogpost/#bookkeeping
mac.timers
/!\ 1-1 changes were done, but results don't seem really useful/accurate in recent kernels