]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/security/book3s64: Report L1TF status in sysfs
authorAnthony Steinhauser <asteinhauser@google.com>
Tue, 29 Oct 2019 19:07:59 +0000 (12:07 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 5 Nov 2019 01:20:06 +0000 (12:20 +1100)
commitdc7fc820615abc32131b3d899324ab2e8d31c56a
tree752053052a125fdd4fb527ebb879aa4fc5db257f
parentb268b2c5ad13051dc6467ce153431cd04551f0a3
powerpc/security/book3s64: Report L1TF status in sysfs

Some PowerPC CPUs are vulnerable to L1TF to the same extent as to
Meltdown. It is also mitigated by flushing the L1D on privilege
transition.

Currently the sysfs gives a false negative on L1TF on CPUs that I
verified to be vulnerable, a Power9 Talos II Boston 004e 1202, PowerNV
T2P9D01.

Signed-off-by: Anthony Steinhauser <asteinhauser@google.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
[mpe: Just have cpu_show_l1tf() call cpu_show_meltdown() directly]
Link: https://lore.kernel.org/r/20191029190759.84821-1-asteinhauser@google.com
arch/powerpc/kernel/security.c