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,FREEMAIL_FROM,HTML_MESSAGE,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 20456 invoked from network); 26 May 2021 00:12:27 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 26 May 2021 00:12:27 -0000 Received: (qmail 25660 invoked by uid 550); 26 May 2021 00:12:25 -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 25642 invoked from network); 26 May 2021 00:12:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=lSUiLqiTMi71gQMsQlbfVRjx5qtk8Gc04JDF+qT2YRA=; b=fG7wOMrhxPJDVSYNwKOfpaKuzXrz9HERn+mhUQjcG5yhVBKZ7fcQeLccDDQOnTLIJr tYJKQomTvRWQNX+3fLoqPR4j6oMaGzvfEPDhN4aVij4G3KbOlX7Xu+0vrEW1OEh6GJKh 4Y6KFg7sGgaIXpGVDCmM7H9EBNR5TaANSf1vkCwfXcHS3mw1i0PLpR5Z0mFQTw87I32o OYBEmgY3DvQBU98KivjkQWm+GGju8nB3XpTo9/esPoaYqyGimQPler73u99WUACCmnPt QetXLvMMVIuNGNDdqcXTcYNV6nwZoP5hZVg22u9sxvcCyx5RRQT6RFvx2aIFYNBNLKsA Qq+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=lSUiLqiTMi71gQMsQlbfVRjx5qtk8Gc04JDF+qT2YRA=; b=h2bQB8/1pVWSmN04McUAu46uyMFAeKq7T2KYMplchRvokV7VRc06WFbrcHxvoQCvni +M2W0EmwcJdwEkB21kiqF+XxzbewZlcUkkDaqajCZ2Xt6pqsFgqFwHtxqrDqe8VjQdMq UAuiF7xL8as48sSFoTQVTvdMUSUI/M/Q2e13Wh6KRLE4YvzfCqFp6c3VEO7xiOUprjci oFuviojMkXhzTugEY4DwCgG2/cjYMki01EmnfJcf7YexKZE2iduIpENhHgdnKa4i4ir6 ok0OucGjjJIku+iubjJR3NV+iyFco9WY6pwXw7jJcW1c+mgB9+FTpDcJELL6FSpnBtkP TJgQ== X-Gm-Message-State: AOAM5331uhGmdjga/HczWjD4SRKQmaTRBdorxWLkxk9yi/0Rso31V5qn osrZTq7HR9oYZD9w5LTVTKq89mZxsNQqDltxHv4cDzYIv9I= X-Google-Smtp-Source: ABdhPJxkLAZ0Ru33TCfeeC4Elmi/x54h4UY8a1LFIZdPCSh/in9nFyJgo/jmyH3cmtMTx7XqrCBtCsXlS9EQFQemA60= X-Received: by 2002:a25:548b:: with SMTP id i133mr6227647ybb.396.1621987932390; Tue, 25 May 2021 17:12:12 -0700 (PDT) MIME-Version: 1.0 References: <41b3220c-630d-dba8-d8fb-6ffdce3514f1@overdrivepizza.com> In-Reply-To: <41b3220c-630d-dba8-d8fb-6ffdce3514f1@overdrivepizza.com> From: Daniel Gutson Date: Tue, 25 May 2021 21:12:01 -0300 Message-ID: To: musl@lists.openwall.com Content-Type: multipart/alternative; boundary="0000000000008a4a4a05c3307e99" Subject: Re: [musl] Intel CET Support --0000000000008a4a4a05c3307e99 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El mar., 25 may. 2021 8:00 p. m., Joao Moreira escribi=C3=B3: > Hi, > > Long ago I sent some patches here to enable CET support within MUSL > (https://www.openwall.com/lists/musl/2020/10/19/3). > Did you intentionally remove the : in the label? If not, does this assembly without errors? How did you test this? @@ -49,7 +52,8 @@ feclearexcept: .global feraiseexcept .type feraiseexcept,@function -feraiseexcept:=09 +feraiseexcept + ENDBRANCH32 > These patches were a result from some experiment I have been running > with clang, and to which I needed a suitable library. I understand that > the patches were not in their best shape, and I was a bit busy at the > time so I didn't really push this through. > > Either way, I'm now wondering if there is any interest from MUSL to > support CET. If yes, I can start working on an updated patch-set to be > sent here eventually. > > Additionally, if the support is of interest, it would also be > interesting to know if MUSL intends to support CET as specified in the > X86-64 ABI (where a single linked DSO without the CET bits set disables > the feature) or if you have something different in mind. > > Tks, > Joao. > --0000000000008a4a4a05c3307e99 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


El mar., 25 may. 2021 8:00 p. m., Joao Moreira <joao@overdrivepizza.com> esc= ribi=C3=B3:
Hi,

Long ago I sent some patches here to enable CET support within MUSL
(https://www.openwall.com/lists/musl/2020= /10/19/3).

Did you intentionally remove the : in the label?
If not, does this assembly without errors? How did you test this= ?

@@ -49,7 +52,8 @@ feclearexcept:
=20
 .global feraiseexcept
 .type feraiseexcept,@function
-feraiseexcept:=09
+feraiseexcept
+	ENDBRANCH32


=

These patches were a result from some experiment I have been running
with clang, and to which I needed a suitable library. I understand that the patches were not in their best shape, and I was a bit busy at the
time so I didn't really push this through.

Either way, I'm now wondering if there is any interest from MUSL to support CET. If yes, I can start working on an updated patch-set to be
sent here eventually.

Additionally, if the support is of interest, it would also be
interesting to know if MUSL intends to support CET as specified in the
X86-64 ABI (where a single linked DSO without the CET bits set disables the=C2=A0 feature) or if you have something different in mind.

Tks,
Joao.
--0000000000008a4a4a05c3307e99--