[all-commits] [llvm/llvm-project] b3980b: [Sanitizer] Strip PAC from PC in StackTrace::GetNe...

Julian Lettner via All-commits all-commits at lists.llvm.org
Mon Oct 25 14:48:27 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b3980b5b6817b1d24d96cd00c2a7389a718d2ade
      https://github.com/llvm/llvm-project/commit/b3980b5b6817b1d24d96cd00c2a7389a718d2ade
  Author: Julian Lettner <julian.lettner at apple.com>
  Date:   2021-10-25 (Mon, 25 Oct 2021)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.cpp

  Log Message:
  -----------
  [Sanitizer] Strip PAC from PC in StackTrace::GetNextInstructionPc()

In TSan, we use the a function reference (`__tsan_stack_initialization`)
in a call to `StackTrace::GetNextInstructionPc(uptr pc)`.  We sign
function pointers, so we need to strip the signature from this function
pointer.

Caused by: https://reviews.llvm.org/D111147

Radar-Id: rdar://problem/83940546




More information about the All-commits mailing list