OSDN Git Service

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)
commitdf8bbd0c98bef5bcf691709437c4102e9840b0f5
tree86b4d4e75a8d1f9f4a4578c57cab8288af4daca6
parent49913f1fd0e5ff5a484214501e84d1c73e739285
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