[PATCH v9 11/17] x86_64: kasan: add interceptors for memset/memmove/memcpy functions

2015-01-21 Thread Andrey Ryabinin
Recently instrumentation of builtin functions calls was removed from GCC 5.0. To check the memory accessed by such functions, userspace asan always uses interceptors for them. So now we should do this as well. This patch declares memset/memmove/memcpy as weak symbols. In mm/kasan/kasan.c we have

[PATCH v9 11/17] x86_64: kasan: add interceptors for memset/memmove/memcpy functions

2015-01-21 Thread Andrey Ryabinin
Recently instrumentation of builtin functions calls was removed from GCC 5.0. To check the memory accessed by such functions, userspace asan always uses interceptors for them. So now we should do this as well. This patch declares memset/memmove/memcpy as weak symbols. In mm/kasan/kasan.c we have