kasan: add compiler support for clang
authorPaul Lawrence <[email protected]>
Tue, 6 Feb 2018 23:36:03 +0000 (15:36 -0800)
committerLinus Torvalds <[email protected]>
Wed, 7 Feb 2018 02:32:42 +0000 (18:32 -0800)
commit53a98ed73b848432a51631346b02049bb7fa039d
treef923b316690f5fd0064f5e6a968acf82c33b1420
parent0e410e158e5baa1300bdf678cea4f4e0cf9d8b94
kasan: add compiler support for clang

Patch series "kasan: support alloca, LLVM", v4.

This patch (of 5):

For now we can hard-code ASAN ABI level 5, since historical clang builds
can't build the kernel anyway.  We also need to emulate gcc's
__SANITIZE_ADDRESS__ flag, or memset() calls won't be instrumented.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Greg Hackmann <[email protected]>
Signed-off-by: Paul Lawrence <[email protected]>
Acked-by: Andrey Ryabinin <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Cc: Masahiro Yamada <[email protected]>
Cc: Matthias Kaehlcke <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/compiler-clang.h