android_kernel_samsung_msm8976/arch/arm64
Dave Martin 7f182d7763 arm64/ptrace: Reject attempts to set incomplete hardware breakpoint fields
commit ad9e202aa1ce571b1d7fed969d06f66067f8a086 upstream.

We cannot preserve partial fields for hardware breakpoints, because
the values written by userspace to the hardware breakpoint
registers can't subsequently be recovered intact from the hardware.

So, just reject attempts to write incomplete fields with -EINVAL.

Fixes: 478fcb2cdb ("arm64: Debugging support")
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Acked-by: Will Deacon <Will.Deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2019-07-27 21:43:01 +02:00
..
boot
configs arch/arm64: configs: Enable CONFIG_IP6_NF_MATCH_RPFILTER 2018-06-15 18:02:35 +02:00
crypto
include arm64/ptrace: Avoid uninitialised struct padding in fpr_set() 2019-07-27 21:43:00 +02:00
kernel arm64/ptrace: Reject attempts to set incomplete hardware breakpoint fields 2019-07-27 21:43:01 +02:00
kvm
lib
mm
xen
Kconfig
Kconfig.debug
Makefile