The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.
Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/
I have a BSOD with the following bugcheck:
DRIVER_POWER_STATE_FAILURE (9f) A driver has failed to complete a power IRP within a specific time. Arguments: Arg1: 0000000000000004, The power transition timed out waiting to synchronize with the Pnp subsystem. Arg2: 000000000000012c, Timeout in seconds. Arg3: ffff94083ac95080, The thread currently holding on to the Pnp lock. Arg4: ffffed066102f7e0, nt!TRIAGE_9F_PNP on Win7 and higher
If I use
!thread in WinDbg after loading the dump, it shows thread
ffff94083ac95080, which is the thread holding the lock.
On the other hand, if I use
k, it shows the stack of the faulting thread:
# Child-SP RetAddr Call Site 00 ffffed06`6102f7a8 fffff800`70e9ead6 nt!KeBugCheckEx 01 ffffed06`6102f7b0 fffff800`711ad946 nt!PnpBugcheckPowerTimeout+0x76 02 ffffed06`6102f810 fffff800`70c512f9 nt!PopBuildDeviceNotifyListWatchdog+0x16 03 ffffed06`6102f840 fffff800`70c50059 nt!KiProcessExpiredTimerList+0x169 04 ffffed06`6102f930 fffff800`70dc64be nt!KiRetireDpcList+0x4e9 05 ffffed06`6102fb60 00000000`00000000 nt!KiIdleLoop+0x7e
Is it possible to switch to the faulting thread (and not the one holding the lock) so that
!thread show info about it?
|Upcoming OSR Seminars|
|OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!|
|Developing Minifilters||24 May 2021||Live, Online|
|Writing WDF Drivers||14 June 2021||Live, Online|
|Internals & Software Drivers||27 September 2021||Live, Online|
|Kernel Debugging||TBD 2021||Live, Online|