summaryrefslogtreecommitdiffstats
path: root/init/Kconfig
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2016-06-23 18:20:59 -0400
committerKees Cook <keescook@chromium.org>2016-07-26 17:41:53 -0400
commit04385fc5e8fffed84425d909a783c0f0c587d847 (patch)
tree07f94a9ec860dc0bcb6efd2f44632d0a5da29237 /init/Kconfig
parent97433ea4fda62349bfa42089455593cbcb57e06c (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>
Diffstat (limited to 'init/Kconfig')
-rw-r--r--init/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index c02d89777713..1312d7b5a5fb 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1758,6 +1758,7 @@ choice
1758 1758
1759config SLAB 1759config SLAB
1760 bool "SLAB" 1760 bool "SLAB"
1761 select HAVE_HARDENED_USERCOPY_ALLOCATOR
1761 help 1762 help
1762 The regular slab allocator that is established and known to work 1763 The regular slab allocator that is established and known to work
1763 well in all environments. It organizes cache hot objects in 1764 well in all environments. It organizes cache hot objects in