]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
LoongArch: Handle new atomic instructions for probes
authorTiezhu Yang <yangtiezhu@loongson.cn>
Thu, 2 Oct 2025 14:39:35 +0000 (22:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Nov 2025 20:37:38 +0000 (15:37 -0500)
commit7b23dafb9daf5bfb328cbc037acb99ffdfc8d28e
treee90a89e559bbe658d52da2c5b2fc115a466ff955
parent7b8bb62e12c02b712c6e3a8fc2acaddfdc5e2d6d
LoongArch: Handle new atomic instructions for probes

[ Upstream commit db740f5689e61f2e75b73e5c8e7c985a3b4bc045 ]

The atomic instructions sc.q, llacq.{w/d}, screl.{w/d} were newly added
in the LoongArch Reference Manual v1.10, it is necessary to handle them
in insns_not_supported() to avoid putting a breakpoint in the middle of
a ll/sc atomic sequence, otherwise it will loop forever for kprobes and
uprobes.

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/loongarch/include/asm/inst.h
arch/loongarch/kernel/inst.c