]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
powerpc/uaccess: correct check for CONFIG_PPC_E500 in mask_user_address()
authorEthan Nelson-Moore <enelsonmoore@gmail.com>
Mon, 15 Jun 2026 23:37:26 +0000 (16:37 -0700)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Wed, 15 Jul 2026 02:34:13 +0000 (08:04 +0530)
mask_user_address() incorrectly checks for CONFIG_E500 instead of
CONFIG_PPC_E500, causing mask_user_address_isel() to not be used on
E500 hardware. Fix the check to use the correct name.

Fixes: 861574d51bbd ("powerpc/uaccess: Implement masked user access")
Cc: stable@vger.kernel.org # 7.0+
Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
Fixes: 861574d51bbd ("powerpc/uaccess: Implement masked user access")
Reviewed-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260615233729.29386-1-enelsonmoore@gmail.com
arch/powerpc/include/asm/uaccess.h

index 7b8c56962c3111cbab086d2a3fc4241e52169623..49039074b33fd5a111cb4bd1c1071c92bf4427c7 100644 (file)
@@ -537,7 +537,7 @@ static inline void __user *mask_user_address(const void __user *ptr)
 
        if (IS_ENABLED(CONFIG_PPC64))
                return mask_user_address_simple(ptr);
-       if (IS_ENABLED(CONFIG_E500))
+       if (IS_ENABLED(CONFIG_PPC_E500))
                return mask_user_address_isel(ptr);
        if (TASK_SIZE <= UL(SZ_2G) && border >= UL(SZ_2G))
                return mask_user_address_simple(ptr);