]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Apr 2023 09:24:03 +0000 (11:24 +0200)
commit29914a67087e5b3da95038729876ff876bb8d68b
treea3b9dc519634460d467cb3d3ed691ae3cacb968f
parentd381033c22225f65fd1283b21c1a7ae2095f5ee4
s390/ptrace: fix PTRACE_GET_LAST_BREAK error handling

[ Upstream commit f9bbf25e7b2b74b52b2f269216a92657774f239c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/s390/kernel/ptrace.c