diff options
| author | Kees Cook <keescook@chromium.org> | 2016-08-31 16:04:21 -0700 |
|---|---|---|
| committer | Amit Pundir <amit.pundir@linaro.org> | 2016-09-14 14:44:29 +0530 |
| commit | ab8010a1aea63d162c912319f1b81f4e0aaebb4a (patch) | |
| tree | 65f281ea043b07ed9a55b62b5d665383e34cd72b /mm/usercopy.c | |
| parent | b53d6e9ab1130a59da405825584d93d901e87864 (diff) | |
BACKPORT: usercopy: fold builtin_const check into inline function
Instead of having each caller of check_object_size() need to remember to
check for a const size parameter, move the check into check_object_size()
itself. This actually matches the original implementation in PaX, though
this commit cleans up the now-redundant builtin_const() calls in the
various architectures.
Signed-off-by: Kees Cook <keescook@chromium.org>
Change-Id: I348809399c10ffa051251866063be674d064b9ff
(cherry picked from 81409e9e28058811c9ea865345e1753f8f677e44)
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Diffstat (limited to 'mm/usercopy.c')
0 files changed, 0 insertions, 0 deletions
