NDIS Connectionless Protocol Sample Loading BSOD

Hey guys,
I worked on a driver based on the NDIS 6.0 Connectionless Protocol Sample.
I noticed that once in a thousand times when loading/unloading the driver we get a BSOD of IRQL_NOT_LESS_OR_EQUAL. After trying to protect all pointers and memory without success I discovered that this bug is found in the actual sample from Microsoft aswell.

This sample can be found here:
https://code.msdn.microsoft.com/windowshardware/NDISProt-9a3cab24

After installing the driver if one uses a .Bat file to load and unload the driver continuously there will be the BSOD after a couple of minutes.

I am not an experienced kernel debugger, worked only with prints to develop the driver. So I am looking for some help to try and fix this BSOD… I believe this could be a bug in the actual NDIS API from Windows, but do not know how to confirm this.

Thanks

Could you just give me a couple more tips on how to do that?
I need a VM where the code will be run to do that right then the debugger is attached through the real machine? Should use WinDbg correct?

Thanks Dave

Yes, you should use Windbg.

Your target can be a VM or another machine. Your choice.

https://msdn.microsoft.com/en-us/library/windows/hardware/dn745912(v=vs.85).
aspx

Good Luck,
Dave Cattley

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@hotmail.com
Sent: Thursday, March 05, 2015 9:47 AM
To: Windows System Software Devs Interest List
Subject: RE: Re: [ntdev] NDIS Connectionless Protocol Sample Loading BSOD

Could you just give me a couple more tips on how to do that?
I need a VM where the code will be run to do that right then the debugger is
attached through the real machine? Should use WinDbg correct?

Thanks Dave


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer