* [PATCH] powerpc/uaccess: correct check for CONFIG_PPC_E500 in mask_user_address()
@ 2026-06-11 1:09 Ethan Nelson-Moore
2026-06-12 13:28 ` Christophe Leroy (CS GROUP)
0 siblings, 1 reply; 2+ messages in thread
From: Ethan Nelson-Moore @ 2026-06-11 1:09 UTC (permalink / raw)
To: Nicholas Piggin, Christophe Leroy (CS GROUP), Madhavan Srinivasan,
Sayali Patil, Michael Ellerman, linuxppc-dev
Cc: Ethan Nelson-Moore, stable
CONFIG_E500 was renamed to CONFIG_PPC_E500 in commit 688de017efaa
("powerpc: Change CONFIG_E500 to CONFIG_PPC_E500"), but the check for
it in mask_user_address() was not updated, causing
mask_user_address_isel() to no longer be used on E500 hardware. Fix the
check to use the correct name.
Fixes: 688de017efaa ("powerpc: Change CONFIG_E500 to CONFIG_PPC_E500")
Cc: stable@vger.kernel.org # 6.1+
Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
---
arch/powerpc/include/asm/uaccess.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/include/asm/uaccess.h b/arch/powerpc/include/asm/uaccess.h
index e98c628e3899..619270bb7380 100644
--- a/arch/powerpc/include/asm/uaccess.h
+++ b/arch/powerpc/include/asm/uaccess.h
@@ -511,7 +511,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);
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] powerpc/uaccess: correct check for CONFIG_PPC_E500 in mask_user_address()
2026-06-11 1:09 [PATCH] powerpc/uaccess: correct check for CONFIG_PPC_E500 in mask_user_address() Ethan Nelson-Moore
@ 2026-06-12 13:28 ` Christophe Leroy (CS GROUP)
0 siblings, 0 replies; 2+ messages in thread
From: Christophe Leroy (CS GROUP) @ 2026-06-12 13:28 UTC (permalink / raw)
To: Ethan Nelson-Moore, Nicholas Piggin, Madhavan Srinivasan,
Sayali Patil, Michael Ellerman, linuxppc-dev
Cc: stable
Le 11/06/2026 à 03:09, Ethan Nelson-Moore a écrit :
> CONFIG_E500 was renamed to CONFIG_PPC_E500 in commit 688de017efaa
> ("powerpc: Change CONFIG_E500 to CONFIG_PPC_E500"), but the check for
> it in mask_user_address() was not updated, causing
> mask_user_address_isel() to no longer be used on E500 hardware. Fix the
> check to use the correct name.
>
> Fixes: 688de017efaa ("powerpc: Change CONFIG_E500 to CONFIG_PPC_E500")
Correct Fixes tag is:
Fixes: 861574d51bbd ("powerpc/uaccess: Implement masked user access")
> Cc: stable@vger.kernel.org # 6.1+
> Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
Reviewed-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
> ---
> arch/powerpc/include/asm/uaccess.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/powerpc/include/asm/uaccess.h b/arch/powerpc/include/asm/uaccess.h
> index e98c628e3899..619270bb7380 100644
> --- a/arch/powerpc/include/asm/uaccess.h
> +++ b/arch/powerpc/include/asm/uaccess.h
> @@ -511,7 +511,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);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-06-12 13:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-11 1:09 [PATCH] powerpc/uaccess: correct check for CONFIG_PPC_E500 in mask_user_address() Ethan Nelson-Moore
2026-06-12 13:28 ` Christophe Leroy (CS GROUP)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox