kasan: add test for vmalloc
[linux-2.6-block.git] / arch / Kconfig
index 5f8a5d84dbbe9257f0a2a33c3ed81687a4eb0aad..17c42bc363211c04dfb285bb8d2644253ba78311 100644 (file)
@@ -892,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
@@ -960,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"