powerpc/64: Add INTERRUPT_SANITIZE_REGISTERS Kconfig
[sfrench/cifs-2.6.git] / arch / powerpc / Kconfig
index fe2aa445b654e916eaf94b84486ffb828cd54c67..aec1431be06e329794d3c5e748fb9cb054feec51 100644 (file)
@@ -534,6 +534,15 @@ config HOTPLUG_CPU
 
          Say N if you are unsure.
 
+config INTERRUPT_SANITIZE_REGISTERS
+       bool "Clear gprs on interrupt arrival"
+       depends on PPC64 && ARCH_HAS_SYSCALL_WRAPPER
+       default PPC_BOOK3E_64
+       help
+         Reduce the influence of user register state on interrupt handlers and
+         syscalls through clearing user state from registers before handling
+         the exception.
+
 config PPC_QUEUED_SPINLOCKS
        bool "Queued spinlocks" if EXPERT
        depends on SMP