]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - queue-4.4/powerpc-64-make-stf-barrier-ppc_book3s_64-specific.patch
4.4-stable patches
[thirdparty/kernel/stable-queue.git] / queue-4.4 / powerpc-64-make-stf-barrier-ppc_book3s_64-specific.patch
CommitLineData
4fa5b95e
GKH
1From foo@baz Mon 29 Apr 2019 11:38:37 AM CEST
2From: Michael Ellerman <mpe@ellerman.id.au>
3Date: Mon, 22 Apr 2019 00:20:19 +1000
4Subject: powerpc/64: Make stf barrier PPC_BOOK3S_64 specific.
5To: stable@vger.kernel.org, gregkh@linuxfoundation.org
6Cc: linuxppc-dev@ozlabs.org, diana.craciun@nxp.com, msuchanek@suse.de, npiggin@gmail.com, christophe.leroy@c-s.fr
7Message-ID: <20190421142037.21881-35-mpe@ellerman.id.au>
8
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@@ -177,6 +177,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@@ -322,3 +323,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 */