]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/32: Fix unpaired stwcx. on interrupt exit
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 12 Sep 2025 08:37:34 +0000 (10:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:55 +0000 (14:02 +0100)
commit74e9f302f31fb5f94ba62ba8d781cbb45818692d
tree7649714ac4a4a3ceb03037d0935c5e40e7e314d0
parentf834bd9fb83ee396944a4458c9f8d1ea3ed8a027
powerpc/32: Fix unpaired stwcx. on interrupt exit

[ Upstream commit 10e1c77c3636d815db802ceef588522c2d2d947c ]

Commit b96bae3ae2cb ("powerpc/32: Replace ASM exception exit by C
exception exit from ppc64") erroneouly copied to powerpc/32 the logic
from powerpc/64 based on feature CPU_FTR_STCX_CHECKS_ADDRESS which is
always 0 on powerpc/32.

Re-instate the logic implemented by commit b64f87c16f3c ("[POWERPC]
Avoid unpaired stwcx. on some processors") which is based on
CPU_FTR_NEED_PAIRED_STWCX feature.

Fixes: b96bae3ae2cb ("powerpc/32: Replace ASM exception exit by C exception exit from ppc64")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/6040b5dbcf5cdaa1cd919fcf0790f12974ea6e5a.1757666244.git.christophe.leroy@csgroup.eu
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/kernel/entry_32.S