]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
LoongArch: uprobes: Remove redundant code about resume_era
authorTiezhu Yang <yangtiezhu@loongson.cn>
Wed, 14 May 2025 14:18:10 +0000 (22:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 May 2025 12:12:19 +0000 (14:12 +0200)
commit34439d470ba07ee623379e9c9a716bd2704ea3b9
tree3ceca30d141f826c5c99a927493c13cf47c2aece
parent840663825ef6a9bb84bac0acc334e2713f7b4782
LoongArch: uprobes: Remove redundant code about resume_era

commit 12614f794274f63fbdfe76771b2b332077d63848 upstream.

arch_uprobe_skip_sstep() returns true if instruction was emulated, that
is to say, there is no need to single step for the emulated instructions.
regs->csr_era will point to the destination address directly after the
exception, so the resume_era related code is redundant, just remove them.

Cc: stable@vger.kernel.org
Fixes: 19bc6cb64092 ("LoongArch: Add uprobes support")
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/loongarch/include/asm/uprobes.h
arch/loongarch/kernel/uprobes.c