From 982ee872dddbc3864fb7bbb0852ca5246d2a0ff9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Bi=C8=99oc?= Date: Tue, 21 Sep 2021 17:40:53 +0200 Subject: [PATCH] [NTOS:SE] Privileges adjusting private routine must be paged SepAdjustPrivileges is a private helper call that must be paged, alongside with its syscall -- NtAdjustPrivilegesToken. --- ntoskrnl/se/token.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ntoskrnl/se/token.c b/ntoskrnl/se/token.c index 6b3d10014d7..b8492238c05 100644 --- a/ntoskrnl/se/token.c +++ b/ntoskrnl/se/token.c @@ -4366,6 +4366,8 @@ SepAdjustPrivileges( { ULONG i, j, PrivilegeCount, ChangeCount, NewAttributes; + PAGED_CODE(); + /* Count the found privileges and those that need to be changed */ PrivilegeCount = 0; ChangeCount = 0;