Re: [patch V2 1/2] sysfs/cpu: Add vulnerability folder

From: Konrad Rzeszutek Wilk
Date: Sun Jan 07 2018 - 22:51:46 EST


On Mon, Jan 08, 2018 at 01:22:04AM +0300, Alexey Dobriyan wrote:
> Thomas Gleixner wrote:
> > Create /sys/devices/system/cpu/vulnerabilities folder and files for
> > meltdown, spectre_v1 and spectre_v2.
>
> It is called "grep -e '^bugs' /proc/cpuinfo".
>
> kpti is deduceable from .config and /proc/cmdline .
> If people don't know what .config they are running, god bless them.

It is not just for meltdown (kpti). You also have retpoline and IBRS
which is for spectre.