s390/uprobes: implement arch_uretprobe_is_alive()
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 16 Apr 2018 10:22:24 +0000 (12:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 29 Apr 2018 09:32:03 +0000 (11:32 +0200)
commitbed2d7627a9d95ecf4662fbcd7dd30d762997b1a
treea61d294d8fdb553003955993ebbfd0350be92a33
parenta714a5f3afdd8de38985a88fc6d29f81873369d1
s390/uprobes: implement arch_uretprobe_is_alive()

commit 783c3b53b9506db3e05daacfe34e0287eebb09d8 upstream.

Implement s390 specific arch_uretprobe_is_alive() to avoid SIGSEGVs
observed with uretprobes in combination with setjmp/longjmp.

See commit 2dea1d9c38e4 ("powerpc/uprobes: Implement
arch_uretprobe_is_alive()") for more details.

With this implemented all test cases referenced in the above commit
pass.

Reported-by: Ziqian SUN <zsun@redhat.com>
Cc: <stable@vger.kernel.org> # v4.3+
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/kernel/uprobes.c