powerpc/64s: Wire up cpu_show_spectre_v1()
authorMichael Ellerman <mpe@ellerman.id.au>
Sat, 26 May 2018 04:27:43 +0000 (14:27 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:51:53 +0000 (07:51 +0200)
commit6e77feadbfbc9fa5ca760c1df88492cadbf1fb5c
tree9855bab60053faea23c35bc02f8f7f40a2bdc6e1
parent7a62b0f64804b1987225377c2944a86f9db63f37
powerpc/64s: Wire up cpu_show_spectre_v1()

commit 56986016cb8cd9050e601831fe89f332b4e3c46e upstream.

Add a definition for cpu_show_spectre_v1() to override the generic
version. Currently this just prints "Not affected" or "Vulnerable"
based on the firmware flag.

Although the kernel does have array_index_nospec() in a few places, we
haven't yet audited all the powerpc code to see where it's necessary,
so for now we don't list that as a mitigation.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kernel/security.c