1. Mar 19, 2024
    • Ahmed Bougacha's avatar
      [AArch64] Add FPAC feature. · 5d7cd2c4
      Ahmed Bougacha authored
      5d7cd2c4
    • Ahmed Bougacha's avatar
      [AArch64][PAC] Lower auth/resign into checked sequence. · 735111d2
      Ahmed Bougacha authored
      This introduces 3 hardening modes in the authentication step of
      auth/resign lowering:
      - unchecked, which uses the AUT instructions as-is
      - poison, which detects authentication failure (using an XPAC+CMP
        sequence), explicitly yielding the XPAC result rather than the
        AUT result, to avoid leaking
      - trap, which additionally traps on authentication failure,
        using BRK #0xC470 + key (IA C470, IB C471, DA C472, DB C473.)
      
      Not all modes are necessarily useful in all contexts, and there
      are more performant alternative lowerings in specific contexts
      (e.g., when I/D TBI enablement is a target ABI guarantee.)
      
      This is controlled by the `ptrauth-auth-traps` function attributes,
      and can be overridden using `-aarch64-ptrauth-auth-checks=`.
      735111d2
  2. Mar 18, 2024