--- zzzz-none-000/linux-4.4.60/arch/arm/boot/compressed/decompress.c 2017-04-08 07:53:53.000000000 +0000 +++ scorpion-7490-727/linux-4.4.60/arch/arm/boot/compressed/decompress.c 2021-02-04 17:41:59.000000000 +0000 @@ -46,8 +46,10 @@ #endif #ifdef CONFIG_KERNEL_XZ +#if !defined(CONFIG_KASAN) || defined(__SANITIZE_ADDRESS__) #define memmove memmove #define memcpy memcpy +#endif #include "../../../../lib/decompress_unxz.c" #endif