diff options
author | 2023-04-23 09:38:03 +0800 | |
---|---|---|
committer | 2023-04-24 13:31:44 +0200 | |
commit | 46e614cc91f7bd6f7872e434e6bcfda44454aac3 (patch) | |
tree | 343be2adca0096ead02cb6124c657839db71cd6a /arch/mips/kernel | |
parent | MIPS: Don't clear _PAGE_SPECIAL in _PAGE_CHG_MASK (diff) | |
download | linux-46e614cc91f7bd6f7872e434e6bcfda44454aac3.tar.gz linux-46e614cc91f7bd6f7872e434e6bcfda44454aac3.tar.bz2 linux-46e614cc91f7bd6f7872e434e6bcfda44454aac3.zip |
MIPS: uprobes: Restore thread.trap_nr
thread.trap_nr is saved in arch_uprobe_pre_xol(), it should be restored
in arch_uprobe_{post,abort}_xol() accordingly, actually it was only done
in the post function, just do it in the abort function too, this change
is similar with x86 and powerpc.
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r-- | arch/mips/kernel/uprobes.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/kernel/uprobes.c b/arch/mips/kernel/uprobes.c index 6b630ed4438d..401b148f8917 100644 --- a/arch/mips/kernel/uprobes.c +++ b/arch/mips/kernel/uprobes.c @@ -191,6 +191,7 @@ void arch_uprobe_abort_xol(struct arch_uprobe *aup, { struct uprobe_task *utask = current->utask; + current->thread.trap_nr = utask->autask.saved_trap_nr; instruction_pointer_set(regs, utask->vaddr); } |