]> git.baikalelectronics.ru Git - kernel.git/commit
compiler_attributes.h: Add __disable_sanitizer_instrumentation
authorAlexander Potapenko <glider@google.com>
Tue, 30 Nov 2021 11:44:32 +0000 (12:44 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 10 Dec 2021 00:42:28 +0000 (16:42 -0800)
commitff94de05208d359cdf9ec521aea3c9eb7efe07e7
tree01dd3b8c30b0a0de4b3551685f7deb4a95b6a239
parent0becac5881297215ee27b30563ded8fa051675d0
compiler_attributes.h: Add __disable_sanitizer_instrumentation

The new attribute maps to
__attribute__((disable_sanitizer_instrumentation)), which will be
supported by Clang >= 14.0. Future support in GCC is also possible.

This attribute disables compiler instrumentation for kernel sanitizer
tools, making it easier to implement noinstr. It is different from the
existing __no_sanitize* attributes, which may still allow certain types
of instrumentation to prevent false positives.

Signed-off-by: Alexander Potapenko <glider@google.com>
Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
include/linux/compiler_attributes.h