can1357 / ByePg

Defeating Patchguard universally for Windows 8, Windows 8.1 and all versions of Windows 10 regardless of HVCI.
828 stars 179 forks source link

Blue screens can't be displayed even if the exception is not handled causing an instant reboot. #1

Closed can1357 closed 4 years ago

nicholaskunes commented 4 years ago

I assume this is the reason the Exception Demo fails immediately on Win10. Any update on when we should expect to see this resolved, or if at all.

can1357 commented 4 years ago

Which version of Windows 10? I tried it on 1607 and it seems to work for me. Exception demo should be working for all versions that's really weird and a seperate issue itself.

nicholaskunes commented 4 years ago

Version 10.0.18362 Build 18362

DismantleOS!ExceptionHandler::HandleBugCheck+240 [C:\Users\kunes\Desktop\ByePG-InfHook\ByePgLib\ExceptionHandler.h @ 102] fffff805`525d16f4 cc int 3

FAULTING_SOURCE_LINE: C:\Users\kunes\Desktop\ByePG-InfHook\ByePgLib\ExceptionHandler.h

FAULTING_SOURCE_FILE: C:\Users\kunes\Desktop\ByePG-InfHook\ByePgLib\ExceptionHandler.h

FAULTING_SOURCE_LINE_NUMBER: 102

FAULTING_SOURCE_CODE:
98: // Failed to handle, try to show blue screen 99: HlCallback = nullptr; 100: ProcessorIpiFrozen() = 0; 101: *KiFreezeExecutionLock = false; 102: return KeBugCheckEx( BugCheckCode, BugCheckArgs[ 0 ], BugCheckArgs[ 1 ], BugCheckArgs[ 2 ], BugCheckArgs[ 3 ] ); <-- FAILS HERE 103: } 104: 105: static void OnFreezeNotification() 106: { 107: FnExceptionCallback Cb = HlCallback;

nicholaskunes commented 4 years ago

The exception it failed to handle is Bug Check 0x7F: UNEXPECTED_KERNEL_MODE_TRAP

I'm going to open another issue, because after further review, this is completely unrelated, showing the blue screen is just fine.