Index | Thread | Search

From:
Theo Buehler <tb@theobuehler.org>
Subject:
Re: security/libgcrypt: Sprinkle some ENDBR64 instructions
To:
Mark Kettenis <mark.kettenis@xs4all.nl>
Cc:
ports@openbsd.org, ajacoutot@openbsd.org, Renato Aguiar <renato@renatoaguiar.net>
Date:
Thu, 22 Feb 2024 19:56:45 +0100

Download raw body.

Thread
On Thu, Feb 22, 2024 at 02:57:39PM +0100, Mark Kettenis wrote:
> > From: Renato Aguiar <renato@renatoaguiar.net>
> > Date: Wed, 21 Feb 2024 17:31:41 -0800
> 
> Apologies to Antoine, I forgot to CC you the first time I sent this
> out.  Anyway, here is a new version.  Thinking about this a bit more
> changing CFI_STARTPROC like we did on arm64 will make maintenance a
> lot easier.  This will over-BTI, but I'm also looking at having the
> linker remove unnecessary ENDBR64 instructions at the start of a
> function.
> 
> ok?

I think this is preferable, especially if you are planning to amortize
the cost in lld.

ok tb