powerpc/security/book3s64: Report L1TF status in sysfs
authorAnthony Steinhauser <asteinhauser@google.com>
Tue, 29 Oct 2019 19:07:59 +0000 (12:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 Jan 2020 12:40:45 +0000 (13:40 +0100)
commitcb4bbe255ae95cfc554398d3cc42813610ddaded
treed8500322663511658fc9c8a672404a9466d7d289
parentf56519e9abe7a219055a1ee1d0523b57746311a2
powerpc/security/book3s64: Report L1TF status in sysfs

[ Upstream commit 8e6b6da91ac9b9ec5a925b6cb13f287a54bd547d ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/kernel/security.c