mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Sören Tempel" <soeren@soeren-tempel.net>
To: musl@lists.openwall.com
Cc: joao@overdrivepizza.com
Subject: Re: [musl] Intel CET Support
Date: Fri, 15 Sep 2023 09:45:41 +0200	[thread overview]
Message-ID: <2DQTRYRB63ZUP.2HMEVUG64EIC1@8pit.net> (raw)
In-Reply-To: <41b3220c-630d-dba8-d8fb-6ffdce3514f1@overdrivepizza.com>

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 course
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=return as a first step? If my understanding of CET is correct,
doing so would not require adding endbr instructions to assembler files (these
should only be needed for -cf-protection=branch). As such, this might make the
initial diff a bit easier to review?

Greetings
Sören

[1]: https://gitlab.alpinelinux.org/alpine/tsc/-/issues/64

> Hi,
> 
> Long ago I sent some patches here to enable CET support within MUSL 
> (https://www.openwall.com/lists/musl/2020/10/19/3).
> 
> 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.

  parent reply	other threads:[~2023-09-15  7:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-25 23:00 Joao Moreira
2021-05-26  0:12 ` Daniel Gutson
2021-05-26  1:07   ` Joao Moreira
2023-09-15  7:45 ` Sören Tempel [this message]
2023-09-16 19:14   ` Szabolcs Nagy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2DQTRYRB63ZUP.2HMEVUG64EIC1@8pit.net \
    --to=soeren@soeren-tempel.net \
    --cc=joao@overdrivepizza.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).