[ros-diffs] [mjmartin] 41356: - MmUnmapViewOfSection: Unlock address space before notifying debugger. Fixes a case where OllyDbg deadlocks in a GateWait while trying to read virtual memory.

mjmartin at svn.reactos.org mjmartin at svn.reactos.org
Tue Jun 9 14:50:33 CEST 2009


Author: mjmartin
Date: Tue Jun  9 16:50:32 2009
New Revision: 41356

URL: http://svn.reactos.org/svn/reactos?rev=41356&view=rev
Log:
- MmUnmapViewOfSection: Unlock address space before notifying debugger. Fixes a case where OllyDbg deadlocks in a GateWait while trying to read virtual memory.

Modified:
    trunk/reactos/ntoskrnl/mm/section.c

Modified: trunk/reactos/ntoskrnl/mm/section.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/section.c?rev=41356&r1=41355&r2=41356&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] Tue Jun  9 16:50:32 2009
@@ -4148,10 +4148,11 @@
       Status = MmUnmapViewOfSegment(AddressSpace, BaseAddress);
    }
 
+   MmUnlockAddressSpace(AddressSpace);
+
    /* Notify debugger */
    if (ImageBaseAddress) DbgkUnMapViewOfSection(ImageBaseAddress);
 
-   MmUnlockAddressSpace(AddressSpace);
    return(STATUS_SUCCESS);
 }
 



More information about the Ros-diffs mailing list