Add Kernel Bitmap Dump (Type=6) Support#1990
Open
brian-mckinney wants to merge 1 commit 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.
Windows kernel bitmap dumps (DumpType=6) are becoming more and more prevalent, especially considering you can request them directly from Task Manager now.
DumpType=6 is encoded identically to DumpType=5 on disk. The only difference is semantic — the kernel bitmap covers kernel pages only (and optionally user pages), where DumpType=5 typically covers everything. Adding
0x06to the supported types list and extending the bitmap-parsing branch to handle it was all the layer needed.Four plugins needed follow-up fixes once the dump actually loads:
crashinfowas showing "Unknown/Unsupported (0x6)" and leaving the bitmap statistics fields (HeaderSize, BitmapSize, Pages) as N/Amemmapwould hang for many minutes on kernel-only dumps — page tables are kernel data, so VA-to-PA translation succeeds for user-space addresses, but the physical pages themselves aren't in the dump. Walking O(millions) of dead-end lookups per process was the result. A single PEB validity check before the walk detects the situation and skips the process cleanly.mftscanwould crash when a found MFT record signature straddled a present page and an absent adjacent page; the resultingInvalidAddressExceptionon theFlagsfield was unhandled.cmdscanhad a latentUnboundLocalErrorthat wasn't being caught, that could surface when user-space heap is absent.I tested this change against two Type 6 dumps, one with user pages, another without. They were tested against all of the applicable windows plugins, and produced expected results