mm: SLAB hardened usercopy support
authorKees Cook <keescook@chromium.org>
Thu, 23 Jun 2016 22:20:59 +0000 (15:20 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 26 Jul 2016 21:41:53 +0000 (14:41 -0700)
commit04385fc5e8fffed84425d909a783c0f0c587d847
tree07f94a9ec860dc0bcb6efd2f44632d0a5da29237
parent97433ea4fda62349bfa42089455593cbcb57e06c
mm: SLAB hardened usercopy support

Under CONFIG_HARDENED_USERCOPY, this adds object size checking to the
SLAB allocator to catch any copies that may span objects.

Based on code from PaX and grsecurity.

Signed-off-by: Kees Cook <keescook@chromium.org>
Tested-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
init/Kconfig
mm/slab.c