From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14456 invoked from network); 15 Sep 2023 07:46:16 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 15 Sep 2023 07:46:16 -0000 Received: (qmail 9787 invoked by uid 550); 15 Sep 2023 07:46:11 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 9752 invoked from network); 15 Sep 2023 07:46:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=opensmtpd; bh=kGbl49jF1G DZ4iCWjJ7peAzu2p4vM7hua89IScEomws=; h=from:subject:in-reply-to: references:cc:to:date; d=soeren-tempel.net; b=Kx85Qvw/Jx9CsIAxvBZQ6e54 //8ZqJM84NwHAjiIUVYLfzteiIM7lT+7i39b07yubQAW7foGc5tnDk8BS344KVfCIJDkRb b3RPv3QWpLCVSPU5Cbd2XziLpBbDVV6dyM2lAnjBKdicCKjdNrub7kO4bz98b+aZjLhQ30 MeV834Q= Date: Fri, 15 Sep 2023 09:45:41 +0200 To: musl@lists.openwall.com Cc: joao@overdrivepizza.com References: <41b3220c-630d-dba8-d8fb-6ffdce3514f1@overdrivepizza.com> In-Reply-To: <41b3220c-630d-dba8-d8fb-6ffdce3514f1@overdrivepizza.com> From: =?UTF-8?Q?S=C3=B6ren?= Tempel Message-Id: <2DQTRYRB63ZUP.2HMEVUG64EIC1@8pit.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [musl] Intel CET Support Hello, Has there been any progress on this? On the Alpine side of things, there is= currently an ongoing discussion regarding enabling CET by default, but of c= ourse that would presuppose support for this feature in musl [1]. From the Alpine= point of view, support for CET would certainly be interesting! Maybe it would also be possible to only implement support for -cf-protection=3Dreturn as a first step? If my understanding of CET is corr= ect, doing so would not require adding endbr instructions to assembler files (th= ese should only be needed for -cf-protection=3Dbranch). As such, this might mak= e the initial diff a bit easier to review? Greetings S=C3=B6ren [1]: https://gitlab.alpinelinux.org/alpine/tsc/-/issues/64 > Hi, >=20 > Long ago I sent some patches here to enable CET support within MUSL=20 > (https://www.openwall.com/lists/musl/2020/10/19/3). >=20 > These patches were a result from some experiment I have been running=20 > with clang, and to which I needed a suitable library. I understand that=20= > the patches were not in their best shape, and I was a bit busy at the=20 > time so I didn't really push this through. >=20 > Either way, I'm now wondering if there is any interest from MUSL to=20 > support CET. If yes, I can start working on an updated patch-set to be=20= > sent here eventually. >=20 > Additionally, if the support is of interest, it would also be=20 > interesting to know if MUSL intends to support CET as specified in the=20= > X86-64 ABI (where a single linked DSO without the CET bits set disables=20= > the feature) or if you have something different in mind. >=20 > Tks, > Joao.