]> 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)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 2 Oct 2025 14:39:35 +0000 (22:39 +0800)
commitdb740f5689e61f2e75b73e5c8e7c985a3b4bc045
treee8fb8fbc9c58d90e2cd876399e52fa17ce53477e
parent892979b0a97c5f3a5decfd6a33e7f902414bfc41
LoongArch: Handle new atomic instructions for probes

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>
arch/loongarch/include/asm/inst.h
arch/loongarch/kernel/inst.c