________________________________________
From: [email protected] <[email protected]> on
behalf of Alin Serdean <[email protected]>
Sent: Thursday, July 13, 2017 9:40 PM
To: [email protected]
Subject: [ovs-dev] [PATCH 02/40] datapath-windows: Use non-executable memory
when allocating memory
Use non-executable memory when using ExAllocatePoolWithTagPriority.
Found using WDK 10 static code analysis.
Signed-off-by: Alin Gabriel Serdean <[email protected]>
---
datapath-windows/ovsext/Util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/datapath-windows/ovsext/Util.c b/datapath-windows/ovsext/Util.c
index a1ce0e6..3c9b052 100644
--- a/datapath-windows/ovsext/Util.c
+++ b/datapath-windows/ovsext/Util.c
@@ -60,7 +60,7 @@ OvsAllocateAlignedMemory(size_t size, UINT16 align)
* XXX: NdisAllocateMemory*() functions don't talk anything about
* alignment. Hence using ExAllocatePool*();
*/
- return (VOID *)ExAllocatePoolWithTagPriority(NonPagedPool, size,
+ return (VOID *)ExAllocatePoolWithTagPriority(NonPagedPoolNx, size,
OVS_MEMORY_TAG,
NormalPoolPriority);
}
--
2.10.2.windows.1
_______________________________________________
Acked-by: Shashank Ram <[email protected]>
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev