powerpc/kprobes: Fix handling of instruction emulation on probe re-entry

Michael Ellerman patch-notifications at ellerman.id.au
Wed May 17 19:34:38 AEST 2017


On Mon, 2017-05-15 at 18:10:05 UTC, "Naveen N. Rao" wrote:
> Commit 22d8b3dec214c ("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: 22d8b3dec214c ("powerpc/kprobes: Emulate instructions on kprobe
> handler re-entry")
> 
> Signed-off-by: Naveen N. Rao <naveen.n.rao at linux.vnet.ibm.com>

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/d04c02f8aa96d82e4cbe783f85a820

cheers


More information about the Linuxppc-dev mailing list