diff options
author | Kees Cook <keescook@chromium.org> | 2017-02-16 01:43:58 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2017-02-16 16:58:31 +0100 |
commit | 32b143637e8180f5d5cea54320c769210dea4f19 (patch) | |
tree | 636eec0a91ac1dfffdd9208539633cc8ccb0417a /arch/arm/lib/getuser.S | |
parent | ARM: 8643/3: arm/ptrace: Preserve previous registers for short regset write (diff) | |
download | linux-32b143637e8180f5d5cea54320c769210dea4f19.tar.xz linux-32b143637e8180f5d5cea54320c769210dea4f19.zip |
ARM: 8657/1: uaccess: consistently check object sizes
In commit 76624175dcae ("arm64: uaccess: consistently check object sizes"),
the object size checks are moved outside the access_ok() so that bad
destinations are detected before hitting the "memset(dest, 0, size)" in the
copy_from_user() failure path.
This makes the same change for arm, with attention given to possibly
extracting the uaccess routines into a common header file for all
architectures in the future.
Suggested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions