--- zzzz-none-000/linux-5.4.213/arch/arm/kernel/entry-armv.S 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/arch/arm/kernel/entry-armv.S 2024-08-14 09:01:27.000000000 +0000 @@ -406,7 +406,8 @@ @ 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. - cmp r4, #TASK_SIZE + ldr r0, =TASK_SIZE + cmp r4, r0 blhs kuser_cmpxchg64_fixup #endif #endif