linux/arch/arm/include
Kees Cook 32b143637e ARM: 8657/1: uaccess: consistently check object sizes
In commit 76624175dc ("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>
2017-02-16 15:58:31 +00:00
..
asm ARM: 8657/1: uaccess: consistently check object sizes 2017-02-16 15:58:31 +00:00
debug ARM: brcmstb: Add earlyprintk support using run-time checks 2016-08-08 11:14:09 -07:00
uapi/asm ARM: put types.h in uapi 2017-01-13 17:02:38 +00:00