ARM: 8770/1: kprobes: Prohibit probing on optimized_callback
commitb1690451d93fcd8af8edfa3b7fc6b966d330b0a8
authorMasami Hiramatsu <mhiramat@kernel.org>
Sun, 13 May 2018 04:04:10 +0000 (13 05:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 May 2018 14:57:58 +0000 (22 16:57 +0200)
tree460811e6eb6b0cff4b5148fb74f4844cf966e964
parent70b4b1451086218a32122cf9fc7f92ccfb9ae4dc
ARM: 8770/1: kprobes: Prohibit probing on optimized_callback

commit 70948c05fdde0aac32f9667856a88725c192fa40 upstream.

Prohibit probing on optimized_callback() because
it is called from kprobes itself. If we put a kprobes
on it, that will cause a recursive call loop.
Mark it NOKPROBE_SYMBOL.

Fixes: 0dc016dbd820 ("ARM: kprobes: enable OPTPROBES for ARM 32")
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/probes/kprobes/opt-arm.c