From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33B43C31E40 for ; Thu, 15 Aug 2019 09:03:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 121AB218A6 for ; Thu, 15 Aug 2019 09:03:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730879AbfHOJDj (ORCPT ); Thu, 15 Aug 2019 05:03:39 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:39247 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728464AbfHOJDi (ORCPT ); Thu, 15 Aug 2019 05:03:38 -0400 Received: from [5.158.153.52] (helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hyBfT-000871-G3; Thu, 15 Aug 2019 11:03:35 +0200 Date: Thu, 15 Aug 2019 11:03:35 +0200 (CEST) From: Thomas Gleixner To: Kernel User cc: LKML , mhocko@suse.com, x86@kernel.org Subject: Re: /sys/devices/system/cpu/vulnerabilities/ doesn't show all known CPU vulnerabilities In-Reply-To: <20190814121154.12f488f7@localhost> Message-ID: References: <20190813232829.3a1962cc@localhost> <20190813212115.GO16770@zn.tnic> <20190814010041.098fe4be@localhost> <20190814070457.GA26456@zn.tnic> <20190814121154.12f488f7@localhost> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 14 Aug 2019, Kernel User wrote: > On Wed, 14 Aug 2019 09:04:57 +0200 Borislav Petkov wrote: > > > IMO, what you want does not belong in sysfs but in documentation. > > How would documentation (a fixed static text file) tell whether a > particular system is vulnerable or not? > > > I partially see your point that a table of sorts mapping all those CPU > > vulnerability names to (possible) mitigations is needed for users > > which would like to know whether they're covered, without having to > > run some scripts from github, > > Correct. > > > but sysfs just ain't the place. > > Then why is it currently used for some of the vulnerabilities? It's used to denote vulnerability classes and their mitigations: - Spectre v1 - Spectre v2 - Meltdown - SSB - L1TF - MDS We are not tracking subclasses and their individual CVEs. The sysfs interface is accurate (including SMT state) and the mapping to subclasses and CVEs can be done by user space tools if required. Thanks, tglx