--- zzzz-none-000/linux-4.19.183/arch/arm/boot/compressed/decompress.c 2021-03-24 10:07:39.000000000 +0000 +++ bcm63-7530ax-756/linux-4.19.183/arch/arm/boot/compressed/decompress.c 2023-06-28 08:54:18.000000000 +0000 @@ -46,8 +46,15 @@ #endif #ifdef CONFIG_KERNEL_XZ +#if defined(CONFIG_BCM_KF_ARM_KASAN) +#ifndef CONFIG_KASAN #define memmove memmove #define memcpy memcpy +#endif +#else +#define memmove memmove +#define memcpy memcpy +#endif #include "../../../../lib/decompress_unxz.c" #endif