--- zzzz-none-000/linux-4.19.183/arch/arm/kernel/entry-armv.S 2021-03-24 10:07:39.000000000 +0000 +++ bcm63-7530ax-756/linux-4.19.183/arch/arm/kernel/entry-armv.S 2023-06-28 08:54:18.000000000 +0000 @@ -430,7 +430,12 @@ @ if it was interrupted in a critical region. Here we @ perform a quick test inline since it should be false @ 99.9999% of the time. The rest is done out of line. +#if defined(CONFIG_BCM_KF_ARM_KASAN) + ldr r0, =TASK_SIZE + cmp r4, r0 +#else cmp r4, #TASK_SIZE +#endif blhs kuser_cmpxchg64_fixup #endif #endif