]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: ptrace: Remove redundant overrun check from compat_vfp_set()
authorDave Martin <Dave.Martin@arm.com>
Thu, 29 Jun 2017 14:25:48 +0000 (15:25 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 29 Jun 2017 16:44:08 +0000 (17:44 +0100)
commit16d38acb12d065ebe3494e4e31e8b4438f3214da
treeae2413f6cdbf4e8fffc4e4a93f521a1265d8a1bb
parent53b1a742ed251780267a57415bc955bd50f40c3d
arm64: ptrace: Remove redundant overrun check from compat_vfp_set()

compat_vfp_set() checks for userspace trying to write an excessive
amount of data to the regset.  However this check is conspicuous
for its absence from every other _set() in the arm64 ptrace
implementation.  In fact, the core ptrace_regset() already clamps
userspace's iov_len to the regset size before the individual regset
.{get,set}() methods get called.

This patch removes the redundant check.

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/ptrace.c