Commit e0592bc5 authored by Kees Cook's avatar Kees Cook Committed by Sami Tolvanen
Browse files

UPSTREAM: 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: default avatarKees Cook <keescook@chromium.org>
Tested-by: default avatarValdis Kletnieks <valdis.kletnieks@vt.edu>

Change-Id: Ib910a71fdc2ab808e1a45b6d33e9bae1681a1f4a
(cherry picked from commit 04385fc5)
Signed-off-by: default avatarSami Tolvanen <samitolvanen@google.com>
parent b7af2fef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment