mirror of
https://github.com/yrp604/bdump
synced 2026-06-08 18:32:32 +00:00
Add check for non-zero cr8 in usermode
This commit is contained in:
@@ -259,6 +259,11 @@ function __fixup_regs(regs) {
|
||||
logln('[bdump]');
|
||||
}
|
||||
|
||||
if (is_usermode(regs.rip) && regs.cr8 != 0) {
|
||||
logln("[bdump] non-zero IRQL in usermode, resetting to zero...");
|
||||
regs.cr8 = 0;
|
||||
}
|
||||
|
||||
// if es was lost to the void, copy ds
|
||||
if (regs.es === null) {
|
||||
logln("[bdump] could not recover es, copying ds...");
|
||||
|
||||
Reference in New Issue
Block a user