From 8ef244dd88817f3e2259d9e46f60024314465add Mon Sep 17 00:00:00 2001 From: Nicholas Ludwig Date: Wed, 25 Nov 2026 12:19:09 -0800 Subject: [PATCH 1/2] Replace banned pool allocation in rundown protection Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Signed-off-by: Nicholas Ludwig --- src/ex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ex.cpp b/src/ex.cpp index 1c24abe5..f8ae1cc3 100644 --- a/src/ex.cpp +++ b/src/ex.cpp @@ -50,7 +50,7 @@ ExAllocateCacheAwareRundownProtection( _In_ __drv_strictTypeMatch(__drv_typeExpr) POOL_TYPE PoolType, unsigned long PoolTag) { EX_RUNDOWN_REF_CACHE_AWARE* rundown_reference = - (EX_RUNDOWN_REF_CACHE_AWARE*)ExAllocatePoolWithTag(PoolType, sizeof(EX_RUNDOWN_REF_CACHE_AWARE), PoolTag); + (EX_RUNDOWN_REF_CACHE_AWARE*)ExAllocatePoolUninitialized(PoolType, sizeof(EX_RUNDOWN_REF_CACHE_AWARE), PoolTag); if (rundown_reference != nullptr) { cxplat_initialize_rundown_protection(rundown_reference); From be07d102c6aa955ed2a05de79010e29066a33319 Mon Sep 17 00:00:00 2001 From: Nicholas Ludwig Date: Wed, 25 Nov 2026 13:29:07 -0800 Subject: [PATCH 2/2] Initialize cxplat test spin lock before acquisition Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Signed-off-by: Nicholas Ludwig --- cxplat/cxplat_test/cxplat_processor_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cxplat/cxplat_test/cxplat_processor_test.cpp b/cxplat/cxplat_test/cxplat_processor_test.cpp index 18be68e1..048643aa 100644 --- a/cxplat/cxplat_test/cxplat_processor_test.cpp +++ b/cxplat/cxplat_test/cxplat_processor_test.cpp @@ -44,7 +44,7 @@ TEST_CASE("spin_lock", "[processor]") { REQUIRE(cxplat_initialize() == CXPLAT_STATUS_SUCCESS); cxplat_irql_t irql; - cxplat_spin_lock_t lock; + cxplat_spin_lock_t lock{}; REQUIRE(cxplat_get_current_irql() == PASSIVE_LEVEL); irql = cxplat_acquire_spin_lock(&lock); REQUIRE(cxplat_get_current_irql() == DISPATCH_LEVEL);