Skip to content

Commit 46e614c

Browse files
seehearfeeltsbogend
authored andcommitted
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>
1 parent 1492c6b commit 46e614c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/mips/kernel/uprobes.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ void arch_uprobe_abort_xol(struct arch_uprobe *aup,
191191
{
192192
struct uprobe_task *utask = current->utask;
193193

194+
current->thread.trap_nr = utask->autask.saved_trap_nr;
194195
instruction_pointer_set(regs, utask->vaddr);
195196
}
196197

0 commit comments

Comments
 (0)