summaryrefslogtreecommitdiff
path: root/lib/hwasan
diff options
context:
space:
mode:
authorMitch Phillips <mitchphillips@outlook.com>2019-04-16 22:16:01 +0000
committerMitch Phillips <mitchphillips@outlook.com>2019-04-16 22:16:01 +0000
commit0d0f3715aed2e8e9203381067c496d3d586e2a70 (patch)
tree87e91ea362931403aa5b31deed8ea201bb3930f1 /lib/hwasan
parentd540464fa145d4a1a71f28b34033f517b02a9532 (diff)
downloadcompiler-rt-0d0f3715aed2e8e9203381067c496d3d586e2a70.tar.gz
[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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@358535 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/hwasan')
-rw-r--r--lib/hwasan/hwasan_tag_mismatch_aarch64.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/hwasan/hwasan_tag_mismatch_aarch64.S b/lib/hwasan/hwasan_tag_mismatch_aarch64.S
index dfbd0538b..92f627480 100644
--- a/lib/hwasan/hwasan_tag_mismatch_aarch64.S
+++ b/lib/hwasan/hwasan_tag_mismatch_aarch64.S
@@ -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.