]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: kprobes: Fix probing of conditionally executed instructions
authorJon Medhurst <tixy@yxit.co.uk>
Wed, 6 Apr 2011 10:17:09 +0000 (11:17 +0100)
committerNicolas Pitre <nicolas.pitre@linaro.org>
Fri, 29 Apr 2011 03:40:54 +0000 (23:40 -0400)
commit085c6d76c002069c592d93340c1e4d7b20b35393
tree033428a02241173a7645e8f84f8382d0fb8eaab8
parentdc37dd17bcf8a246f2d0c4da1d2c5a7661cb0330
ARM: kprobes: Fix probing of conditionally executed instructions

When a kprobe is placed onto conditionally executed ARM instructions,
many of the emulation routines used to single step them produce corrupt
register results. Rather than fix all of these cases we modify the
framework which calls them to test the relevant condition flags and, if
the test fails, skip calling the emulation code.

Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
arch/arm/include/asm/kprobes.h
arch/arm/kernel/kprobes-decode.c
arch/arm/kernel/kprobes.c