]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - queue-4.14/powerpc-64-make-stf-barrier-ppc_book3s_64-specific.patch
Linux 4.9.167
[thirdparty/kernel/stable-queue.git] / queue-4.14 / powerpc-64-make-stf-barrier-ppc_book3s_64-specific.patch
CommitLineData
261fc112
GKH
1From foo@baz Fri Mar 29 15:53:50 CET 2019
2From: Michael Ellerman <mpe@ellerman.id.au>
3Date: Fri, 29 Mar 2019 22:25:57 +1100
6f859e40 4Subject: powerpc/64: Make stf barrier PPC_BOOK3S_64 specific.
261fc112
GKH
5To: stable@vger.kernel.org, gregkh@linuxfoundation.org
6Cc: linuxppc-dev@ozlabs.org, diana.craciun@nxp.com, msuchanek@suse.de, christophe.leroy@c-s.fr
7Message-ID: <20190329112620.14489-10-mpe@ellerman.id.au>
8
261fc112
GKH
9From: Diana Craciun <diana.craciun@nxp.com>
10
11commit 6453b532f2c8856a80381e6b9a1f5ea2f12294df upstream.
12
13NXP Book3E platforms are not vulnerable to speculative store
14bypass, so make the mitigations PPC_BOOK3S_64 specific.
15
16Signed-off-by: Diana Craciun <diana.craciun@nxp.com>
17Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
18Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19---
20 arch/powerpc/kernel/security.c | 2 ++
21 1 file changed, 2 insertions(+)
22
23--- a/arch/powerpc/kernel/security.c
24+++ b/arch/powerpc/kernel/security.c
25@@ -176,6 +176,7 @@ ssize_t cpu_show_spectre_v2(struct devic
26 return s.len;
27 }
28
29+#ifdef CONFIG_PPC_BOOK3S_64
30 /*
31 * Store-forwarding barrier support.
32 */
33@@ -323,3 +324,4 @@ static __init int stf_barrier_debugfs_in
34 }
35 device_initcall(stf_barrier_debugfs_init);
36 #endif /* CONFIG_DEBUG_FS */
37+#endif /* CONFIG_PPC_BOOK3S_64 */