]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: Wire up cpu_show_spectre_v1()
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 27 Mar 2018 12:01:52 +0000 (23:01 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 27 Mar 2018 12:44:54 +0000 (23:44 +1100)
commitb768895e21b263570e9f6592dc3d4e81bdc183d8
treed4009bb632424b4fa754f32ae95cce96bd88a07a
parent31513c4c100cf34b7b516e64672d909e487ee600
powerpc/64s: Wire up cpu_show_spectre_v1()

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>
arch/powerpc/kernel/security.c