Index | Thread | Search

From:
Tobias Heider <tobias.heider@stusta.de>
Subject:
Re: security/libgcrypt: Sprinkle some ENDBR64 instructions
To:
ports@openbsd.org, Theo Buehler <tb@theobuehler.org>, Mark Kettenis <mark.kettenis@xs4all.nl>
Cc:
ajacoutot@openbsd.org, Renato Aguiar <renato@renatoaguiar.net>
Date:
Thu, 22 Feb 2024 20:33:05 +0100

Download raw body.

Thread

On February 22, 2024 7:56:45 PM GMT+01:00, Theo Buehler <tb@theobuehler.org> wrote:
>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
>

oh I missed that there was a second version. ok with me too, we arrived at the same conclusion for arm64 after all.