Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1892832ybh; Tue, 14 Jul 2020 09:59:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxr0dJNGw6QfTC7eMMM6nGNTyKKEFF2x9RU1PuzogklRcLvMYsVJKsq8+10/bxYKWk+K8Jy X-Received: by 2002:a17:906:924d:: with SMTP id c13mr5189533ejx.518.1594745969913; Tue, 14 Jul 2020 09:59:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594745969; cv=none; d=google.com; s=arc-20160816; b=0Cn9/CBp3ZWcWUJ6EC6kV+oafdaaDe2l2ANY38OK12rTVD3D0P/J7w7fxCAGrtLuA+ 4j++EQC1b4LdVw74LN+34DCWBAr1IBL4qb5ZIpDMAFpIAPDxFutXvhoprA8C3t93rk4I Ld3LRtKYmVeYDDEyNqWbkvNAcQs5uTYZCGLFQaC2MkjZyYk7hviw3SxPPfAMz+e5cdzp etkOOMi2MypaLhtuAwbBUbcE3LtR1ed/qLZ2+6BfyKvVpEOn5XdBk8zrHNOjWzUJpPwN 9Cbzk3mUm3H4bFTiCTvsDDiuvgaqqcfZs66tZv+dZuLdVD6wzROSNPMs2wCSjyty3LMP qXCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=eSZXXJhICHmfJsUPO4ZXL5UFX2Z45md7BXHPQUpwRrQ=; b=KNilHK0FRNh0tHzUOFdH7g0IrDhwu51F0Qa86X379VpF0H49AVnZ8Dy6FbPtuR8xLN LXNSeIF1pXoNuxx62XJo01ZXKrIh2ne/zZRrqntrMeP7QXEnWVocfcsR6me4NbptofVv mtoD2L3tGSQq/tizRlcW0FlH4BxgKkNRQ/mqCliUWsSmcPD5rQ9puxKU9ttd+U4hDEu5 JUE2fcGYehdkVEYVDf+Qv+sElyPzmx0eSAzcwNXUidQ0Fi31CgW5/7enB/FPCL/E8Dat kbWjRkNaETUvnWyghTTEj8PqWXVTccWe/GWMbjBzmP79ooQTB25LoLHcdACp8zgAAj+o RpfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=pGhuzzIU; 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=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id df15si10553092edb.366.2020.07.14.09.59.05; Tue, 14 Jul 2020 09:59:29 -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=@alien8.de header.s=dkim header.b=pGhuzzIU; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728454AbgGNQ4U (ORCPT + 99 others); Tue, 14 Jul 2020 12:56:20 -0400 Received: from mail.skyhub.de ([5.9.137.197]:39830 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726600AbgGNQ4T (ORCPT ); Tue, 14 Jul 2020 12:56:19 -0400 Received: from nazgul.tnic (77-85-108-148.ip.btc-net.bg [77.85.108.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 9D8AF1EC0316; Tue, 14 Jul 2020 18:56:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1594745777; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=eSZXXJhICHmfJsUPO4ZXL5UFX2Z45md7BXHPQUpwRrQ=; b=pGhuzzIUmbeeMwDdTz2V3jYnn383OWOOI2M1nIV782YvNDHdupPrCyfSuPCaW1W2BKN5RA J6baEJxyrDDE6wIsMgRRI1ZXx2LD97AxV62rma4Hm6rQr/oyn4/j4smliO9NhECk4F/pPr fHInmQA4BPMQ28+OWcZDhhXRfz0l2Vg= Date: Tue, 14 Jul 2020 18:56:21 +0200 From: Borislav Petkov To: Chris Down 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: <20200714165621.GA3622@nazgul.tnic> References: <20200615063837.GA14668@zn.tnic> <20200714121955.GA2080@chrisdown.name> <20200714154728.GA3101@nazgul.tnic> <20200714160448.GC2080@chrisdown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200714160448.GC2080@chrisdown.name> 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 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. :-) > 0: https://twitter.com/mjg59/status/1034132444201582596 As to the power issue, lemme CC some Intel folks I found in MAINTAINERS. Intel folks, pls check the link above and upthread: Why TF do people need to use some luserspace daemon which pokes at MSRs which the kernel writes to too, in order to bypass some apparently too conservative throttling, AFAIU? And why does this work on windoze reportedly? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette