]> git.baikalelectronics.ru Git - kernel.git/commit
usercopy: fold builtin_const check into inline function
authorKees Cook <keescook@chromium.org>
Wed, 31 Aug 2016 23:04:21 +0000 (16:04 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 6 Sep 2016 19:17:29 +0000 (12:17 -0700)
commit0fa02a027e72f39276c95e5206a4678a9fbff491
tree6573d95f94ea5b164035a9527a60d08650c29329
parent28d44f228ee36fc88a769c8af4f146940edefa93
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>
arch/ia64/include/asm/uaccess.h
arch/powerpc/include/asm/uaccess.h
arch/sparc/include/asm/uaccess_32.h
arch/sparc/include/asm/uaccess_64.h
include/linux/thread_info.h