[Spice-devel] [RFC PATCH qxl-wddm-dod 04/28] Fix Code Integrity error generated by the Drive Verifier

Dmitry Fleytman dmitry at daynix.com
Mon Jul 18 06:33:45 UTC 2016


From: Sandy Stutsman <sstutsma at redhat.com>

Add MdlMappingNoExecute to MmGetSystemAddressForMDLSafe call in
ExecutePresentDisplayOnly.
---
 qxldod/QxlDod.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp
index 77f4f86..1225f04 100755
--- a/qxldod/QxlDod.cpp
+++ b/qxldod/QxlDod.cpp
@@ -2720,7 +2720,7 @@ VgaDevice::ExecutePresentDisplayOnly(
         // Note: double mapping the buffer this way causes lot of system
         // overhead for large size buffers.
         ctx->SrcAddr = reinterpret_cast<BYTE*>
-            (MmGetSystemAddressForMdlSafe(mdl, NormalPagePriority ));
+            (MmGetSystemAddressForMdlSafe(mdl, NormalPagePriority | MdlMappingNoExecute));
 
         if(!ctx->SrcAddr) {
             Status = STATUS_INSUFFICIENT_RESOURCES;
@@ -3619,7 +3619,7 @@ QxlDevice::ExecutePresentDisplayOnly(
         // Note: double mapping the buffer this way causes lot of system
         // overhead for large size buffers.
         ctx->SrcAddr = reinterpret_cast<BYTE*>
-            (MmGetSystemAddressForMdlSafe(mdl, NormalPagePriority ));
+            (MmGetSystemAddressForMdlSafe(mdl, NormalPagePriority | MdlMappingNoExecute));
 
         if(!ctx->SrcAddr) {
             Status = STATUS_INSUFFICIENT_RESOURCES;
-- 
1.8.3.1



More information about the Spice-devel mailing list