diff --git "a/ntoskrnl/mm/section.c" "b/ntoskrnl/mm/section.c" index 6e5d85013e4..f0e58f48df3 100644 --- "a/ntoskrnl/mm/section.c" +++ "b/ntoskrnl/mm/section.c" @@ -4331,8 +4331,11 @@ MmCanFileBeTruncated( } MmLockSectionSegment(Segment); - if ((Segment->SectionCount == 0) || - ((Segment->SectionCount == 1) && (SectionObjectPointer->SharedCacheMap != NULL))) + /* Below two lines are from 15-1792-gc0bf352 which was BAD. See CORE-19789 + * It was supposedly to "Fix regression of MmCanFileBeTruncated". */ +// if ((Segment->SectionCount == 0) || +// ((Segment->SectionCount == 1) && (SectionObjectPointer->SharedCacheMap != NULL))) + if ((Segment->SectionCount == 1) && (SectionObjectPointer->SharedCacheMap != NULL)) { /* If the cache is the only one holding a reference to the segment, then it's fine to resize */ Ret = TRUE;