From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) by sourceware.org (Postfix) with ESMTPS id A99D93858430 for ; Wed, 19 Apr 2023 15:07:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A99D93858430 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=Shaw.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=shaw.ca Received: from shw-obgw-4004a.ext.cloudfilter.net ([10.228.9.227]) by cmsmtp with ESMTP id p4I6pIPinjvm1p9OdpUKGo; Wed, 19 Apr 2023 15:06:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=shaw.ca; s=s20180605; t=1681916819; bh=rgHW//TZAcEDYRSnNVCd5wtr24QSnGMgQdQ9YWHiHdE=; h=Date:Reply-To:Subject:To:References:From:In-Reply-To; b=AoTrgbyrPbLSLV325FxMG8Z3381Cfg9rTdEzfq0G0L1NFmVXXDN6J3ztnxo1XL6p6 BkPZKWRCK0Wiu6uQLXZvj8lENlKdgvnMdnlu1MCXe0A4Wq6R/BUoyzlEFZ/ARAdm3Y nG8lZ4x5Gx023eOh/SkYqxhym9lzmbL/t7HkSDVZSs+h5+UTVHtAVSpabx5OXobm0g emfcMP33AMFXRds2QBrpUClTG8GHknncibwXG4E/uxJm4zJz9JnKhLBrkkdp12T2xc w1ASbCBvoWKwyNf0gun0E2TW8gejv5ENWW6BglpL6+C0IM6oKM8j8gf8EtyO+/gto3 inWiSWZ33cjjQ== Received: from [10.0.0.5] ([184.64.102.149]) by cmsmtp with ESMTP id p9Odp9Lx13fOSp9Odps3JK; Wed, 19 Apr 2023 15:06:59 +0000 X-Authority-Analysis: v=2.4 cv=J8G5USrS c=1 sm=1 tr=0 ts=64400393 a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17 a=IkcTkHD0fZMA:10 a=yMhMjlubAAAA:8 a=07d9gI8wAAAA:8 a=uN-rOg6IAu2KnsTmvZIA:9 a=QEXdDO2ut3YA:10 a=e2CUPOnPG4QKp8I52DXD:22 Message-ID: Date: Wed, 19 Apr 2023 09:06:59 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Reply-To: cygwin-apps@cygwin.com Subject: Re: [PATCH v2] peflags: add support for IMAGE_DLLCHARACTERISTICS_GUARD_CF Content-Language: en-CA To: cygwin-apps@cygwin.com References: <20230417184034.2234-1-reiter.christoph@gmail.com> From: Brian Inglis Organization: Inglis In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfE8/TnZXdrNRf8ixUfQQBe+WIvw/hui/t7leRDs3cXXEPFFuDkpkuAASPM+0UxyLvD9rUbhAFNyjOwnH7aGEy9vY57e5ayskYx8rOhKscb41dgrAf4vV pWzH2+wJwPoAd0I4IKn7hfFw86NYuEH0gkqq65tMGexf6lo0qRGYyD7khFDADihYUa2KAmfMPRT5Pg== X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_SHORT,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2023-04-18 10:47, Christoph Reiter wrote: > On Tue, Apr 18, 2023 at 9:44 AM Corinna Vinschen wrote: >> Pash pushed. I new rebase 4.6.3 release with your patch is just >> building. Extended DLL Characteristics was added for IBT/CET/CFI and AMD/Intel Shadow Stack support has been available since W10 [20]20H1/[20]2004 in a PE Debug Directory entry with Debug Type IMAGE_DEBUG_TYPE_EX_DLLCHARACTERISTICS (20.) with value IMAGE_DLLCHARACTERISTICS_EX_CET_COMPAT (1) https://learn.microsoft.com/en-us/windows/win32/debug/pe-format#extended-dll-characteristics Are there any plans to support those debug directory entries and flags in genpeimg and/or peflags, and Windows shadow stack support in mingw64 and/or Cygwin? The Linux implementation is discussed in https://lwn.net/Articles/883340/ as Intel architected the (soon former) Linux CoW PTE bit combo Write 0 Dirty 1 as Shadow Stack page flag, possibly anticipating that they could contribute kernel patches to work around this more quickly than has transpired. I got interested in this as I plan to add Linux cpuinfo flag user_shstk, on recent CPUs and Windows releases with that support, to next Cygwin cpuinfo patch. -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry