]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
csky: fix csky_cmpxchg_fixup not working
authorYang Li <yang.li85200@gmail.com>
Wed, 16 Oct 2024 09:56:26 +0000 (17:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2026 15:35:16 +0000 (16:35 +0100)
commit8ad9e930fb910da2daf82f7dc0080ff4c8882826
tree8986519cb2ed98e81bb043f3617df45426c80b96
parentc88717b10792210ab48e9df8698a94f12550c220
csky: fix csky_cmpxchg_fixup not working

[ Upstream commit 809ef03d6d21d5fea016bbf6babeec462e37e68c ]

In the csky_cmpxchg_fixup function, it is incorrect to use the global
variable csky_cmpxchg_stw to determine the address where the exception
occurred.The global variable csky_cmpxchg_stw stores the opcode at the
time of the exception, while &csky_cmpxchg_stw shows the address where
the exception occurred.

Signed-off-by: Yang Li <yang.li85200@gmail.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/csky/mm/fault.c