[all-commits] [llvm/llvm-project] b894e6: [AArch64][PAC] Support BLRA* instructions in SLS H...

Anatoly Trosinenko via All-commits all-commits at lists.llvm.org
Tue Jul 9 04:23:44 PDT 2024


  Branch: refs/heads/users/atrosinenko/retry-pauth-sls-hardening
  Home:   https://github.com/llvm/llvm-project
  Commit: b894e66946a6e8f6c4f2800c36b249615d78e263
      https://github.com/llvm/llvm-project/commit/b894e66946a6e8f6c4f2800c36b249615d78e263
  Author: Anatoly Trosinenko <atrosinenko at accesssoftek.com>
  Date:   2024-07-09 (Tue, 09 Jul 2024)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64SLSHardening.cpp
    A llvm/test/CodeGen/AArch64/speculation-hardening-sls-blra.mir

  Log Message:
  -----------
  [AArch64][PAC] Support BLRA* instructions in SLS Hardening pass

Make SLS Hardening pass handle BLRA* instructions the same way it
handles BLR. The thunk names have the form

    __llvm_slsblr_thunk_xN            for BLR thunks
    __llvm_slsblr_thunk_(aaz|abz)_xN  for BLRAAZ and BLRABZ thunks
    __llvm_slsblr_thunk_(aa|ab)_xN_xM for BLRAA and BLRAB thunks

Now there are about 1800 possible thunk names, so do not rely on linear
thunk function's name lookup and parse the name instead.

This patch reapplies llvm/llvm-project#97605.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list