[asan] Enable detect_stack_use_after_return=1 by default on Linux
authorVitaly Buka <vitalybuka@google.com>
Fri, 29 Apr 2022 02:14:52 +0000 (19:14 -0700)
committerVitaly Buka <vitalybuka@google.com>
Fri, 29 Apr 2022 04:08:16 +0000 (21:08 -0700)
commit78582194361e4454e95d3af23367b81dd63b7943
tree9a564fd279843808f6146b10c23d411e4a8826b4
parenta70cf56d20b956fc008d24420e14226127ba9f4a
[asan] Enable detect_stack_use_after_return=1 by default on Linux

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
clang/docs/AddressSanitizer.rst
clang/docs/ReleaseNotes.rst
compiler-rt/lib/asan/asan_flags.inc