HomeFreeBSD

arm64: Allow userspace to be built with PAC and BTI

Description

arm64: Allow userspace to be built with PAC and BTI

Add the WITH/WITHOUT_BRANCH_PROTECTION build flags. This can be used
to enable the use of pointer authentication (FEAT_PAuth) and branch
target identification (FEAT_BTI) in userspace.

The kernel already handles both of these is userspace, we just need
to enable it.

Leave disabled for a short period for this to settle before enabling.

Reviewed by: emaste
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D42596

Details

Provenance
andrewAuthored on May 22 2024, 3:54 PM
Reviewer
emaste
Differential Revision
D42596: arm64: Allow userspace to be built with PAC and BTI
Parents
rG2183004e14a8: riscv: Implement atomic operations
Branches
Unknown
Tags
Unknown