[all-commits] [llvm/llvm-project] 37f6c9: [HWASAN] Untag before tagging alloca pointers

Vitaly Buka via All-commits all-commits at lists.llvm.org
Sun Apr 30 18:27:19 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 37f6c9f8520cb14743259c9576c8c6beac954251
      https://github.com/llvm/llvm-project/commit/37f6c9f8520cb14743259c9576c8c6beac954251
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2023-04-30 (Sun, 30 Apr 2023)

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

  Log Message:
  -----------
  [HWASAN] Untag before tagging alloca pointers

This is folloup to b5595836, which missed the
Replacemen variable.

Before b5595836 the code assumed that alloca
ptrs are not tagged so tagging is implemented
as simple OR.

So this patch completes support of tagged SP
by passing untagged alloca pointers into
tagPointer.




More information about the All-commits mailing list