]> git.baikalelectronics.ru Git - kernel.git/commit
s390/disassembler: add missing end marker for e7 table
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 26 Sep 2017 07:16:48 +0000 (09:16 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 29 Sep 2017 13:51:59 +0000 (15:51 +0200)
commit5b6e06a88fde02c07c645c526a00c0439d5ec683
treef24e1d5a7fffa753d11ba1f9434668790304a5dd
parenta8475a9fe155fb29a0b1024eb5681470b82b8a00
s390/disassembler: add missing end marker for e7 table

The e7 opcode table does not have an end marker. Hence when trying to
find an unknown e7 instruction the code will access memory behind the
table until it finds something that matches the opcode, or the kernel
crashes, whatever comes first.

This affects not only the in-kernel disassembler but also uprobes and
kprobes which refuse to set a probe on unknown instructions, and
therefore search the opcode tables to figure out if instructions are
known or not.

Cc: <stable@vger.kernel.org> # v3.18+
Fixes: af70954c738d9 ("s390/disassembler: add vector instructions")
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/dis.c