--- zzzz-none-000/linux-4.4.60/arch/arm/include/asm/memory.h 2017-04-08 07:53:53.000000000 +0000 +++ scorpion-7490-727/linux-4.4.60/arch/arm/include/asm/memory.h 2021-02-04 17:41:59.000000000 +0000 @@ -37,7 +37,11 @@ * TASK_SIZE - the maximum size of a user space task. * TASK_UNMAPPED_BASE - the lower boundary of the mmap VM area */ +#ifndef CONFIG_KASAN #define TASK_SIZE (UL(CONFIG_PAGE_OFFSET) - UL(SZ_16M)) +#else +#define TASK_SIZE (UL(CONFIG_PAGE_OFFSET) - UL(SZ_16M) - UL(SZ_512M)) +#endif #define TASK_UNMAPPED_BASE ALIGN(TASK_SIZE / 3, SZ_16M) /*