ARM: 8771/1: kprobes: Prohibit kprobes on do_undefinstr
authorMasami Hiramatsu <mhiramat@kernel.org>
Sun, 13 May 2018 04:04:16 +0000 (05:04 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Sat, 19 May 2018 10:35:56 +0000 (11:35 +0100)
commiteb0146daefdde65665b7f076fbff7b49dade95b9
treeb7e478904c9cd985c4349977d67b92178369392d
parent70948c05fdde0aac32f9667856a88725c192fa40
ARM: 8771/1: kprobes: Prohibit kprobes on do_undefinstr

Prohibit kprobes on do_undefinstr because kprobes on
arm is implemented by undefined instruction. This means
if we probe do_undefinstr(), it can cause infinit
recursive exception.

Fixes: 24ba613c9d6c ("ARM kprobes: core code")
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/traps.c