[compiler-rt] r358535 - [HWASan] Fixed slow DWARF unwinding.

Mitch Phillips via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 16 15:16:01 PDT 2019


Author: hctim
Date: Tue Apr 16 15:16:01 2019
New Revision: 358535

URL: http://llvm.org/viewvc/llvm-project?rev=358535&view=rev
Log:
[HWASan] Fixed slow DWARF unwinding.

Summary: CFA was setup incorrectly, as there is an 8-byte gap at the top of the stack for SP 16-byte alignment purposes.

Reviewers: eugenis

Reviewed By: eugenis

Subscribers: kubamracek, javed.absar, #sanitizers, llvm-commits, pcc

Tags: #sanitizers, #llvm

Differential Revision: https://reviews.llvm.org/D60798

Modified:
    compiler-rt/trunk/lib/hwasan/hwasan_tag_mismatch_aarch64.S

Modified: compiler-rt/trunk/lib/hwasan/hwasan_tag_mismatch_aarch64.S
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/hwasan/hwasan_tag_mismatch_aarch64.S?rev=358535&r1=358534&r2=358535&view=diff
==============================================================================
--- compiler-rt/trunk/lib/hwasan/hwasan_tag_mismatch_aarch64.S (original)
+++ compiler-rt/trunk/lib/hwasan/hwasan_tag_mismatch_aarch64.S Tue Apr 16 15:16:01 2019
@@ -68,9 +68,9 @@ __hwasan_tag_mismatch:
   // __hwasan_tag_mismatch. The frame pointer is already correctly setup
   // by __hwasan_check_*.
   add x29, sp, #232
-  CFI_DEF_CFA(w29, 16)
-  CFI_OFFSET(w30, -8)
-  CFI_OFFSET(w29, -16)
+  CFI_DEF_CFA(w29, 24)
+  CFI_OFFSET(w30, -16)
+  CFI_OFFSET(w29, -24)
 
   // Save the rest of the registers into the preallocated space left by
   // __hwasan_check.




More information about the llvm-commits mailing list