]> git.baikalelectronics.ru Git - kernel.git/commit
s390/kprobes: remove KPROBE_SWAP_INST state
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 6 Oct 2017 11:17:10 +0000 (13:17 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 12 Oct 2017 05:16:50 +0000 (07:16 +0200)
commitdbd66ba3a527137a19811bbf2b265fe62f3c07d6
tree86b4d4e75a8d1f9f4a4578c57cab8288af4daca6
parenta8f1b523ed0b64c5444ab313df04ec5aa2b05a20
s390/kprobes: remove KPROBE_SWAP_INST state

For an unknown reason the s390 kprobes instruction replacement
function modifies the kprobe_status of the current CPU to
KPROBE_SWAP_INST. This was supposed to catch traps that happened
during instruction patching. Such a fault is not supposed to happen,
and silently discarding such a fault is certainly also not what we
want. In fact s390 is the only architecture which has this odd piece
of code.

Just remove this and behave like all other architectures. This was
pointed out by Jens Remus.

Reported-by: Jens Remus <jremus@linux.vnet.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/kprobes.h
arch/s390/kernel/kprobes.c