From e9fe2a29e409f6a835e533a730e5757e9f169e10 Mon Sep 17 00:00:00 2001 From: Joachim Henze Date: Thu, 27 Jan 2022 20:19:24 +0100 Subject: [PATCH] [0.4.9][NTOSKRNL] Mute noisy DPRINT 'SectionObject has ImageSection' during shutdown CORE-18029 All releases/0.4.8 until and including releases/0.4.14 were affected by the following logspam during shutdown: (../ntoskrnl/mm/section.c:4839) SectionObject has ImageSection triggered 2 times for bootcd, but triggered 83 times for livecd. Today I found out by chance, that we started to trigger it with the switch from CDFS to CDFS_NEW with 0.4.8-dev-164-g ec6b3ecbe48ad51c366563196cc93a6ae74e8b69 We 'suffered' from that logspam for many years now and it did never help us in any way. And during 0.4.15-dev'ing with the MM rewrite, the logging was entirely removed in the NTOSKRNL. --- ntoskrnl/mm/section.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/ntoskrnl/mm/section.c b/ntoskrnl/mm/section.c index 7adfff7237d..ae2140602f9 100644 --- a/ntoskrnl/mm/section.c +++ b/ntoskrnl/mm/section.c @@ -4823,10 +4823,7 @@ MmFlushImageSection (IN PSECTION_OBJECT_POINTERS SectionObjectPointer, #endif if (SectionObjectPointer->ImageSectionObject) - { - DPRINT1("SectionObject has ImageSection\n"); return FALSE; - } #ifdef NEWCC CcpLock();