X-Git-Url: http://git.samba.org/samba.git/?p=sfrench%2Fcifs-2.6.git;a=blobdiff_plain;f=arch%2FKconfig;h=1aafb4efbb51dfea8c5639f2bd68379c930825d4;hp=596f0e66e69f61797829da46b1e846ceffcc8642;hb=44ccba3f7b230af1bd7ebe173cbf5803df1df486;hpb=ad05e6ca7b5fcf15ff178da662035ec7718f938c diff --git a/arch/Kconfig b/arch/Kconfig index 596f0e66e69f..1aafb4efbb51 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -940,6 +940,18 @@ config STRICT_MODULE_RWX 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