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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 May 2018 14:57:58 +0000 (16:57 +0200)
commit10b408d6324b60fe2a949c2bac63fe9d5bd00851
tree416244bd39d1e415a0d540652b4c80308d589d14
parentdc7de9b203e844ecb143b32cc86a54bb528b8c5d
ARM: 8771/1: kprobes: Prohibit kprobes on do_undefinstr

commit eb0146daefdde65665b7f076fbff7b49dade95b9 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/kernel/traps.c