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

Re: [PATCH 1/4] Add /CETCOMPAT to linker options


  • To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
  • From: "Durrant, Paul" <xadimgnik@xxxxxxxxx>
  • Date: Tue, 2 Nov 2021 10:06:23 +0000
  • Delivery-date: Tue, 02 Nov 2021 10:06:28 +0000
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

On 26/10/2021 08:12, Owen Smith wrote:
The "Hardware Enforced Stack Protection Compatability" test introduced with the
Server 2022 HLK requires drivers to be linked with /CETCOMPAT


Does this patch need applying to all drivers then?

Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>

Acked-by: Paul Durrant <paul@xxxxxxx>

---
  vs2019/xennet/xennet.vcxproj | 1 +
  1 file changed, 1 insertion(+)

diff --git a/vs2019/xennet/xennet.vcxproj b/vs2019/xennet/xennet.vcxproj
index ca89610..d79a691 100644
--- a/vs2019/xennet/xennet.vcxproj
+++ b/vs2019/xennet/xennet.vcxproj
@@ -35,6 +35,7 @@
        <ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
        
<AdditionalDependencies>$(DDK_LIB_PATH)\ndis.lib;$(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/aux_klib.lib;$(DDK_LIB_PATH)/procgrp.lib;%(AdditionalDependencies)</AdditionalDependencies>
        
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
+      <CETCompat>true</CETCompat>
      </Link>
      <DriverSign>
        <FileDigestAlgorithm>sha256</FileDigestAlgorithm>





 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.