提交 7cd882df 编写于 作者: R Rohan McLure 提交者: Michael Ellerman

powerpc/64: Sanitise user registers on interrupt in pseries, POWERNV

Cause pseries and POWERNV platforms to default to zeroising all potentially
user-defined registers when entering the kernel by means of any interrupt
source, reducing user-influence of the kernel and the likelihood or
producing speculation gadgets.
Acked-by: NNicholas Piggin <npiggin@gmail.com>
Signed-off-by: NRohan McLure <rmclure@linux.ibm.com>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221201071019.1953023-7-rmclure@linux.ibm.com
上级 efe1691a
...@@ -537,7 +537,7 @@ config HOTPLUG_CPU ...@@ -537,7 +537,7 @@ config HOTPLUG_CPU
config INTERRUPT_SANITIZE_REGISTERS config INTERRUPT_SANITIZE_REGISTERS
bool "Clear gprs on interrupt arrival" bool "Clear gprs on interrupt arrival"
depends on PPC64 && ARCH_HAS_SYSCALL_WRAPPER depends on PPC64 && ARCH_HAS_SYSCALL_WRAPPER
default PPC_BOOK3E_64 default PPC_BOOK3E_64 || PPC_PSERIES || PPC_POWERNV
help help
Reduce the influence of user register state on interrupt handlers and Reduce the influence of user register state on interrupt handlers and
syscalls through clearing user state from registers before handling syscalls through clearing user state from registers before handling
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册