From: "Christophe Leroy (CS GROUP)" <chleroy@kernel.org>
To: Ethan Nelson-Moore <enelsonmoore@gmail.com>,
Nicholas Piggin <npiggin@gmail.com>,
Madhavan Srinivasan <maddy@linux.ibm.com>,
Sayali Patil <sayalip@linux.ibm.com>,
Michael Ellerman <mpe@ellerman.id.au>,
linuxppc-dev@lists.ozlabs.org
Cc: stable@vger.kernel.org
Subject: Re: [PATCH] powerpc/uaccess: correct check for CONFIG_PPC_E500 in mask_user_address()
Date: Fri, 12 Jun 2026 15:28:10 +0200 [thread overview]
Message-ID: <598af26b-0f1d-4015-a3c7-b738a7364ab2@kernel.org> (raw)
In-Reply-To: <20260611010914.429574-1-enelsonmoore@gmail.com>
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);
prev parent reply other threads:[~2026-06-12 13:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=598af26b-0f1d-4015-a3c7-b738a7364ab2@kernel.org \
--to=chleroy@kernel.org \
--cc=enelsonmoore@gmail.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maddy@linux.ibm.com \
--cc=mpe@ellerman.id.au \
--cc=npiggin@gmail.com \
--cc=sayalip@linux.ibm.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox