diff options
author | Kees Cook <keescook@chromium.org> | 2016-06-23 15:20:59 -0700 |
---|---|---|
committer | Sami Tolvanen <samitolvanen@google.com> | 2016-09-06 15:54:24 +0000 |
commit | 103aa7df683e7811e88e82f52c2c3f16e419a7b1 (patch) | |
tree | 922a3dfb082e54ec2f17a1ef3057913649396da6 /include/linux/blkdev.h | |
parent | 2f40fdd6bc0e1beca522657d3c9242e7b25917a2 (diff) |
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: Kees Cook <keescook@chromium.org>
Tested-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
Change-Id: Ib910a71fdc2ab808e1a45b6d33e9bae1681a1f4a
(cherry picked from commit 04385fc5e8fffed84425d909a783c0f0c587d847)
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Diffstat (limited to 'include/linux/blkdev.h')
0 files changed, 0 insertions, 0 deletions