--- zzzz-none-000/linux-3.10.107/arch/arm/boot/compressed/decompress.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/arm/boot/compressed/decompress.c 2021-02-04 17:41:59.000000000 +0000 @@ -46,12 +46,18 @@ #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 +#ifdef CONFIG_KERNEL_LZ4 +#include "../../../../lib/decompress_unlz4.c" +#endif + int do_decompress(u8 *input, int len, u8 *output, void (*error)(char *x)) { - return decompress(input, len, NULL, NULL, output, NULL, error); + return __decompress(input, len, NULL, NULL, output, 0, NULL, error); }