[all-commits] [llvm/llvm-project] 4b4437: [asan] Enable detect_stack_use_after_return=1 by d...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Fri Apr 22 15:32:01 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4b4437c084e2b8a2643e97e7aef125c438635a4d
      https://github.com/llvm/llvm-project/commit/4b4437c084e2b8a2643e97e7aef125c438635a4d
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2022-04-22 (Fri, 22 Apr 2022)

  Changed paths:
    M clang/docs/AddressSanitizer.rst
    M clang/docs/ReleaseNotes.rst
    M compiler-rt/lib/asan/asan_flags.inc
    M compiler-rt/lib/asan/tests/asan_interface_test.cpp
    M compiler-rt/test/asan/TestCases/Posix/gc-test.cpp
    M compiler-rt/test/asan/TestCases/Posix/stack-use-after-return.cpp
    M compiler-rt/test/asan/TestCases/Posix/unpoison-alternate-stack.cpp
    M compiler-rt/test/asan/TestCases/Windows/stack_use_after_return.cpp
    M compiler-rt/test/asan/TestCases/alloca_loop_unpoisoning.cpp
    M compiler-rt/test/asan/TestCases/contiguous_container.cpp
    M compiler-rt/test/asan/TestCases/handle_noreturn_bug.cpp
    M compiler-rt/test/asan/TestCases/heavy_uar_test.cpp
    M compiler-rt/test/asan/TestCases/intercept-rethrow-exception.cpp
    M compiler-rt/test/asan/TestCases/invalid-pointer-pairs-subtract-success.cpp
    M llvm/include/llvm/Transforms/Instrumentation/AddressSanitizerOptions.h

  Log Message:
  -----------
  [asan] Enable detect_stack_use_after_return=1 by default

By default -fsanitize=address already compiles with this check,
why not use it.
For compatibly it can be disabled with env ASAN_OPTIONS=detect_stack_use_after_return=0.

Reviewed By: eugenis, kda, #sanitizers, hans

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




More information about the All-commits mailing list