[patch 0/2] sysfs/cpu: Implement generic vulnerabilites directory
From: Thomas Gleixner
Date: Sun Jan 07 2018 - 16:08:00 EST
The meltdown/spectre vulnerabilities affect several architectures and
people are asking for a common way to figure out whether a system is
affected or not.
Create
/sys/devices/system/cpu/vulnerabilites
and the files
/sys/devices/system/cpu/vulnerabilites/meltdown
/sys/devices/system/cpu/vulnerabilites/spectre_v1
/sys/devices/system/cpu/vulnerabilites/spectre_v2
Add the x86 implementation which shows:
meltdown Mitigation: PTI
spectre_v1 Vulnerable
sepctre_v1 Vulnerable
On an AMD CPU the output of meltdown is: Not affected.
If PTI is turned off and the CPU is affected of meltdown the output
becomes: Vulnerable
That series applies on top of
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/pti
Thanks,
tglx