remarkable-linux/arch/arm64
Dave Martin 53b1a742ed arm64: ptrace: Avoid setting compat FP[SC]R to garbage if get_user fails
If get_user() fails when reading the new FPSCR value from userspace
in compat_vfp_get(), then garbage* will be written to the task's
FPSR and FPCR registers.

This patch prevents this by checking the return from get_user()
first.

[*] Actually, zero, due to the behaviour of get_user() on error, but
that's still not what userspace expects.

Fixes: 478fcb2cdb ("arm64: Debugging support")
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
2017-06-29 17:44:08 +01:00
..
boot arm64: dts: hikey: Fix WiFi support 2017-05-23 14:18:10 +02:00
configs arm64: defconfig: enable options needed for QCom DB410c board 2017-05-19 00:01:37 -07:00
crypto Revert "crypto: arm64/sha - Add constant operand modifier to ASM_EXPORT" 2017-04-24 16:09:50 +08:00
include arm64: add missing conversion to __wsum in ip_fast_csum() 2017-06-29 16:32:43 +01:00
kernel arm64: ptrace: Avoid setting compat FP[SC]R to garbage if get_user fails 2017-06-29 17:44:08 +01:00
kvm arm64: KVM: Do not use stack-protector to compile EL2 code 2017-05-15 11:31:16 +02:00
lib arm64: switch to RAW_COPY_USER 2017-03-28 18:23:24 -04:00
mm Merge branch 'aarch64/for-next/ras-apei' into aarch64/for-next/core 2017-06-26 10:54:27 +01:00
net bpf, arm64: fix faulty emission of map access in tail calls 2017-05-11 12:41:31 -04:00
xen
Kconfig Merge branch 'aarch64/for-next/ras-apei' into aarch64/for-next/core 2017-06-26 10:54:27 +01:00
Kconfig.debug arm64: relocation testing module 2017-04-04 17:03:32 +01:00
Kconfig.platforms mvebu arm64 for 4.12 2017-05-10 15:36:43 +02:00
Makefile arm64: pass endianness info to sparse 2017-06-26 10:15:06 +01:00