[all-commits] [llvm/llvm-project] 0867ed: [HWASan] Add basic stack tagging support for LAM.

Matt Morehouse via All-commits all-commits at lists.llvm.org
Fri Jun 11 08:22:41 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0867edfc643891c22ef089f8f6a4dadc691f0742
      https://github.com/llvm/llvm-project/commit/0867edfc643891c22ef089f8f6a4dadc691f0742
  Author: Matt Morehouse <mascasa at google.com>
  Date:   2021-06-11 (Fri, 11 Jun 2021)

  Changed paths:
    M clang/lib/Driver/SanitizerArgs.cpp
    M clang/test/Driver/fsanitize.c
    M compiler-rt/test/hwasan/TestCases/deep-recursion.c
    M compiler-rt/test/hwasan/TestCases/longjmp.c
    M compiler-rt/test/hwasan/TestCases/mem-intrinsics.c
    M compiler-rt/test/hwasan/TestCases/rich-stack.c
    M compiler-rt/test/hwasan/TestCases/stack-history-length.c
    M compiler-rt/test/hwasan/TestCases/stack-oob.c
    M compiler-rt/test/hwasan/TestCases/stack-uar-dynamic.c
    M compiler-rt/test/hwasan/TestCases/stack-uar-realign.c
    M compiler-rt/test/hwasan/TestCases/stack-uar.c
    M llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
    A llvm/test/Instrumentation/HWAddressSanitizer/X86/alloca-array.ll
    A llvm/test/Instrumentation/HWAddressSanitizer/X86/alloca-with-calls.ll
    A llvm/test/Instrumentation/HWAddressSanitizer/X86/alloca.ll

  Log Message:
  -----------
  [HWASan] Add basic stack tagging support for LAM.

Adds the basic instrumentation needed for stack tagging.

Currently does not support stack short granules or TLS stack histories,
since a different code path is followed for the callback instrumentation
we use.

We may simply wait to support these two features until we switch to
a custom calling convention.

Patch By: xiangzhangllvm, morehouse

Reviewed By: vitalybuka

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




More information about the All-commits mailing list