[PATCH] D103304: Update and improve compiler-rt tests for -mllvm -asan_use_after_return=(never|[runtime]|always).
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 8 09:50:20 PDT 2021
vitalybuka accepted this revision.
vitalybuka added a comment.
Thanks. LGTM with some nits.
================
Comment at: compiler-rt/lib/asan/asan_fake_stack.cpp:219
+ALWAYS_INLINE uptr OnMallocAlways(uptr class_id, uptr size) {
+ FakeStack *fs = GetFakeStackFastAlways();
----------------
static ALWAYS_INLINE
siblings as well.
================
Comment at: compiler-rt/lib/asan/asan_fake_stack.cpp:246
return OnMalloc(class_id, size); \
} \
extern "C" SANITIZER_INTERFACE_ATTRIBUTE void __asan_stack_free_##class_id( \
----------------
Just insert 3rd one here, and please clang format
================
Comment at: llvm/test/Instrumentation/AddressSanitizer/stack-poisoning.ll:2
; RUN: opt < %s -asan -asan-module -enable-new-pm=0 -asan-use-after-return=never -S | FileCheck --check-prefix=CHECK-PLAIN %s
; RUN: opt < %s -passes='asan-pipeline' -asan-use-after-return=never -S | FileCheck --check-prefix=CHECK-PLAIN %s
; RUN: opt < %s -asan -asan-module -enable-new-pm=0 -asan-use-after-return=runtime -S | FileCheck --check-prefixes=CHECK-UAR,CHECK-UAR-RUNTIME %s
----------------
You can add now into =never cases "FileCheck ... --implicit-check-not __asan_stack_malloc"
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103304/new/
https://reviews.llvm.org/D103304
More information about the llvm-commits
mailing list