]> 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)
commitaf192594b6e04265b21df29e23ff1c065ebf198e
tree86b4d4e75a8d1f9f4a4578c57cab8288af4daca6
parent47a350a6c788c871aeac2699d86318123349fb47
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