https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5c52ded05fceddb392ed33...
commit 5c52ded05fceddb392ed33eecc8ad693a96332f9 Author: Thomas Faber thomas.faber@reactos.org AuthorDate: Fri Jan 26 13:45:53 2018 +0100 Commit: Thomas Faber thomas.faber@reactos.org CommitDate: Sun Jan 28 10:48:19 2018 +0100
[NTOS:PS] Check for rundown success in PsReferenceProcessFilePointer. CID 514553 --- ntoskrnl/ps/query.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/ntoskrnl/ps/query.c b/ntoskrnl/ps/query.c index 2c492b654a..ad281e63c0 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;