Skip to content

sysfs/cpu: Implement generic vulnerabilites directory

Thomas Gleixner lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 9 repliesIn review
  2. v12 patches 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sysfs/cpu: Add vulnerability folderDocumentation/ABI/testing/sysfs-devices-system-cpu drivers/base/Kconfig drivers/base/cpu.c +1 more+74 -07 replies
2/2x86/cpu: Implement CPU vulnerabilites sysfs functionsarch/x86/Kconfig arch/x86/kernel/cpu/bugs.c+30 -02 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchKonrad Rzeszutek WilkGreg Kroah-Hartman
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [patch V2 0/2] sysfs/cpu: Implement generic vulnerabilites directory

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

V1 -> V2: Add documentation and use sprintf

Thanks,

tglx