[compiler-rt] Add API to temporalily disable usage of ASAN's fake stack (PR #160135)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 14 16:56:22 PDT 2025


================
@@ -311,7 +329,9 @@ extern "C" {
 // -asan-use-after-return=never, after modal UAR flag lands
 // (https://github.com/google/sanitizers/issues/1394)
 SANITIZER_INTERFACE_ATTRIBUTE
-void *__asan_get_current_fake_stack() { return GetFakeStackFast(); }
+void* __asan_get_current_fake_stack() {
----------------
vitalybuka wrote:

There is TODO for to remove this one
if this is just for test, can we instead rely on __asan_get_current_fake_stack
Use __builtin_frame_address

__builtin_frame_address always return real stack address

https://github.com/llvm/llvm-project/pull/160135


More information about the llvm-commits mailing list