Driver Verifier has two levels of I/O Verification:
Level 1 I/O Verification is always active whenever I/O Verification is selected.
Level 2 I/O Verification is always active whenever I/O Verification is selected in Windows XP and later. In Windows 2000, I/O Verification can be configured to include both levels, or just the Level 1 tests.
See Also: Enhanced I/O Verification In Windows 7 and later versions of the Windows operating system, Enhanced I/O Verification is automatically activated when you select I/O Verification. It is not available or necessary to select it as a separate option.
When Level 1 I/O Verification is enabled, all IRPs obtained through IoAllocateIrp are allocated from a special pool and their use is tracked.
Additionally, Driver Verifier checks for invalid I/O calls, including:
Attempts to free an IRP whose type is not IO_TYPE_IRP
Passes of invalid device objects to IoCallDriver
Passes of an IRP to IoCompleteRequest that contains invalid status or that still has a cancel routine set
Changes to the IRQL across a call to the driver dispatch routine
Attempts to free an IRP that remains associated with a thread
Passes of a device object to IoInitializeTimer that already contains an initialized timer
Passes of an invalid buffer to IoBuildAsynchronousFsdRequest or IoBuildDeviceIoControlRequest
Passes of an I/O status block to an IRP, when this I/O status block is allocated on a stack that has unwound too far
Passes of an event object to an IRP, when this event object is allocated on a stack that has unwound too far
Because the special IRP pool is of limited size, I/O Verification is most effective when it is only used on one driver at a time.
I/O Verification Level 1 failures cause bug check 0xC9 to be issued. The first parameter of this bug check indicates what violation has occurred. See Bug Check 0xC9 (DRIVER_VERIFIER_IOMANAGER_VIOLATION) for a full parameter listing.
I/O Verification Level 2 errors are displayed in different ways: on the blue screen, in a crash dump file, and in a kernel debugger.
On the blue screen, these errors are noted by the message IO SYSTEM VERIFICATION ERROR and the string WDM DRIVER ERRORXXX, where XXX is an I/O error code.
In a crash dump file, most of these errors are noted by the message BugCheck 0xC9 (DRIVER_VERIFIER_IOMANAGER_VIOLATION), along with the I/O error code. In this case, the I/O error code appears as the first parameter of the bug check 0xC9. The remainder are noted by the message Bug Check 0xC4 (DRIVER_VERIFIER_DETECTED_VIOLATION), along with a Driver Verifier error code. In this case, the Driver Verifier error code appears as the first parameter of the bug check 0xC4.
In a kernel debugger (KD or WinDbg), these errors are noted by the message WDM DRIVER ERROR and a descriptive text string. When the kernel debugger is active, it is possible to ignore the Level 2 errors and resume system operation. (This is not possible with any other bug checks.)
The blue screen, the crash dump file, and the kernel debugger each display additional information as well. For a full description of most I/O Verification Level 2 error messages, see Bug Check 0xC9. For the remainder, see Bug Check 0xC4.
The I/O Verification option of Driver Verifier has been enhanced in Windows Vista to check for the following driver errors:
Taking too long to complete and cancel IRPs that originated in user-mode applications.
Releasing a remove lock that has not yet been acquired.
The I/O Verification option of Driver Verifier has been enhanced in Windows 7 to check for the following driver errors:
In Windows 7 and later versions of the Windows operating system, Enhanced I/O Verification is automatically activated when you select I/O Verification.
You can activate the I/O Verification feature for one or more drivers by using Driver Verifier Manager or the Verifier.exe command line. For details, see Selecting Driver Verifier Options.
- At the command line.
At the command line, the I/O Verification option is represented by Bit 4 (0x10). To activate I/O Verification, use a flag value of 0x10 or add 0x10 to the flag value. For example:
verifier /flags 0x10 /driver MyDriver.sys
The feature will be active after the next boot.
In Windows 2000, you can use the /iolevel parameter to activate only Level 1 (the default) or both Level 1 and Level 2. In later versions of Windows, both Level 1 and Level 2 are always activated when you activate I/O Verification.
For example, the following command activates Level 1 and Level 2 I/O verification on a computer running Windows 2000.
verifier /flags 0x10 /iolevel 2 /driver MyDriver.sys
On Windows Vista and later versions of Windows, you can also activate and deactivate I/O Verification without rebooting the computer by adding the /volatile parameter to the command. For example:
verifier /volatile /flags 0x10 /adddriver MyDriver.sys
This setting is effective immediately, but is lost when you shut down or reboot the computer. For details, see Using Volatile Settings.
The I/O Verification feature is also included in the standard settings. For example:
verifier /standard /driver MyDriver.sys
- Using Driver Verifier Manager
- Select Create custom settings (for code developers) and then click Next.
- Select Select individual settings from a full list.
- Select (check) I/O verification.
The I/O Verification feature is also included in the standard settings. To use this feature, in Driver Verifier Manager, click Create Standard Settings.
Build date: 5/7/2013