s390/kprobes: fix instruction copy for out of line execution
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 28 Nov 2014 11:36:48 +0000 (12:36 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 1 Dec 2014 10:07:44 +0000 (11:07 +0100)
When we generate the instruction for out of line execution the length
of the to be copied instruction was evaluated from a not initialized
memory location.
Therefore we ended up with a random (2, 4 or 6) number of bytes being
copied instead of taking the real instruction length into account.
This works surprisingly well most of the time, but still not always.

Reported-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/kprobes.c

Simple merge