]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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>
Sat, 26 May 2018 06:48:56 +0000 (08:48 +0200)
commite4f821810c2856c856c28884cd6fcb1b528412bb
tree23249ecb7d685875391a40d8218484316f3bdc7b
parent5f1d5f781555718ceebded2d9a7659d3766d86b8
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