Kees Cook 32b143637e 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>
2017-02-16 15:58:31 +00:00
..
2016-06-21 10:54:29 -05:00
2014-12-04 12:41:50 +00:00
2015-05-05 13:35:39 -06:00
2015-05-28 15:31:53 +02:00
2015-09-16 16:53:39 +02:00
2016-12-14 11:14:00 +00:00
2016-08-02 19:35:29 -04:00
2014-06-01 01:17:12 +01:00
2016-08-30 17:45:34 +01:00
2013-07-08 22:08:51 +01:00
2015-06-01 23:48:19 +01:00
2016-01-20 17:55:20 -08:00
2014-02-25 11:33:37 +00:00
2016-10-19 10:18:47 +01:00
2014-03-18 16:39:40 -04:00