Author: tfaber
Date: Sat Jul 20 17:46:38 2013
New Revision: 59542
URL:
http://svn.reactos.org/svn/reactos?rev=59542&view=rev
Log:
[NTOS]
- Use more pool tagging
Modified:
trunk/reactos/ntoskrnl/config/cmhook.c
trunk/reactos/ntoskrnl/config/cminit.c
trunk/reactos/ntoskrnl/config/cmsysini.c
trunk/reactos/ntoskrnl/config/powerpc/cmhardwr.c
trunk/reactos/ntoskrnl/ex/sysinfo.c
trunk/reactos/ntoskrnl/fsrtl/notify.c
trunk/reactos/ntoskrnl/mm/ARM3/procsup.c
trunk/reactos/ntoskrnl/mm/ARM3/section.c
trunk/reactos/ntoskrnl/mm/freelist.c
trunk/reactos/ntoskrnl/ps/kill.c
trunk/reactos/ntoskrnl/ps/process.c
trunk/reactos/ntoskrnl/ps/query.c
Modified: trunk/reactos/ntoskrnl/config/cmhook.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cmhook.c?r…
==============================================================================
--- trunk/reactos/ntoskrnl/config/cmhook.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/config/cmhook.c [iso-8859-1] Sat Jul 20 17:46:38 2013
@@ -180,7 +180,7 @@
ExReleaseFastMutex(&CmiCallbackLock);
/* free the callback */
- ExFreePool(CurrentCallback);
+ ExFreePoolWithTag(CurrentCallback, 'bcMC');
return STATUS_SUCCESS;
}
else
Modified: trunk/reactos/ntoskrnl/config/cminit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cminit.c?r…
==============================================================================
--- trunk/reactos/ntoskrnl/config/cminit.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/config/cminit.c [iso-8859-1] Sat Jul 20 17:46:38 2013
@@ -359,7 +359,7 @@
if (!NT_SUCCESS(Status))
{
/* Close handles and free buffers */
- if (NameBuffer) ExFreePool(NameBuffer);
+ if (NameBuffer) ExFreePoolWithTag(NameBuffer, TAG_CM);
ObDereferenceObject(Event);
ZwClose(EventHandle);
DPRINT1("ZwCreateFile failed : %lx.\n", Status);
@@ -397,7 +397,7 @@
if (!NT_SUCCESS(Status))
{
/* Close handles and free buffers */
- if (NameBuffer) ExFreePool(NameBuffer);
+ if (NameBuffer) ExFreePoolWithTag(NameBuffer, TAG_CM);
ObDereferenceObject(Event);
ZwClose(EventHandle);
ZwClose(*Primary);
@@ -461,7 +461,7 @@
if (!NT_SUCCESS(Status))
{
/* Close handles and free buffers */
- if (NameBuffer) ExFreePool(NameBuffer);
+ if (NameBuffer) ExFreePoolWithTag(NameBuffer, TAG_CM);
ObDereferenceObject(Event);
ZwClose(EventHandle);
return Status;
@@ -471,7 +471,7 @@
if (FsSizeInformation.BytesPerSector > HBLOCK_SIZE)
{
/* Close handles and free buffers */
- if (NameBuffer) ExFreePool(NameBuffer);
+ if (NameBuffer) ExFreePoolWithTag(NameBuffer, TAG_CM);
ObDereferenceObject(Event);
ZwClose(EventHandle);
return STATUS_CANNOT_LOAD_REGISTRY_FILE;
@@ -596,7 +596,7 @@
}
/* We're done, close handles and free buffers */
- if (NameBuffer) ExFreePool(NameBuffer);
+ if (NameBuffer) ExFreePoolWithTag(NameBuffer, TAG_CM);
ObDereferenceObject(Event);
ZwClose(EventHandle);
return STATUS_SUCCESS;
Modified: trunk/reactos/ntoskrnl/config/cmsysini.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cmsysini.c…
==============================================================================
--- trunk/reactos/ntoskrnl/config/cmsysini.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/config/cmsysini.c [iso-8859-1] Sat Jul 20 17:46:38 2013
@@ -164,7 +164,7 @@
((Length < (*ReturnLength)) && (BytesToCopy < sizeof(WCHAR))))
{
/* Free the buffer allocated by CmpConstructName */
- ExFreePool(KeyName);
+ ExFreePoolWithTag(KeyName, TAG_CM);
/* Return buffer length failure without writing anything there because nothing
fits */
return STATUS_INFO_LENGTH_MISMATCH;
@@ -207,7 +207,7 @@
_SEH2_END;
/* Free the buffer allocated by CmpConstructName */
- ExFreePool(KeyName);
+ ExFreePoolWithTag(KeyName, TAG_CM);
/* Return status */
return Status;
Modified: trunk/reactos/ntoskrnl/config/powerpc/cmhardwr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/powerpc/cm…
==============================================================================
--- trunk/reactos/ntoskrnl/config/powerpc/cmhardwr.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/config/powerpc/cmhardwr.c [iso-8859-1] Sat Jul 20 17:46:38
2013
@@ -546,7 +546,7 @@
}
/* Free the configuration data */
- ExFreePool(CmpConfigurationData);
+ ExFreePoolWithTag(CmpConfigurationData, TAG_CM);
}
/* Open physical memory */
@@ -824,7 +824,7 @@
ZwClose(SectionHandle);
/* Free the BIOS version string buffer */
- if (BiosVersion) ExFreePool(BiosVersion);
+ if (BiosVersion) ExFreePoolWithTag(BiosVersion, TAG_CM);
Quickie:
/* Close the procesor handle */
Modified: trunk/reactos/ntoskrnl/ex/sysinfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/sysinfo.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/ex/sysinfo.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ex/sysinfo.c [iso-8859-1] Sat Jul 20 17:46:38 2013
@@ -787,7 +787,7 @@
RtlCopyMemory(SpiCurrent->ImageName.Buffer, szSrc,
SpiCurrent->ImageName.Length);
/* Release the memory allocated by SeLocateProcessImageName */
- ExFreePool(ProcessImageName);
+ ExFreePoolWithTag(ProcessImageName, TAG_SEPA);
}
else
{
Modified: trunk/reactos/ntoskrnl/fsrtl/notify.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/fsrtl/notify.c?re…
==============================================================================
--- trunk/reactos/ntoskrnl/fsrtl/notify.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/fsrtl/notify.c [iso-8859-1] Sat Jul 20 17:46:38 2013
@@ -424,7 +424,7 @@
}
/* Finally, free the notification, as it's not needed anymore */
- ExFreePool(NotifyChange);
+ ExFreePoolWithTag(NotifyChange, 'FSrN');
}
}
}
Modified: trunk/reactos/ntoskrnl/mm/ARM3/procsup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/procsup.c…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/procsup.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/procsup.c [iso-8859-1] Sat Jul 20 17:46:38 2013
@@ -1581,7 +1581,7 @@
/* Free the session page tables */
#ifndef _M_AMD64
- ExFreePool(SessionGlobal->PageTables);
+ ExFreePoolWithTag(SessionGlobal->PageTables, 'tHmM');
#endif
ASSERT(!MI_IS_PHYSICAL_ADDRESS(SessionGlobal));
Modified: trunk/reactos/ntoskrnl/mm/ARM3/section.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/section.c…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/section.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/section.c [iso-8859-1] Sat Jul 20 17:46:38 2013
@@ -332,7 +332,7 @@
PagedPool,
HashSize *
sizeof(MMVIEW),
- ' mM');
+ TAG_MM);
if (!Session->SystemSpaceViewTable)
{
/* Failed to allocate a new table, keep the old one for now */
Modified: trunk/reactos/ntoskrnl/mm/freelist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/freelist.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/freelist.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/freelist.c [iso-8859-1] Sat Jul 20 17:46:38 2013
@@ -553,7 +553,7 @@
/* It's not a ROS PFN anymore */
Page->u4.AweAllocation = FALSE;
- ExFreePool(MI_GET_ROS_DATA(Page));
+ ExFreePoolWithTag(MI_GET_ROS_DATA(Page), 'RsPf');
Page->RosMmData = 0;
/* Bring it back into the free list */
Modified: trunk/reactos/ntoskrnl/ps/kill.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/kill.c?rev=595…
==============================================================================
--- trunk/reactos/ntoskrnl/ps/kill.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ps/kill.c [iso-8859-1] Sat Jul 20 17:46:38 2013
@@ -276,7 +276,8 @@
if (Process->SeAuditProcessCreationInfo.ImageFileName)
{
/* Free it */
- ExFreePool(Process->SeAuditProcessCreationInfo.ImageFileName);
+ ExFreePoolWithTag(Process->SeAuditProcessCreationInfo.ImageFileName,
+ TAG_SEPA);
Process->SeAuditProcessCreationInfo.ImageFileName = NULL;
}
@@ -679,7 +680,7 @@
NextPort = TerminationPort->Next;
/* Free the Termination Port Object */
- ExFreePool(TerminationPort);
+ ExFreePoolWithTag(TerminationPort, '=TsP');
/* Keep looping as long as there is a port */
TerminationPort = NextPort;
Modified: trunk/reactos/ntoskrnl/ps/process.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/process.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/ps/process.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ps/process.c [iso-8859-1] Sat Jul 20 17:46:38 2013
@@ -655,7 +655,7 @@
Process->SeAuditProcessCreationInfo.ImageFileName =
ExAllocatePoolWithTag(PagedPool,
sizeof(OBJECT_NAME_INFORMATION),
- 'aPeS');
+ TAG_SEPA);
if (!Process->SeAuditProcessCreationInfo.ImageFileName)
{
/* Fail */
Modified: trunk/reactos/ntoskrnl/ps/query.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/query.c?rev=59…
==============================================================================
--- trunk/reactos/ntoskrnl/ps/query.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ps/query.c [iso-8859-1] Sat Jul 20 17:46:38 2013
@@ -699,7 +699,7 @@
}
/* Free the image path */
- ExFreePool(ImageName);
+ ExFreePoolWithTag(ImageName, TAG_SEPA);
}
/* Dereference the process */
ObDereferenceObject(Process);