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: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> Signed-off-by:
sanglipeng <sanglipeng1@jd.com> (cherry picked from commit d67c0d0a)
Loading
Please sign in to comment