[all-commits] [llvm/llvm-project] b55958: [HWASAN] Support tagged stack pointer

Vitaly Buka via All-commits all-commits at lists.llvm.org
Wed Apr 26 19:27:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b5595836bc2636eab4b4902e7e589bdd14615318
      https://github.com/llvm/llvm-project/commit/b5595836bc2636eab4b4902e7e589bdd14615318
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2023-04-26 (Wed, 26 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/stack-coloring.ll
    M llvm/test/Instrumentation/HWAddressSanitizer/use-after-scope-setjmp.ll
    M llvm/test/Instrumentation/HWAddressSanitizer/use-after-scope.ll

  Log Message:
  -----------
  [HWASAN] Support tagged stack pointer

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.

Reviewed By: eugenis

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




More information about the All-commits mailing list