]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ARM: 8772/1: kprobes: Prohibit kprobes on get_user functions
authorMasami Hiramatsu <mhiramat@kernel.org>
Sun, 13 May 2018 04:04:29 +0000 (05:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 May 2018 06:48:57 +0000 (08:48 +0200)
commit104cff91618e6073e428a8a549f69f70d6454f08
tree2cc2a00dca8fb10a72fbc19ed7c173915af30edd
parent51425b7554a92040e8dc9fe42b2694a6df2125c0
ARM: 8772/1: kprobes: Prohibit kprobes on get_user functions

commit 0d73c3f8e7f6ee2aab1bb350f60c180f5ae21a2c upstream.

Since do_undefinstr() uses get_user to get the undefined
instruction, it can be called before kprobes processes
recursive check. This can cause an infinit recursive
exception.
Prohibit probing on get_user functions.

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/include/asm/assembler.h
arch/arm/lib/getuser.S