MIPS: uprobes: fix incorrect uprobe brk handling
authorMarcin Nowakowski <marcin.nowakowski@imgtec.com>
Thu, 11 Aug 2016 07:02:30 +0000 (09:02 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 16 Aug 2016 13:52:02 +0000 (15:52 +0200)
commit911773320d7589b9a3c8d5bed7590e7fe9686bd1
tree924a809e70778a04ca2af61f5e0ed034e91c0415
parent85587cb39ce9a3b6391177c42cb5ee94951cf72c
MIPS: uprobes: fix incorrect uprobe brk handling

When a uprobe-replacement breakpoint instruction is handled, a notifier
is called with DIE_UPROBE argument, but a corresponding exception notify
handler for MIPS attempts to handle DIE_BREAK instead. As a result
the breakpoint instruction isn't handled by the uprobe code and the probed
application terminates with SIGTRAP.
Fix this by changing arch_uprobe_exception_notify code to handle
DIE_UPROBE as a pre-singlestep condition instead of DIE_BREAK.

Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/13884/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/uprobes.c
This page took 0.024432 seconds and 5 git commands to generate.