From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 21 Feb 2019 12:47:57 -0000 Received: from mx2.suse.de ([195.135.220.15] helo=mx1.suse.de) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1gwnlb-0002wg-CF for speck@linutronix.de; Thu, 21 Feb 2019 13:47:56 +0100 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 45C4EAE12 for ; Thu, 21 Feb 2019 12:47:49 +0000 (UTC) Date: Thu, 21 Feb 2019 13:47:46 +0100 From: Borislav Petkov Subject: [MODERATED] Re: [patch V2 07/10] MDS basics+ 7 Message-ID: <20190221124746.GF13125@zn.tnic> References: <20190220150753.665964899@linutronix.de> <20190220151400.593713647@linutronix.de> MIME-Version: 1.0 In-Reply-To: <20190220151400.593713647@linutronix.de> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable To: speck@linutronix.de List-ID: On Wed, Feb 20, 2019 at 04:08:00PM +0100, speck for Thomas Gleixner wrote: > Subject: [patch V2 07/10] x86/speculation/mds: Add sysfs reporting for MDS > From: Thomas Gleixner >=20 > Add the sysfs reporting file for MDS. It exposes the vulnerability and > mitigation state similar to the existing files for the other speculative > hardware vulnerabilities. >=20 > Signed-off-by: Thomas Gleixner > --- > Documentation/ABI/testing/sysfs-devices-system-cpu | 1 + > arch/x86/kernel/cpu/bugs.c | 20 ++++++++++++++++= ++++ > drivers/base/cpu.c | 6 ++++-- > include/linux/cpu.h | 2 ++ > 4 files changed, 27 insertions(+), 2 deletions(-) ... > --- a/drivers/base/cpu.c > +++ b/drivers/base/cpu.c > @@ -540,8 +540,8 @@ ssize_t __weak cpu_show_spec_store_bypas > return sprintf(buf, "Not affected\n"); > } > =20 > -ssize_t __weak cpu_show_l1tf(struct device *dev, > - struct device_attribute *attr, char *buf) > +ssize_t __weak cpu_show_mds(struct device *dev, > + struct device_attribute *attr, char *buf) Didn't you mean to copy cpu_show_l1tf() here and rename it instead of only renaming it? --=20 Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imend=C3=B6rffer, Jane Smithard, Graham Norton, HR= B 21284 (AG N=C3=BCrnberg) --=20