[all-commits] [llvm/llvm-project] 7c7922: [BOLT] Gadget scanner: detect untrusted LR before ...

Anatoly Trosinenko via All-commits all-commits at lists.llvm.org
Tue Apr 29 07:20:12 PDT 2025


  Branch: refs/heads/users/atrosinenko/bolt-gs-untrusted-lr-before-tail-call
  Home:   https://github.com/llvm/llvm-project
  Commit: 7c7922d617558f5e4a5860015c10b6be32a18596
      https://github.com/llvm/llvm-project/commit/7c7922d617558f5e4a5860015c10b6be32a18596
  Author: Anatoly Trosinenko <atrosinenko at accesssoftek.com>
  Date:   2025-04-29 (Tue, 29 Apr 2025)

  Changed paths:
    M bolt/lib/Passes/PAuthGadgetScanner.cpp
    M bolt/test/binary-analysis/AArch64/gs-pacret-autiasp.s
    M bolt/test/binary-analysis/AArch64/gs-pauth-debug-output.s
    A bolt/test/binary-analysis/AArch64/gs-pauth-tail-calls.s

  Log Message:
  -----------
  [BOLT] Gadget scanner: detect untrusted LR before tail call

Implement the detection of tail calls performed with untrusted link
register, which violates the assumption made on entry to every function.

Unlike other pauth gadgets, this one involves some amount of guessing
which branch instructions should be checked as tail calls.



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