[PATCH] D89344: Introduce convenience macro ASAN_NO_INSTR_PTR.

Julian Lettner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 13 15:38:24 PDT 2020


yln added a comment.

> Previously __attribute__((address_space(1))) had to be applied to pointer types to avoid instrumentation.

I wasn't aware of this.  Is this a principled way to tell ASan to skip instrumentation of a local var, or is it used because "it works" (but it depends on implementation details)?
Note that I don't know the actual meaning/semantics of `address_space`.

Would generalizing `__attribute__((no_sanitize("address")))` to also apply to local vars (of pointer type) be a cleaner way?
https://clang.llvm.org/docs/AddressSanitizer.html#disabling-instrumentation-with-attribute-no-sanitize-address


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89344/new/

https://reviews.llvm.org/D89344



More information about the llvm-commits mailing list