mirror of
https://github.com/Evolution-X-Devices/kernel_google_b1c1
synced 2026-02-01 14:34:16 +00:00
powerpc/fsl: Enable runtime patching if nospectre_v2 boot arg is used
commit 3bc8ea8603ae4c1e09aca8de229ad38b8091fcb3 upstream. If the user choses not to use the mitigations, replace the code sequence with nops. Signed-off-by: Diana Craciun <diana.craciun@nxp.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5b0392afd3
commit
487bea70ea
@@ -919,6 +919,7 @@ void __init setup_arch(char **cmdline_p)
|
||||
ppc_md.setup_arch();
|
||||
|
||||
setup_barrier_nospec();
|
||||
setup_spectre_v2();
|
||||
|
||||
paging_init();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user