summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2020-07-03 12:08:42 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-22 09:33:16 +0200
commit5c2450ac7c7a835bb41e2a1bcce241dd2c97b60b (patch)
tree28cb738cb5c3aafb688459e8622b3ba5458033eb /kernel
parented766e740cc97e62e7270fcdc11ce48f7238423a (diff)
downloadlinux-stable-5c2450ac7c7a835bb41e2a1bcce241dd2c97b60b.tar.gz
linux-stable-5c2450ac7c7a835bb41e2a1bcce241dd2c97b60b.tar.bz2
linux-stable-5c2450ac7c7a835bb41e2a1bcce241dd2c97b60b.zip
arm64: compat: Ensure upper 32 bits of x0 are zero on syscall return
commit 15956689a0e60aa0c795174f3c310b60d8794235 upstream. Although we zero the upper bits of x0 on entry to the kernel from an AArch32 task, we do not clear them on the exception return path and can therefore expose 64-bit sign extended syscall return values to userspace via interfaces such as the 'perf_regs' ABI, which deal exclusively with 64-bit registers. Explicitly clear the upper 32 bits of x0 on return from a compat system call. Cc: <stable@vger.kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Keno Fischer <keno@juliacomputing.com> Cc: Luis Machado <luis.machado@linaro.org> Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions