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)
commit5a5af730536fbf15fc354980cba2a0400afa6b76
tree80e84fc65496e03bcdf0f5c6ce2d3ae2db54fabc
parent58e9c47fa0dd76693b2c85c010c7430a4de77c6d
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