Reading non-existent MSR (crash) RRS feed

  • Question

  • I am writing a driver that will be used on a number of systems. On some systems, an MSR exists but on others it doesn.t

    The driver crashes on systems where the MSR doesn't exist with a KMODE_EXCEPTION_NOT_HANDLED code.

    I put a try/except around the read MSR code but I still get the exception.

    Note: I am developing a WDM driver (legacy) and tying to use it on Windows 8.1 systems.

    • Edited by hasyed Tuesday, June 28, 2016 9:17 PM
    Tuesday, June 28, 2016 9:16 PM


  • Not all exceptions are handleable; therefore, you will have to look at the CPU ID registers to determine which CPU you are running on


    Azius Developer Training Windows device driver, internals, security, & forensics training and consulting. Blog at

    Tuesday, June 28, 2016 10:53 PM