s390/ptrace: fix PTRACE_GET_LAST_BREAK error handling
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 6 Mar 2023 11:31:30 +0000 (12:31 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 27 Mar 2023 15:23:08 +0000 (17:23 +0200)
commitf9bbf25e7b2b74b52b2f269216a92657774f239c
tree422961df7cb308f901283916ee014dec70dd2e20
parent7bb2107e63d8a4a13bbb6fe0e1cbd68784a2e9ac
s390/ptrace: fix PTRACE_GET_LAST_BREAK error handling

Return -EFAULT if put_user() for the PTRACE_GET_LAST_BREAK
request fails, instead of silently ignoring it.

Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/ptrace.c