summaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/dis.c
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2013-09-13 14:14:10 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-10-24 17:16:50 +0200
commit1ffa11abfe90320abe82bf5bb7eeca154e333058 (patch)
tree4bd80efa5b44e470471a78698ac736fab6867644 /arch/s390/kernel/dis.c
parenta882b3b0676fa42ab29c492e56749ab00ca95c0d (diff)
downloadblackbird-op-linux-1ffa11abfe90320abe82bf5bb7eeca154e333058.tar.gz
blackbird-op-linux-1ffa11abfe90320abe82bf5bb7eeca154e333058.zip
s390/kprobes: allow kprobes only on known instructions
Since we have an in-kernel disassembler we can make sure that there won't be any kprobes set on random data. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/dis.c')
-rw-r--r--arch/s390/kernel/dis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/dis.c b/arch/s390/kernel/dis.c
index ce554f3ec445..993efe6a887c 100644
--- a/arch/s390/kernel/dis.c
+++ b/arch/s390/kernel/dis.c
@@ -1586,7 +1586,7 @@ static unsigned int extract_operand(unsigned char *code,
return val;
}
-static struct s390_insn *find_insn(unsigned char *code)
+struct s390_insn *find_insn(unsigned char *code)
{
unsigned char opfrag = code[1];
unsigned char opmask;
OpenPOWER on IntegriCloud