Andrey Ryabinin <a.ryabinin@xxxxxxxxxxx> writes: > + > +#undef memcpy > +void *kasan_memset(void *ptr, int val, size_t len); > +void *kasan_memcpy(void *dst, const void *src, size_t len); > +void *kasan_memmove(void *dst, const void *src, size_t len); > + > +#define memcpy(dst, src, len) kasan_memcpy((dst), (src), (len)) > +#define memset(ptr, val, len) kasan_memset((ptr), (val), (len)) > +#define memmove(dst, src, len) kasan_memmove((dst), (src), (len)) I don't think just define is enough, gcc can call these functions implicitely too (both with and without __). For example for a struct copy. You need to have true linker level aliases. -Andi -- ak@xxxxxxxxxxxxxxx -- Speaking for myself only -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html