Merge tag 'gcc-plugins-v4.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / arch / Kconfig
index 596f0e66e69f61797829da46b1e846ceffcc8642..1aafb4efbb51dfea8c5639f2bd68379c930825d4 100644 (file)
@@ -940,6 +940,18 @@ config STRICT_MODULE_RWX
 config ARCH_WANT_RELAX_ORDER
        bool
 
 config ARCH_WANT_RELAX_ORDER
        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
 config REFCOUNT_FULL
        bool "Perform full reference count validation at the expense of speed"
        help