]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 6745/1: kprobes insn decoding fix
authorNicolas Pitre <nicolas.pitre@linaro.org>
Mon, 21 Feb 2011 03:37:20 +0000 (04:37 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 21 Feb 2011 19:29:29 +0000 (19:29 +0000)
commit2711949a16773291b369e762bf8183c6e72ca7c7
tree80e84fc65496e03bcdf0f5c6ce2d3ae2db54fabc
parente92b9d2cb7ae743a93c543f74dcc4ae3368c38eb
ARM: 6745/1: kprobes insn decoding fix

Marcin Slusarz says:

> In arch/arm/kernel/kprobes-decode.c there's a function
> arm_kprobe_decode_insn which does:
>
> } else if ((insn & 0x0e000000) == 0x0c400000) {
> ...
>
> This is always false, so code below is dead.
> I found this bug by coccinelle (http://coccinelle.lip6.fr/).

Reported-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/kprobes-decode.c