Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 784bd0f8 authored by Kees Cook's avatar Kees Cook Committed by Alex Shi
Browse files

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>
(cherry picked from commit 04385fc5e8fffed84425d909a783c0f0c587d847)
Signed-off-by: default avatarAlex Shi <alex.shi@linaro.org>
parent 41e3ca9b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment