MmUnmapLockedPages causing Bugcheck B8

  • Thread starter Thread starter Shalini
  • Start date Start date
S

Shalini

Hello Guys
My MmunMapLockedPages in IoCompletion routine is giving me Bugcheck B8 with
all the Args being NULL.
and moreever this happens only when the File system is NTFS.
Any ideas on how to proceed?
Has anyone come across these...

Sample code is as follows...

ASSERT((ewData->User)!=NULL);
ASSERT(Irp->MdlAddress!=NULL);
__try{
MmUnmapLockedPages(ewData->User, Irp->MdlAddress);
}
__except (EXCEPTION_EXECUTE_HANDLER)
{
KdPrint(("\nError in MmUnmapLockedPages"));
}

Regards
Shal
 
Can you attach the kernel debugger to the machine and send the callstack of
the thread that is bugchecking. A B8 bugcheck is a ATTEMPTED_SWITCH_FROM_DPC
(b8) bugcheck. The callstack should show the offending driver.
 
This means the OP calls unmap for user space address from a DPC.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top