diff options
| author | Kees Cook <keescook@chromium.org> | 2016-06-23 15:20:59 -0700 |
|---|---|---|
| committer | Alex Shi <alex.shi@linaro.org> | 2016-08-27 11:23:38 +0800 |
| commit | 784bd0f8d7303ff0025e2ea44b68b6fc6323544d (patch) | |
| tree | 319412450f6b10353b1cf5e7a30bb4cc443c4c0e /lib/strncpy_from_user.c | |
| parent | 41e3ca9b2fc29b61dda146c9ba79736ba11e28e8 (diff) | |
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>
(cherry picked from commit 04385fc5e8fffed84425d909a783c0f0c587d847)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
Diffstat (limited to 'lib/strncpy_from_user.c')
0 files changed, 0 insertions, 0 deletions
