aarch64: Fix async_fibre_swapcontext() on clang BTI builds
authorTom Cosgrove <tom.cosgrove@arm.com>
Mon, 14 Feb 2022 11:23:57 +0000 (11:23 +0000)
committerPauli <pauli@openssl.org>
Mon, 28 Feb 2022 22:51:29 +0000 (09:51 +1100)
commitd2d2401aed7ff45f4c013201944e1218dce12da7
tree2befd68724181a82ab3b2cde94d496616cc9a600
parent366a16263959c0b6599f0b9ec18124d75560c6ef
aarch64: Fix async_fibre_swapcontext() on clang BTI builds

Reverting to using swapcontext() when compiling with clang on BTI-enabled
builds fixes the BTI setjmp() failure seen when running asynctest.

The issue with setjmp/longjmp is a known clang bug: see
https://github.com/llvm/llvm-project/issues/48888

Change-Id: I6eeaaa2e15f402789f1b3e742038f84bef846e29

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17698)
crypto/async/arch/async_posix.h