Re: [PATCH v4 1/5] kasan: add compiler support for clang

2017-12-05 Thread Andrey Ryabinin
On 12/04/2017 10:17 PM, Paul Lawrence wrote: > 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. > > Signed-off-by: Greg Hackmann > Signed

[PATCH v4 1/5] kasan: add compiler support for clang

2017-12-04 Thread Paul Lawrence
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. Signed-off-by: Greg Hackmann Signed-off-by: Paul Lawrence --- include/linux/compiler-clang.h