Problem with ExFreeToNPagedLookasideList() function call...

We encountered a very strange problem to use
ExFreeToNPagedLookasideList() which caused the blue screen.

We used ExAllocateFromNPagedLookasideList() to allocate the non-page
memory, and then we used ExFreeToNPagedLookasideList() to free the
non-page memory in our codes. But we got the blue screen. When I
looked into the memory dump, It did not call
ExFreeToNPagedLookasideList(). It called ExFreeToPagedlookasideList()
instead. When I debugged into the program, it did call
ExFreeToPagedLookasideList() instead of ExFreeToNPagedLookasideList().

Does anyone encounter this kind of problem? How do I fix it?

By the way, the build environment is IFS kit and DDK 3790 Windows 2003
free build.

Thanks,


Jonathan

Hello,

It doesn’t matter how ExFreeToNPagedLookasideList is implemented. The
problem is in your code.
Maybe you free the same block multiple times. Memory corruption is one
thing to look after too.

Andrei

Jonathan Hsueh wrote:

We encountered a very strange problem to use
ExFreeToNPagedLookasideList() which caused the blue screen.

We used ExAllocateFromNPagedLookasideList() to allocate the non-page
memory, and then we used ExFreeToNPagedLookasideList() to free the
non-page memory in our codes. But we got the blue screen. When I
looked into the memory dump, It did not call
ExFreeToNPagedLookasideList(). It called ExFreeToPagedlookasideList()
instead. When I debugged into the program, it did call
ExFreeToPagedLookasideList() instead of ExFreeToNPagedLookasideList().

Does anyone encounter this kind of problem? How do I fix it?

By the way, the build environment is IFS kit and DDK 3790 Windows 2003
free build.

Thanks,


Ignorance more frequently begets confidence than does knowledge.
— Charles Darwin


This message was scanned for spam and viruses by BitDefender.
For more information please visit http://linux.bitdefender.com/

Use driver verifier. It will usually tell you exactly
where your code starts to go wrong.

— Jonathan Hsueh wrote:
> We encountered a very strange problem to use
> ExFreeToNPagedLookasideList() which caused the blue
> screen.
>
> We used ExAllocateFromNPagedLookasideList() to
> allocate the non-page
> memory, and then we used
> ExFreeToNPagedLookasideList() to free the
> non-page memory in our codes. But we got the blue
> screen. When I
> looked into the memory dump, It did not call
> ExFreeToNPagedLookasideList(). It called
> ExFreeToPagedlookasideList()
> instead. When I debugged into the program, it did
> call
> ExFreeToPagedLookasideList() instead of
> ExFreeToNPagedLookasideList().
>
> Does anyone encounter this kind of problem? How do
> I fix it?
>
> By the way, the build environment is IFS kit and DDK
> 3790 Windows 2003
> free build.
>
>
> Thanks,
>
>
> –
> Jonathan
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: unknown
> lmsubst tag argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>