]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kprobes: Fix handling of instruction emulation on probe re-entry
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Mon, 15 May 2017 18:10:05 +0000 (23:40 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 16 May 2017 03:11:07 +0000 (13:11 +1000)
commitb0999496afa0cb0bfe806f83b4da3820e1dded79
tree01c16da24206cc7a1ec823c59a7e2197139a7bcd
parent93c9d5ddeb942a56919e5fde6d357a9f221d6886
powerpc/kprobes: Fix handling of instruction emulation on probe re-entry

Commit 13dfa946a8c16 ("powerpc/kprobes: Emulate instructions on kprobe
handler re-entry") enabled emulating instructions on kprobe re-entry,
rather than single-stepping always. However, we didn't update the single
stepping code to only be run if the emulation fails. Also, we missed
re-enabling preemption if the instruction emulation was successful. Fix
those issues.

Fixes: 13dfa946a8c16 ("powerpc/kprobes: Emulate instructions on kprobe handler re-entry")
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/kprobes.c