powerpc/jprobes: Validate break handler invocation as being due to a jprobe_return()
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Fri, 22 Sep 2017 09:10:48 +0000 (14:40 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 5 Oct 2017 05:12:48 +0000 (16:12 +1100)
commit3368f5699a9b0e281e14f9f93244da0a922f6df0
tree2b0100e50a156dc60e70784e85c35a6713e7be95
parent6baea433bc84cd148af1c524389a8d756f67412e
powerpc/jprobes: Validate break handler invocation as being due to a jprobe_return()

Fix a circa 2005 FIXME by implementing a check to ensure that we
actually got into the jprobe break handler() due to the trap in
jprobe_return().

Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
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