Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp167644pxb; Wed, 18 Nov 2020 01:01:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJzn0RzzTrZXj4WSCqeZC+EqdQaS/W8fDOnjf+yvvBPHw0n1iGKBET8lVKaa25rhoVRyH/9U X-Received: by 2002:a17:906:1253:: with SMTP id u19mr22545700eja.288.1605690073080; Wed, 18 Nov 2020 01:01:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605690073; cv=none; d=google.com; s=arc-20160816; b=iN95hLWrwviC4bRU6sSZalNN1TivH9hjI39q9TVDZ/8phywMb0rpasfDZeDdoDYcQI CyyiLIPvnLcRST3Nhlmxzwx02j26QD8kOxwXH9IR+JQ2+zCwlY3EhlLgng1Yuo8DVzcV H2JdeF6fByddy41eFd9kX/MMqGWYn5DJ1JDH1NA/N78WtArnRK6XHSR43737wwAzNvFI KrronwXjMVq0snSk+lza1a6itbGDy6x35GDKYvdICp/HWoXwz5e5SiqF1ZVwPvTgA23K u1OeiQf6onRXstnZj824R4Bi3t8/xy4wbc6bLIUCMCVl4T12U6veXCjakVENcz9SkZPN 4m7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date; bh=z5xozysZxNvNibFTmUtYWD+AQvBOCQkWZZmTKg+mYeg=; b=WXy7+WNukHZ5RxwEmi29R41IzaV4hRQISCSzA060M4UMbvLIXB7EK4C2i96hUQjqx6 thfYvcyOzmQfQTPutGzX2/piH/mdAOIOhSgPB6M4rLMQ2JIF8o9kD4Vk3aduG+oVcItu nMYzv1BZvCvQIHvCXoXdjKM5KAE0iI9hoReJ2blLUYmYapsY0AFn1IlBnX/B+q8seH1/ 9QKWU4j0QPEUNiZIORRB5ZbuPKf1a5IPvoxgnmj/x9LP66htturpIBlShwwxsAjMiqbg 03SfQZjBeh1OETvSvk8IrXJSS3VFKvTiSgND6kUVlnve8aoIFW+UawGy4ltF39BKul/L 6NdA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w5si14611059edt.245.2020.11.18.01.00.49; Wed, 18 Nov 2020 01:01:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727239AbgKRI6x (ORCPT + 99 others); Wed, 18 Nov 2020 03:58:53 -0500 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:33679 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725772AbgKRI6x (ORCPT ); Wed, 18 Nov 2020 03:58:53 -0500 X-Greylist: delayed 43111 seconds by postgrey-1.27 at vger.kernel.org; Wed, 18 Nov 2020 03:58:52 EST X-Originating-IP: 62.210.143.248 Received: from weirdfishes.localdomain (62-210-143-248.rev.poneytelecom.eu [62.210.143.248]) (Authenticated sender: m@thi.eu.com) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id B6C241C0009; Wed, 18 Nov 2020 08:58:49 +0000 (UTC) Received: by weirdfishes.localdomain (Postfix, from userid 1000) id 5DF1372214948; Wed, 18 Nov 2020 09:58:49 +0100 (CET) Date: Wed, 18 Nov 2020 09:58:49 +0100 From: Mathieu Chouquet-Stringer To: Borislav Petkov Cc: Matthew Garrett , Chris Down , Linux Kernel Mailing List , sean.j.christopherson@intel.com, tony.luck@intel.com, Linus Torvalds , the arch/x86 maintainers , kernel-team@fb.com Subject: Re: [PATCH -v2.1] x86/msr: Filter MSR writes Message-ID: <20201118085849.GA189743@weirdfishes> Mail-Followup-To: Mathieu Chouquet-Stringer , Borislav Petkov , Matthew Garrett , Chris Down , Linux Kernel Mailing List , sean.j.christopherson@intel.com, tony.luck@intel.com, Linus Torvalds , the arch/x86 maintainers , kernel-team@fb.com References: <20200615063837.GA14668@zn.tnic> <20200714121955.GA2080@chrisdown.name> <20200714154728.GA3101@nazgul.tnic> <20200714160448.GC2080@chrisdown.name> <20201117210018.GA4247@weirdfishes> <20201117212016.GQ5719@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201117212016.GQ5719@zn.tnic> X-Face: %JOeya=Dg!}[/#Go&*&cQ+)){p1c8}u\Fg2Q3&)kothIq|JnWoVzJtCFo~4X X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 17, 2020 at 10:20:16PM +0100, Borislav Petkov wrote: > Not for long: > > https://git.kernel.org/tip/fe0a5788624c8b8f113a35bbe4636e37f9321241 That's fantastic. > Because if you poke at random MSRs and you manage to "configure" your > CPU to run "out of spec" - this is what the taint flag is called: > TAINT_CPU_OUT_OF_SPEC - then this is exactly the case you've created: a > CPU executing outside of specifications. Don't get me wrong, it makes total sense to do that, it's just the original reason of !SMP-capable isn't so clear while CPU out of spec is. -- Mathieu Chouquet-Stringer me@mathieu.digital The sun itself sees not till heaven clears. -- William Shakespeare --