Author: pschweitzer
Date: Mon Feb 15 21:22:05 2016
New Revision: 70756
URL:
http://svn.reactos.org/svn/reactos?rev=70756&view=rev
Log:
[NTOSKRNL]
If the cache wasn't initialized by the FSD serving the image, don't allow section
creation to avoid later (dramatic) failure in CC.
Based on a patch by Sylvain Deverre.
CORE-10038 #comment Modified patch committed in r70756
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=…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] Mon Feb 15 21:22:05 2016
@@ -3776,6 +3776,14 @@
if (FileObject == NULL)
return STATUS_INVALID_FILE_FOR_SECTION;
+
+#ifndef NEWCC
+ if (FileObject->SectionObjectPointer->SharedCacheMap == NULL)
+ {
+ DPRINT1("Denying section creation due to missing cache
initialization\n");
+ return STATUS_INVALID_FILE_FOR_SECTION;
+ }
+#endif
/*
* Create the section