kasan: add test for vmalloc
[linux-2.6-block.git] / arch / Kconfig
index 0fcf8ec1e09883a2fbab69f02f02068dd913afc3..17c42bc363211c04dfb285bb8d2644253ba78311 100644 (file)
@@ -706,6 +706,17 @@ config HAVE_ARCH_COMPAT_MMAP_BASES
          and vice-versa 32-bit applications to call 64-bit mmap().
          Required for applications doing different bitness syscalls.
 
+# This allows to use a set of generic functions to determine mmap base
+# address by giving priority to top-down scheme only if the process
+# is not in legacy mode (compat task, unlimited stack size or
+# sysctl_legacy_va_layout).
+# Architecture that selects this option can provide its own version of:
+# - STACK_RND_MASK
+config ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT
+       bool
+       depends on MMU
+       select ARCH_HAS_ELF_RANDOMIZE
+
 config HAVE_COPY_THREAD_TLS
        bool
        help
@@ -881,27 +892,6 @@ config STRICT_MODULE_RWX
 config ARCH_HAS_PHYS_TO_DMA
        bool
 
-config ARCH_HAS_REFCOUNT
-       bool
-       help
-         An architecture selects this when it has implemented refcount_t
-         using open coded assembly primitives that provide an optimized
-         refcount_t implementation, possibly at the expense of some full
-         refcount state checks of CONFIG_REFCOUNT_FULL=y.
-
-         The refcount overflow check behavior, however, must be retained.
-         Catching overflows is the primary security concern for protecting
-         against bugs in reference counts.
-
-config REFCOUNT_FULL
-       bool "Perform full reference count validation at the expense of speed"
-       help
-         Enabling this switches the refcounting infrastructure from a fast
-         unchecked atomic_t implementation to a fully state checked
-         implementation, which can be (slightly) slower but provides protections
-         against various use-after-free conditions that can be used in
-         security flaw exploits.
-
 config HAVE_ARCH_COMPILER_H
        bool
        help
@@ -949,6 +939,14 @@ config RELR
 config ARCH_HAS_MEM_ENCRYPT
        bool
 
+config HAVE_SPARSE_SYSCALL_NR
+       bool
+       help
+          An architecture should select this if its syscall numbering is sparse
+         to save space. For example, MIPS architecture has a syscall array with
+         entries at 4000, 5000 and 6000 locations. This option turns on syscall
+         related optimizations for a given architecture.
+
 source "kernel/gcov/Kconfig"
 
 source "scripts/gcc-plugins/Kconfig"