Author: cgutman
Date: Thu Aug 18 19:50:19 2011
New Revision: 53306
URL: http://svn.reactos.org/svn/reactos?rev=53306&view=rev
Log:
- Revert r53305 because Windows unprotects pages this way
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/pool.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/pool.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/pool.c?re…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/pool.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/pool.c [iso-8859-1] Thu Aug 18 19:50:19 2011
@@ -626,7 +626,7 @@
if (MmProtectFreedNonPagedPool)
{
/* We need to be able to touch this page, unprotect it */
- MiUnProtectFreeNonPagedPool(NextEntry, 1);
+ MiUnProtectFreeNonPagedPool(NextEntry, 0);
}
//
@@ -946,7 +946,7 @@
if (MmProtectFreedNonPagedPool)
{
/* The freed block will be merged, it must be made accessible */
- MiUnProtectFreeNonPagedPool(MiPteToAddress(PointerPte), 1);
+ MiUnProtectFreeNonPagedPool(MiPteToAddress(PointerPte), 0);
}
//
@@ -1020,7 +1020,7 @@
if (MmProtectFreedNonPagedPool)
{
/* The freed block will be merged, it must be made accessible */
- MiUnProtectFreeNonPagedPool(MiPteToAddress(PointerPte), 1);
+ MiUnProtectFreeNonPagedPool(MiPteToAddress(PointerPte), 0);
}
/* Check if this is valid pool, or a guard page */
@@ -1058,7 +1058,7 @@
if (MmProtectFreedNonPagedPool)
{
/* The freed block will be merged, it must be made accessible */
- MiUnProtectFreeNonPagedPool(FreeEntry, 1);
+ MiUnProtectFreeNonPagedPool(FreeEntry, 0);
}
//
Author: cgutman
Date: Thu Aug 18 19:36:40 2011
New Revision: 53305
URL: http://svn.reactos.org/svn/reactos?rev=53305&view=rev
Log:
[NTOSKRNL]
- Specify a valid number of pages to unprotect
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/pool.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/pool.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/pool.c?re…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/pool.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/pool.c [iso-8859-1] Thu Aug 18 19:36:40 2011
@@ -626,7 +626,7 @@
if (MmProtectFreedNonPagedPool)
{
/* We need to be able to touch this page, unprotect it */
- MiUnProtectFreeNonPagedPool(NextEntry, 0);
+ MiUnProtectFreeNonPagedPool(NextEntry, 1);
}
//
@@ -946,7 +946,7 @@
if (MmProtectFreedNonPagedPool)
{
/* The freed block will be merged, it must be made accessible */
- MiUnProtectFreeNonPagedPool(MiPteToAddress(PointerPte), 0);
+ MiUnProtectFreeNonPagedPool(MiPteToAddress(PointerPte), 1);
}
//
@@ -1020,7 +1020,7 @@
if (MmProtectFreedNonPagedPool)
{
/* The freed block will be merged, it must be made accessible */
- MiUnProtectFreeNonPagedPool(MiPteToAddress(PointerPte), 0);
+ MiUnProtectFreeNonPagedPool(MiPteToAddress(PointerPte), 1);
}
/* Check if this is valid pool, or a guard page */
@@ -1058,7 +1058,7 @@
if (MmProtectFreedNonPagedPool)
{
/* The freed block will be merged, it must be made accessible */
- MiUnProtectFreeNonPagedPool(FreeEntry, 0);
+ MiUnProtectFreeNonPagedPool(FreeEntry, 1);
}
//
Author: cgutman
Date: Thu Aug 18 18:06:07 2011
New Revision: 53302
URL: http://svn.reactos.org/svn/reactos?rev=53302&view=rev
Log:
[NTOSKRNL]
- Fix a typo in a remove lock timeout check
- Fixes breaking into kdbg randomly when a caller specifies no timeout on their remove lock
Modified:
trunk/reactos/ntoskrnl/io/iomgr/remlock.c
Modified: trunk/reactos/ntoskrnl/io/iomgr/remlock.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/remlock.…
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/remlock.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/remlock.c [iso-8859-1] Thu Aug 18 18:06:07 2011
@@ -170,8 +170,8 @@
while (TrackingBlock != NULL)
{
/* First of all, check if the lock was locked for too long */
- if (TrackingBlock->LockMoment.QuadPart &&
- CurrentMoment.QuadPart - TrackingBlock->LockMoment.QuadPart > Lock->Dbg.MaxLockedTicks)
+ if (Lock->Dbg.MaxLockedTicks &&
+ CurrentMoment.QuadPart - TrackingBlock->LockMoment.QuadPart > Lock->Dbg.MaxLockedTicks)
{
DPRINT("Lock %#08lx (with tag %#08lx) was supposed to be held at max %I64d ticks but lasted longer\n",
Lock, TrackingBlock->Tag, Lock->Dbg.MaxLockedTicks);