Re: arm64 BTI for libgcrypt

2023-11-20 Thread Jeremie Courreges-Anglas
On Mon, Nov 20 2023, Tobias Heider wrote: > On Mon, Nov 20, 2023 at 12:11:42PM +0100, Mark Kettenis wrote: >> > Date: Mon, 20 Nov 2023 11:55:43 +0100 >> > From: Tobias Heider >> > Cc: Jeremie Courreges-Anglas , ports@openbsd.org, >> >kette...@openbsd.org, ajacou...@openbsd.org >> >

Re: arm64 BTI for libgcrypt

2023-11-20 Thread Tobias Heider
On Mon, Nov 20, 2023 at 12:11:42PM +0100, Mark Kettenis wrote: > > Date: Mon, 20 Nov 2023 11:55:43 +0100 > > From: Tobias Heider > > Cc: Jeremie Courreges-Anglas , ports@openbsd.org, > > kette...@openbsd.org, ajacou...@openbsd.org > > Content-Type: text/plain; charset=us-ascii > >

Re: arm64 BTI for libgcrypt

2023-11-20 Thread Mark Kettenis
> Date: Mon, 20 Nov 2023 11:55:43 +0100 > From: Tobias Heider > Cc: Jeremie Courreges-Anglas , ports@openbsd.org, > kette...@openbsd.org, ajacou...@openbsd.org > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > > On Mon, Nov 20, 2023 at 11:37:17AM +0100, Mark

Re: arm64 BTI for libgcrypt

2023-11-20 Thread Antoine Jacoutot
On Mon, Nov 20, 2023 at 11:55:43AM +0100, Tobias Heider wrote: > On Mon, Nov 20, 2023 at 11:37:17AM +0100, Mark Kettenis wrote: > > > From: Jeremie Courreges-Anglas > > > Date: Mon, 20 Nov 2023 08:22:13 +0100 > > > > > > On Sun, Nov 19 2023, Tobias Heider wrote: > > > > Diff below fixes

Re: arm64 BTI for libgcrypt

2023-11-20 Thread Tobias Heider
On Mon, Nov 20, 2023 at 11:37:17AM +0100, Mark Kettenis wrote: > > From: Jeremie Courreges-Anglas > > Date: Mon, 20 Nov 2023 08:22:13 +0100 > > > > On Sun, Nov 19 2023, Tobias Heider wrote: > > > Diff below fixes libgcrypt/gnupg on my m2. > > > > > > CFI_STARTPROC() seemed like a good place to

Re: arm64 BTI for libgcrypt

2023-11-20 Thread Mark Kettenis
> From: Jeremie Courreges-Anglas > Date: Mon, 20 Nov 2023 08:22:13 +0100 > > On Sun, Nov 19 2023, Tobias Heider wrote: > > Diff below fixes libgcrypt/gnupg on my m2. > > > > CFI_STARTPROC() seemed like a good place to add the bti instructions > > since it is called in all the right places. > >

Re: arm64 BTI for libgcrypt

2023-11-19 Thread Jeremie Courreges-Anglas
On Sun, Nov 19 2023, Tobias Heider wrote: > Diff below fixes libgcrypt/gnupg on my m2. > > CFI_STARTPROC() seemed like a good place to add the bti instructions > since it is called in all the right places. It's not something that makes sense for upstream IMHO, but for ports that use it, it's an

arm64 BTI for libgcrypt

2023-11-19 Thread Tobias Heider
Diff below fixes libgcrypt/gnupg on my m2. CFI_STARTPROC() seemed like a good place to add the bti instructions since it is called in all the right places. If this is too hacky I'm also fine with adding explicit instructions everywhere or even a new macro. opinions? ok? Index: