[PATCH qxl-wddm-dod v2 05/25] Fix Code Integrity error generated by the Drive Verifier

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Sandy Stutsman <sstutsma@xxxxxxxxxx>

Add MdlMappingNoExecute to MmGetSystemAddressForMDLSafe call in
ExecutePresentDisplayOnly.

Acked-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 qxldod/QxlDod.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp
index 3d0cd2e..dd68693 100755
--- a/qxldod/QxlDod.cpp
+++ b/qxldod/QxlDod.cpp
@@ -2768,7 +2768,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;
@@ -3667,7 +3667,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;
-- 
2.7.0.windows.1

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]