Commit 0bfb6eed authored by Heiko Carstens's avatar Heiko Carstens Committed by openeuler-sync-bot
Browse files

s390/ptrace: fix PTRACE_GET_LAST_BREAK error handling

stable inclusion
from stable-v5.10.179
commit 8c746b665089f9da50c34fc0369aa7d7f7c5e609
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8C809

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=8c746b665089f9da50c34fc0369aa7d7f7c5e609



--------------------------------

[ Upstream commit f9bbf25e ]

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

Reviewed-by: default avatarSven Schnelle <svens@linux.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
(cherry picked from commit d67c0d0a)
parent 2cc65f41
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment