https://git.reactos.org/?p=reactos.git;a=commitdiff;h=04f0c7d0d7d3d9981476c…
commit 04f0c7d0d7d3d9981476cca55372bdf49d200a1e
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Tue May 15 12:43:37 2018 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Sun Sep 20 23:08:17 2020 +0200
[NTOS:KE] Zero out ExceptionFrame member in Syscall handler
---
ntoskrnl/ke/amd64/stubs.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ntoskrnl/ke/amd64/stubs.c b/ntoskrnl/ke/amd64/stubs.c
index ff973935d69..b5ae60a550d 100644
--- a/ntoskrnl/ke/amd64/stubs.c
+++ b/ntoskrnl/ke/amd64/stubs.c
@@ -330,6 +330,9 @@ KiSystemCallHandler(
TrapFrame->TrapFrame = (ULONG64)Thread->TrapFrame;
Thread->TrapFrame = TrapFrame;
+ /* We don't have an exception frame yet */
+ TrapFrame->ExceptionFrame = 0;
+
/* Before enabling interrupts get the user rsp from the KPCR */
UserRsp = __readgsqword(FIELD_OFFSET(KIPCR, UserRsp));
TrapFrame->Rsp = UserRsp;