mm: SLUB hardened usercopy support
authorKees Cook <keescook@chromium.org>
Thu, 23 Jun 2016 22:24:05 +0000 (15:24 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 26 Jul 2016 21:43:54 +0000 (14:43 -0700)
commited18adc1cdd00a5c55a20fbdaed4804660772281
tree652ad77b2d5e9ed24eb4782c2b270c7e7b4fc0c1
parent04385fc5e8fffed84425d909a783c0f0c587d847
mm: SLUB hardened usercopy support

Under CONFIG_HARDENED_USERCOPY, this adds object size checking to the
SLUB allocator to catch any copies that may span objects. Includes a
redzone handling fix discovered by Michael Ellerman.

Based on code from PaX and grsecurity.

Signed-off-by: Kees Cook <keescook@chromium.org>
Tested-by: Michael Ellerman <mpe@ellerman.id.au>
Reviwed-by: Laura Abbott <labbott@redhat.com>
init/Kconfig
mm/slub.c