[PATCH] D102901: [HWASAN] Update pointer tag for X86_64

Xiang Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 20 23:43:16 PDT 2021


xiangzhangllvm created this revision.
xiangzhangllvm added reviewers: morehouse, vitalybuka, eugenis.
xiangzhangllvm added a project: Sanitizers.
Herald added subscribers: pengfei, hiraditya.
xiangzhangllvm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

In LAM model X86_64 will use 6 bits 57-62 (of 0-63) as HWASAN tag.
So here we make sure the tag shift position and tag mask is correct for x86-64.


https://reviews.llvm.org/D102901

Files:
  llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
  llvm/test/Instrumentation/HWAddressSanitizer/X86/stack.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102901.346931.patch
Type: text/x-patch
Size: 14899 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210521/d202315c/attachment.bin>


More information about the llvm-commits mailing list