s390: enable HAVE_FUNCTION_ERROR_INJECTION
authorIlya Leoshkevich <iii@linux.ibm.com>
Wed, 22 Jul 2020 21:58:54 +0000 (23:58 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 27 Jul 2020 08:33:28 +0000 (10:33 +0200)
commit73d6eb48d26930f0cbdc8bf1ccb0ad964e7d2b90
tree4cde972f30659982c9c0d4e79960b41021c368c1
parent4631f3ca493a7c8f9f31aef45fc0fc0e182155b7
s390: enable HAVE_FUNCTION_ERROR_INJECTION

This kernel feature is required for enabling BPF_KPROBE_OVERRIDE.

Define override_function_with_return() and regs_set_return_value()
functions, and fix compile errors in syscall_wrapper.h.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/Kconfig
arch/s390/include/asm/ptrace.h
arch/s390/include/asm/syscall_wrapper.h
arch/s390/lib/Makefile
arch/s390/lib/error-inject.c [new file with mode: 0644]