Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1897770ybh; Tue, 14 Jul 2020 10:06:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziQCshpe55/SLdapN61cb/J4IUZW/FBjZZooxqtho6OYqskj5jq+AAKEEzyC1ILXXrAawI X-Received: by 2002:a17:906:29d8:: with SMTP id y24mr5358533eje.212.1594746365783; Tue, 14 Jul 2020 10:06:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594746365; cv=none; d=google.com; s=arc-20160816; b=t6oNOcnL8KQwCL9TiXeIGHpXI54UefFYZFCOixHt2u49hObNNE/pPm33eGbaTy/Kpz OTNZDE7Wt6D0vzi0rHHe93WsfItJjkO9L7GpHc5b35JXXE137nAMGwgEDpKm4tZ14fj0 sndD2lNKWEbO3Mjarz9+CJJ3qQYrwjmngPCKd9L2w7GVrZa1e3gC71VzmMpU2sRGjrz8 gGnK5rgEkqoo7Rp6N9qrF3w9/e4euwTy5AnwKlqm1u171DyYcsHcgrfuva4drZNd8ZeA aKkxf28IuvtS5H3y8Kpbgnb96cgtbe6NJRxQVBmC2bKmkE4gQoB8rp3qi1/3LlErkCxv eMOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KFocyH23qRUfHuNAbjxsTyMPH4beeiu9XE4QFHWyAsU=; b=X2Z34N5Khy5Z0YXhx868U4n0JC8StnzUj9jd+/sKIKhgF4Hfc1b21m0zfSNDsJKPjS tFB5WOQgn7EAVjM0SikYmK+cU5KzIBBYsyrr7HL1dUZI1CPB/ZGAraDVuiAv+fjBIN+3 jlFDyuZiBOZRDBY7UdTmBBdNKkeYxL4jnPiEsdpq0IV0ARzhaovW0NqrOPXPmNJzxUm9 NAAtVjZmUJyA37mM/r9hlLjinF94POSbXwjNjaC1PizYbQVznYzJMC1V44JO8CJ56L4O Hy0Lwz+S5MwsDiiCPieSnSrrI8MM6jPWllyShltvoVVfd6+JQ60ioy0sxQ2tIkmDaUhP uVqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=UEFCCb05; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e22si11480152ejb.66.2020.07.14.10.05.27; Tue, 14 Jul 2020 10:06:05 -0700 (PDT) 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; dkim=pass header.i=@chrisdown.name header.s=google header.b=UEFCCb05; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728732AbgGNREH (ORCPT + 99 others); Tue, 14 Jul 2020 13:04:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727028AbgGNREH (ORCPT ); Tue, 14 Jul 2020 13:04:07 -0400 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FD6EC061755 for ; Tue, 14 Jul 2020 10:04:07 -0700 (PDT) Received: by mail-ed1-x542.google.com with SMTP id a1so12587343edt.10 for ; Tue, 14 Jul 2020 10:04:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=KFocyH23qRUfHuNAbjxsTyMPH4beeiu9XE4QFHWyAsU=; b=UEFCCb05ivGRMSxff1MIVrrOWKYkYKnmDOjaxeD/gc6NeFfjIUhnUWe7BFpLf8DUiN c3KaXDoQohgs7Ku/boXdZjFk8UheQeecWydhFFfDztnkZ0qnVXRowE/tdm7pgD/EWFtQ 7Htzyv5uQZ9wm+kPhm/rSAJL/e7FB+YIMHAuU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=KFocyH23qRUfHuNAbjxsTyMPH4beeiu9XE4QFHWyAsU=; b=ULOmVBi+uEB9OcfT6+3zWARbY1iFebk2D265elBLcWSP51xcRnwsCazJjwGiCh8YAV XehcKXtwuO2ntFdf25NG5adzrhrxlXp8GoO30LqbpfaPXGQpB67ucxRCvTr7lDbqT1Pl 0OhNjcM0kIHFTQbd1JTZthaUWWRnlWfWoSTV6NwHr/5KxMjlCMkus5TCiH9R/+4BQNFf Qpk6PuEPG7jyTNe7aBTAqwyoKkGSUEgVywkE6JKj8VrKAb933ycAeJPGUEQiXiSnthjZ 2BYVl528BLmcNPed+rTGf5znoTNGPlZEW0V0eVhZq9zmcUT4E0AhiOqyPM3yi37J9nVe PFww== X-Gm-Message-State: AOAM5309c30SceNIhJFs8JoAZE6+deSvOtrXQwuaF+kPnLt3FMib2U7x 8O8Swnk2c6nNaSKi+Z47KADuFg== X-Received: by 2002:a05:6402:3048:: with SMTP id bu8mr5617980edb.367.1594746245696; Tue, 14 Jul 2020 10:04:05 -0700 (PDT) Received: from localhost ([2620:10d:c093:400::5:6f85]) by smtp.gmail.com with ESMTPSA id y22sm15117932edl.84.2020.07.14.10.04.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2020 10:04:05 -0700 (PDT) Date: Tue, 14 Jul 2020 18:04:04 +0100 From: Chris Down To: Borislav Petkov Cc: linux-kernel@vger.kernel.org, sean.j.christopherson@intel.com, tony.luck@intel.com, torvalds@linux-foundation.org, x86@kernel.org, kernel-team@fb.com, Matthew Garrett , "Rafael J. Wysocki" , Len Brown , Srinivas Pandruvada , Jacob Pan Subject: Re: [PATCH -v2.1] x86/msr: Filter MSR writes Message-ID: <20200714170404.GE2080@chrisdown.name> References: <20200615063837.GA14668@zn.tnic> <20200714121955.GA2080@chrisdown.name> <20200714154728.GA3101@nazgul.tnic> <20200714160448.GC2080@chrisdown.name> <20200714165621.GA3622@nazgul.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200714165621.GA3622@nazgul.tnic> User-Agent: Mutt/1.14.6 (2020-07-11) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Borislav Petkov writes: >On Tue, Jul 14, 2020 at 05:04:48PM +0100, Chris Down wrote: >> Since the issue involves DPTF which is only supported via binary blobs, I >> can't say for certain what the issue is. As I understand it, when the >> throttling behaviour isn't explicitly configured by the OS kernel, the >> default policy is extremely overeager. Matthew also had a look at it[0], but >> I don't know if anything eventually happened there. I've cc'ed him. >> >> Either way, again, this isn't really the point. :-) The point is that there >> _are_ currently widespread cases involving poking MSRs from userspace, >> however sacrilegious or ugly (which I agree with!), and while people should >> be told about that, it's excessive to have the potential to take up 80% of >> kmsg in the default configuration. It doesn't take thousands of messages to >> get the message across, that's what a custom printk ratelimit is for. > >Ok, feel free to suggest a fix, better yet send a patch. Otherwise, >you'd have to wait for my vacation to end first. :-) Sure thing, I'll send a patch tomorrow, then. :-)