Update Linux DTB scanner to handle newer Linux kernel versions (>= 5.14-rc1)#852
Update Linux DTB scanner to handle newer Linux kernel versions (>= 5.14-rc1)#852miszr wants to merge 2 commits intovolatilityfoundation:masterfrom
Conversation
Since commit 2f064a5 in the Linux kernel (5.14-rc1) the task state field is no longer called "state" but is instead called "__state". This commit adds support to first look for "state" and if that is not found, attempt to look for the "__state" field.
Updated try-except to only catch KeyError.
|
Since getting the same error: Traceback (most recent call last): |
This PR has nothing to do with errors related to "DW_AT_data_member_location". See #828 for a solution to this. This PR solves the problem of the inability to process newer kernel memory dumps once the correct DWARF debug version is acquired. |
|
It works for me with a Ubuntu_5.15.0-78-generic dump. Huge thanks and I owe you a beer! (or two) |
Since commit 2f064a5 in the Linux kernel (5.14-rc1) the task state field is no longer called "state" but is instead called "__state".
This commit adds support to first look for "state" and if that is not found, attempt to look for the "__state" field.
This should resolve issues some folks been having with newer Linux kernel releases.