[PATCH] D149228: [HWASAN] Support tagged stack pointer

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 25 19:56:33 PDT 2023


vitalybuka created this revision.
Herald added subscribers: luke, Enna1, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
Herald added a project: All.
vitalybuka requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, MaskRay.
Herald added a project: LLVM.

If stack was allocated using regular allocator, it may be tagged
and it will make memToShadow calculate invalid offset.

Also when UAR tag should be the tag of the stack frame pointer.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149228

Files:
  llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
  llvm/test/Instrumentation/HWAddressSanitizer/RISCV/alloca-with-calls.ll
  llvm/test/Instrumentation/HWAddressSanitizer/RISCV/alloca.ll
  llvm/test/Instrumentation/HWAddressSanitizer/RISCV/exception-lifetime.ll
  llvm/test/Instrumentation/HWAddressSanitizer/RISCV/use-after-scope-setjmp.ll
  llvm/test/Instrumentation/HWAddressSanitizer/X86/alloca-array.ll
  llvm/test/Instrumentation/HWAddressSanitizer/X86/alloca-with-calls.ll
  llvm/test/Instrumentation/HWAddressSanitizer/X86/alloca.ll
  llvm/test/Instrumentation/HWAddressSanitizer/alloca-array.ll
  llvm/test/Instrumentation/HWAddressSanitizer/alloca-with-calls.ll
  llvm/test/Instrumentation/HWAddressSanitizer/alloca.ll
  llvm/test/Instrumentation/HWAddressSanitizer/exception-lifetime.ll
  llvm/test/Instrumentation/HWAddressSanitizer/kernel-alloca.ll
  llvm/test/Instrumentation/HWAddressSanitizer/stack-coloring.ll
  llvm/test/Instrumentation/HWAddressSanitizer/use-after-scope-setjmp.ll
  llvm/test/Instrumentation/HWAddressSanitizer/use-after-scope.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149228.517028.patch
Type: text/x-patch
Size: 146518 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230426/d1a633dc/attachment.bin>


More information about the llvm-commits mailing list