[PATCH] D103713: Update and improve compiler-rt tests for -mllvm -asan_use_after_return=(never|[runtime]|always).

Kevin Athey via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 4 12:57:08 PDT 2021


kda created this revision.
kda added a reviewer: delcypher.
kda requested review of this revision.
Herald added projects: Sanitizers, LLVM.
Herald added subscribers: llvm-commits, Sanitizers.

In addition:

- optionally add global flag to capture compile intent for UAR: __asan_detect_use_after_return_always. The global is a SANITIZER_WEAK_ATTRIBUTE.
- Add to weak_symbols.txt. (fixes breakage on macOS)

for issue: https://github.com/google/sanitizers/issues/1394


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103713

Files:
  compiler-rt/lib/asan/asan_interface.inc
  compiler-rt/lib/asan/asan_rtl.cpp
  compiler-rt/lib/asan/weak_symbols.txt
  compiler-rt/test/asan/TestCases/Linux/uar_signals.cpp
  compiler-rt/test/asan/TestCases/Posix/stack-use-after-return.cpp
  compiler-rt/test/asan/TestCases/Windows/dll_stack_use_after_return.cpp
  compiler-rt/test/asan/TestCases/Windows/stack_use_after_return.cpp
  compiler-rt/test/asan/TestCases/heavy_uar_test.cpp
  compiler-rt/test/asan/TestCases/pass-struct-byval-uar.cpp
  compiler-rt/test/asan/TestCases/scariness_score_test.cpp
  compiler-rt/test/asan/TestCases/uar_and_exceptions.cpp
  llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
  llvm/test/Instrumentation/AddressSanitizer/fake-stack.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103713.349950.patch
Type: text/x-patch
Size: 15937 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210604/9b928796/attachment.bin>


More information about the llvm-commits mailing list