From: Thomas Faber Date: Fri, 26 Jan 2018 12:45:53 +0000 (+0100) Subject: [NTOS:PS] Check for rundown success in PsReferenceProcessFilePointer. CID 514553 X-Git-Tag: 0.4.9-dev~166 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=5c52ded05fceddb392ed33eecc8ad693a96332f9 [NTOS:PS] Check for rundown success in PsReferenceProcessFilePointer. CID 514553 --- diff --git a/ntoskrnl/ps/query.c b/ntoskrnl/ps/query.c index 2c492b654a6..ad281e63c00 100644 --- a/ntoskrnl/ps/query.c +++ b/ntoskrnl/ps/query.c @@ -28,7 +28,10 @@ PsReferenceProcessFilePointer(IN PEPROCESS Process, PAGED_CODE(); /* Lock the process */ - ExAcquireRundownProtection(&Process->RundownProtect); + if (!ExAcquireRundownProtection(&Process->RundownProtect)) + { + return STATUS_PROCESS_IS_TERMINATING; + } /* Get the section */ Section = Process->SectionObject;