Unverified Commit 57ee58e3 authored by Nick Hu's avatar Nick Hu Committed by Palmer Dabbelt
Browse files

kasan: No KASAN's memmove check if archs don't have it.

If archs don't have memmove then the C implementation from lib/string.c is used,
and then it's instrumented by compiler. So there is no need to add KASAN's
memmove to manual checks.

Signed-off-by: default avatarNick Hu <nickhu@andestech.com>
Acked-by: default avatarDmitry Vyukov <dvyukov@google.com>
Acked-by: default avatarAndrey Ryabinin <aryabinin@virtuozzo.com>
Signed-off-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
parent def9d278
......@@ -110,6 +110,7 @@ void *memset(void *addr, int c, size_t len)
return __memset(addr, c, len);
#undef memmove
void *memmove(void *dest, const void *src, size_t len)
......@@ -118,6 +119,7 @@ void *memmove(void *dest, const void *src, size_t len)
return __memmove(dest, src, len);
#undef memcpy
void *memcpy(void *dest, const void *src, size_t len)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment