-
Notifications
You must be signed in to change notification settings - Fork 398
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
Modern linux types can sometimes just be levels of indirection #151
Comments
Ok, so our discussions somewhat decided that:
|
Ok, I've mocked up some code whereby the entries within Things that still need deciding are the name for the flag (I've gone for Anyway, the branch to look at is |
I pushed a dwarf2json branch that implements the proposed solution: https://github.com/volatilityfoundation/dwarf2json/tree/issue-11-anonymous-types Let me know what you think. |
Thanks! It looks ok, but I'm not sure it had ever been updated for schema version > 6.0.0, meaning the metadata layout is slightly different. Can you please check that generated JSON files pass by the schema validator (ensure the |
I'm not sure how to interpret the
|
No, it means you don't have the |
I needed to apply the patch below for it to pass.
|
Hiya @ilch1 so I think we deprecated Storing the data under these sections would allow us to store more OS-specific information in a more accessible format (as we've done for the pe/pdb information under windows). I'm also not sure that the file name that was used to produce the JSON is necessarily useful for the consumer (other than as an identifier to distinguish it from others, so perhaps we should add a GUID to each generated file)? It also gives the opportunity to leak information (such as |
I pushed a commit to this branch that adds mac-specific metadata to the schema. The corresponding branch in |
The latest |
Thanks, I made the changes you suggested, so if you're happy that it all works now I can merge it tomorrow... 5;) |
I've merged the corresponding change in dwarf2json |
Thanks, I just merged the other changes. Feel free to reopen this if someone spots anything weird going on with anonymous types... |
We might also want to re-run dwarf2json again the various kernels in the linux.zip now? |
Just so we've got it recorded somewhere...
This has been noticed specifically on linux (in the 5.3.0 kernel, at least), but certain types (such as
mm_struct
) can containunnamed_field
s which just act as levels of indirection (ie, they just contain another struct, unnamed, without much purpose or reason to need to access it).This makes accessing members of
mmstruct
difficult without knowing the precise sub-structure they're within, and we might want to contemplate a way that we can reasonably remove these if they're literally just unnamed struct members (unions and other types might need more thinking about)...The text was updated successfully, but these errors were encountered: