compiler_types.h: Add __no_sanitize_{address,undefined} to noinstr
authorMarco Elver <elver@google.com>
Thu, 4 Jun 2020 05:58:11 +0000 (07:58 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 15 Jun 2020 12:10:09 +0000 (14:10 +0200)
commit5144f8a8dfd7b3681f0a2b5bf599a210b2315018
tree6fd894145f691c9d671cc29291b19c0dcc5558d1
parent7b861a53e46b6b42ab8560b105af308cb72d7285
compiler_types.h: Add __no_sanitize_{address,undefined} to noinstr

Adds the portable definitions for __no_sanitize_address, and
__no_sanitize_undefined, and subsequently changes noinstr to use the
attributes to disable instrumentation via KASAN or UBSAN.

Reported-by: syzbot+dc1fa714cb070b184db5@syzkaller.appspotmail.com
Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Link: https://lore.kernel.org/lkml/000000000000d2474c05a6c938fe@google.com/
include/linux/compiler-clang.h
include/linux/compiler-gcc.h
include/linux/compiler_types.h