]> git.baikalelectronics.ru Git - kernel.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)
committerRussell King <rmk+kernel@armlinux.org.uk>
Sat, 19 May 2018 10:35:56 +0000 (11:35 +0100)
commit4fe30ea5e11b1e543c6ba8e182418296d7659bbe
tree1157529f1984e2f576326efb9fcc5dda67a9da86
parentd91ce836b6cdc4e97ab9980315367d0ba8a101f6
ARM: 8772/1: kprobes: Prohibit kprobes on get_user functions

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