linux-stable/arch/powerpc
Nicholas Piggin 08685be776 powerpc/64s: fix scv entry fallback flush vs interrupt
The L1D flush fallback functions are not recoverable vs interrupts,
yet the scv entry flush runs with MSR[EE]=1. This can result in a
timer (soft-NMI) or MCE or SRESET interrupt hitting here and overwriting
the EXRFI save area, which ends up corrupting userspace registers for
scv return.

Fix this by disabling RI and EE for the scv entry fallback flush.

Fixes: f79643787e ("powerpc/64s: flush L1D on kernel entry")
Cc: stable@vger.kernel.org # 5.9+ which also have flush L1D patch backport
Reported-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210111062408.287092-1-npiggin@gmail.com
2021-01-20 15:58:19 +11:00
..
boot powerpc/boot: Fix build of dts/fsl 2020-12-21 22:06:09 +11:00
configs powerpc updates for 5.11 2020-12-17 13:34:25 -08:00
crypto
include powerpc/64s: fix scv entry fallback flush vs interrupt 2021-01-20 15:58:19 +11:00
kernel powerpc/64s: fix scv entry fallback flush vs interrupt 2021-01-20 15:58:19 +11:00
kexec
kvm powerpc updates for 5.11 2020-12-17 13:34:25 -08:00
lib powerpc/64s: fix scv entry fallback flush vs interrupt 2021-01-20 15:58:19 +11:00
math-emu
mm powerpc updates for 5.11 2020-12-17 13:34:25 -08:00
net
oprofile
perf powerpc updates for 5.11 2020-12-17 13:34:25 -08:00
platforms dma-mapping updates for 5.11: 2020-12-22 13:19:43 -08:00
purgatory
sysdev powerpc/xive: Improve error reporting of OPAL calls 2020-12-11 09:53:11 +11:00
tools
xmon powerpc/xmon: Change printk() to pr_cont() 2020-12-04 21:56:30 +11:00
Kbuild
Kconfig dma-mapping updates for 5.11: 2020-12-22 13:19:43 -08:00
Kconfig.debug
Makefile powerpc updates for 5.11 2020-12-17 13:34:25 -08:00
Makefile.postlink