Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1984692ybh; Tue, 14 Jul 2020 12:18:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwh0Qq3OQHcx1O1gS4pCy53MHe12BL4NdVA17mQEzLr3DxbU5J/c7Jd2OSgp2GjnQVP9Jix X-Received: by 2002:a17:906:97d7:: with SMTP id ef23mr6103519ejb.450.1594754331726; Tue, 14 Jul 2020 12:18:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594754331; cv=none; d=google.com; s=arc-20160816; b=pPv61C8rlxphk7bGwz7ut1zkvG77HUEOf0IY0058jZTov78sfAtgpnh/ybHf8bLrlZ aw5WYun/QitUrRWJDsjAjFsdzGDgXWcUwrydkDaXa5VcmJi1QGtSDfqrpMmovPTZr8nA As7fAj3D5kkwxj7G7sJcJyxp/6WBebOujYBSQJbQSu6xfVY1592uBRTdUdSMhRekd0Dr JFiSxF4+F8F1xxZ7DUCGQLMGOakT7H3hVN1X+Hf4jd0s9q/BtwWNwbG+gglLKRy97Bzo uOT6ZZbKZAZsvt0x2N5dD/41dTLSJg2Ub5irChOdfFFU96Qr7BKic9P9rCAY9ui8SGld sKtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=O+ls3I/N5zsUDO1aedELyDp7Kj09Qsqb8dgbqg/A980=; b=EwIWEnw8+DVr2vAqAZTuAKTT3TOoBf5W5ScsloO8Trs1dHY8pOWH9faeMQ/aJ/Ushr aK94sbbebhTdzDpfk68tb1VokN/+wOiKG0djEA0xYaRnM5nTJ2aW5KavjACTxGunBzix epI3khP0MDxyl2KzIjmv3A6xFW0UlSJlLj9ygbV+g7+yYfXwi11jEqh4Gvfgvq3jTk/Q QlZzzvnYyS15B7MaDMbc6JxYGbP9Sid/SlxsYNerWKfY5IkxAxFv3FqlmFd2zB7r1Jpz /SzHe6e++B5RBrIjpI+vNM+PXsDp5sypkYWkGlw0Ntzk9iwLl6v0toX8QB0oj5fpxTyJ UUxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=IzZThgcP; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c20si11470405edj.314.2020.07.14.12.18.26; Tue, 14 Jul 2020 12:18:51 -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=@google.com header.s=20161025 header.b=IzZThgcP; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729320AbgGNTSC (ORCPT + 99 others); Tue, 14 Jul 2020 15:18:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728370AbgGNTSC (ORCPT ); Tue, 14 Jul 2020 15:18:02 -0400 Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64622C061755 for ; Tue, 14 Jul 2020 12:18:02 -0700 (PDT) Received: by mail-io1-xd32.google.com with SMTP id e64so18516576iof.12 for ; Tue, 14 Jul 2020 12:18:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=O+ls3I/N5zsUDO1aedELyDp7Kj09Qsqb8dgbqg/A980=; b=IzZThgcPgwciiCyVEcQUJ/jfFCpEk/2MHNYLhGkXYrsI6T2S8YEvqn5hytvliX0W+a U7XZBozq1quYR/PnHj+En8JweGapYod2EjFhYop3iQeptqiKwVZaNeAE8n7jGZHJcvi3 i3JGBvvQYa93bVF4ZKKbvhP+oEPqsJPa/kDdn718wyLjxL5hwY8Cyc/ANYx83mLLq3Kt hahpKBGipauXvaLE91+i7Sfd6BSBkQbSqBonxcodbI5jBjAVj7m7zoOG8fvSd2fBd2Ig nVvOebWetUGEnnommtlkzG0peh1QODDmBQszhuzATE44PAl30vckla5GrFIcRciKPwUz Yb6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=O+ls3I/N5zsUDO1aedELyDp7Kj09Qsqb8dgbqg/A980=; b=bbJLMeZYe0UG2GkjyspiZ1YwDTHpTWxU1wSwfhw28LHCTN5mrNcFRGosOAF2j1DuOH tipOkaFvkX5gSgy/eIWE2E64dJ9+z7oKroj+7WmGfAsbssBF/InCJAA/fniy3oQVPvsr eqlTsCJ3lklvWGCrhd9ZrqpNkpv60Fn+Z6W+dOkH+aeHAtxUP+iuT9Wa96mTMsRJiWZo GZKfB1on49F8iKPqYc1t7C9ytZfKJBfuPIJ7LXtMKbOYWOPaFiuPvGGGjzdeY12RfBDh C85bsgfO1vUHeeEeHs4Ak9TVd9Vni+xq/Q1lzg5Dhr7BtjUP6rtW8ymPi6sJcpfm+e+y 3/vw== X-Gm-Message-State: AOAM530h19DKfeC1Bp5O4xasGYYID2zx+JBqB3cYA57hbr9rYVjk4YDx KP0bCOe26q3iBtOwBY16GJTI11Mt3f/G16rJzbglqQ== X-Received: by 2002:a6b:6508:: with SMTP id z8mr6459683iob.82.1594754281290; Tue, 14 Jul 2020 12:18:01 -0700 (PDT) MIME-Version: 1.0 References: <20200615063837.GA14668@zn.tnic> <20200714121955.GA2080@chrisdown.name> <20200714154728.GA3101@nazgul.tnic> <20200714160448.GC2080@chrisdown.name> In-Reply-To: <20200714160448.GC2080@chrisdown.name> From: Matthew Garrett Date: Tue, 14 Jul 2020 12:17:50 -0700 Message-ID: Subject: Re: [PATCH -v2.1] x86/msr: Filter MSR writes To: Chris Down Cc: Borislav Petkov , Linux Kernel Mailing List , sean.j.christopherson@intel.com, tony.luck@intel.com, Linus Torvalds , "the arch/x86 maintainers" , kernel-team@fb.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 14, 2020 at 9:04 AM Chris Down wrote: > 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. Agreed - we should now offer all the necessary interfaces to avoid userspace having to hit MSRs directly for thermal management, but that wasn't always the case, and as a result there's tooling that still behaves this way.