OSDN Git Service

csky: uprobes: Restore thread.trap_no
authorTiezhu Yang <yangtiezhu@loongson.cn>
Sun, 23 Apr 2023 01:39:47 +0000 (09:39 +0800)
committerGuo Ren <guoren@linux.alibaba.com>
Sun, 18 Jun 2023 12:37:27 +0000 (08:37 -0400)
commitdd64621a2a97798d5df40028238a703d4324036b
tree7c694cda668d0197a500285dd16cafb9ddd9c8c7
parentac9a78681b921877518763ba0e89202254349d1b
csky: uprobes: Restore thread.trap_no

thread.trap_no is saved in arch_uprobe_pre_xol(), it should be restored
in arch_uprobe_{post,abort}_xol() accordingly, otherwise the save operation
is meaningless, this change is similar with x86 and powerpc.

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Guo Ren <guoren@kernel.org>
Signed-off-by: Guo Ren <guoren@kernel.org>
arch/csky/kernel/probes/uprobes.c