* [PATCH] powerpc/kprobes: Don't save/restore DAR/DSISR to/from pt_regs for optprobes
@ 2017-06-08 19:16 Naveen N. Rao
2017-08-31 11:35 ` Michael Ellerman
0 siblings, 1 reply; 2+ messages in thread
From: Naveen N. Rao @ 2017-06-08 19:16 UTC (permalink / raw)
To: Michael Ellerman
Cc: Ananth N Mavinakayanahalli, Masami Hiramatsu, linuxppc-dev
We don't save/restore these across a trap, or with KPROBES_ON_FTRACE.
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
---
arch/powerpc/kernel/optprobes_head.S | 8 --------
1 file changed, 8 deletions(-)
diff --git a/arch/powerpc/kernel/optprobes_head.S b/arch/powerpc/kernel/optprobes_head.S
index 4937bef7652f..52fc864cdec4 100644
--- a/arch/powerpc/kernel/optprobes_head.S
+++ b/arch/powerpc/kernel/optprobes_head.S
@@ -60,10 +60,6 @@ optprobe_template_entry:
std r5,_CCR(r1)
lbz r5,PACASOFTIRQEN(r13)
std r5,SOFTE(r1)
- mfdar r5
- std r5,_DAR(r1)
- mfdsisr r5
- std r5,_DSISR(r1)
/*
* We may get here from a module, so load the kernel TOC in r2.
@@ -122,10 +118,6 @@ optprobe_template_call_emulate:
mtxer r5
ld r5,_CCR(r1)
mtcr r5
- ld r5,_DAR(r1)
- mtdar r5
- ld r5,_DSISR(r1)
- mtdsisr r5
REST_GPR(0,r1)
REST_10GPRS(2,r1)
REST_10GPRS(12,r1)
--
2.12.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: powerpc/kprobes: Don't save/restore DAR/DSISR to/from pt_regs for optprobes
2017-06-08 19:16 [PATCH] powerpc/kprobes: Don't save/restore DAR/DSISR to/from pt_regs for optprobes Naveen N. Rao
@ 2017-08-31 11:35 ` Michael Ellerman
0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2017-08-31 11:35 UTC (permalink / raw)
To: Naveen N. Rao; +Cc: linuxppc-dev, Masami Hiramatsu
On Thu, 2017-06-08 at 19:16:55 UTC, "Naveen N. Rao" wrote:
> We don't save/restore these across a trap, or with KPROBES_ON_FTRACE.
>
> Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/ec4189c4e8eea0c5e7c9b71cb1502c
cheers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-31 11:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-08 19:16 [PATCH] powerpc/kprobes: Don't save/restore DAR/DSISR to/from pt_regs for optprobes Naveen N. Rao
2017-08-31 11:35 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).