mm: hugetlb: define system call hugetlb size encodings in single file
[linux-2.6-microblaze.git] / init / Kconfig
index 5f0ef85..78cb246 100644 (file)
@@ -1576,6 +1576,15 @@ config SLAB_FREELIST_RANDOM
          security feature reduces the predictability of the kernel slab
          allocator against heap overflows.
 
+config SLAB_FREELIST_HARDENED
+       bool "Harden slab freelist metadata"
+       depends on SLUB
+       help
+         Many kernel heap attacks try to target slab cache metadata and
+         other infrastructure. This options makes minor performance
+         sacrifies to harden the kernel slab allocator against common
+         freelist exploit methods.
+
 config SLUB_CPU_PARTIAL
        default y
        depends on SLUB && SMP