From 48a1394c9e5d1a95ee0856fb9c2806cbd91780bd Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Wed, 28 Feb 2024 11:52:30 -0800 Subject: [PATCH] Enable QueueUserAPC2 suspension even without CET --- src/coreclr/vm/threads.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/coreclr/vm/threads.cpp b/src/coreclr/vm/threads.cpp index 081f5c6cf7a73..15b3df1f6ae14 100644 --- a/src/coreclr/vm/threads.cpp +++ b/src/coreclr/vm/threads.cpp @@ -8276,12 +8276,7 @@ void Thread::InitializeSpecialUserModeApc() return; } - // In the future, once code paths using the special user-mode APC get some bake time, it should be used regardless of - // whether CET shadow stacks are enabled - if (AreCetShadowStacksEnabled()) - { - s_pfnQueueUserAPC2Proc = pfnQueueUserAPC2Proc; - } + s_pfnQueueUserAPC2Proc = pfnQueueUserAPC2Proc; } #endif // FEATURE_SPECIAL_USER_MODE_APC