Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3405157ybb; Mon, 6 Apr 2020 08:19:43 -0700 (PDT) X-Google-Smtp-Source: APiQypK/3+c9E3i2494JAOnxMD3C4KkV4vs/iU3yu1hcB5WjH/iZ4uyDybeoXVMitpgmXTcWo7C0 X-Received: by 2002:a05:6808:56:: with SMTP id v22mr12499925oic.116.1586186383861; Mon, 06 Apr 2020 08:19:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586186383; cv=none; d=google.com; s=arc-20160816; b=iaNExNNJQ3e94Yx/3LW4Ho2q2xmmsrL99RPUvMSueorBtK9WkvY40Sf0iOVVzK9xJs /CWOYeRfAwLoPwOhyiVb3z/NNftuex1H4cJ0q352rPCpPa/HhQndHM8XCK+yy4Qs0Ujs bQqI2gcphI1vOQ6YKA3ipjT7HPTI0grpe7A5loxLwDFrLg1GgqCOUQ0Sfg9xua+uOk9T +peGiRepNySjucnBzuwxpezM9SVH7BSWGeY053w8hJ3XIBpRes7fMB9+iimhWwmYwRV7 aBFxJtNDUGyzL/xFHaxBcdtPwrQrmjRjJ+1xGl8L34R+bYZkD56PKaCmRD/itsZHlU7r /KjQ== 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=7MKSuB7C2ecyeclexzHOiYfjTnKEm6Ap6DGoMSchwIE=; b=G+WQBdxOJ+WJCtoniImhjGCKtG7UEvfJK1gyrnVZirUKHZcUfkcY2ABbgdS1CeSQMv ar+yquB0gKlVgQvrwfWev/MXQZAyvaToXfzHcW/MAixmI6XFFeVdoEWQ2Jj991L3JSAv sx/5CaNphQTdUplT60TTau5EQ/Me8flJOAOor2qdS5zsNYuu+C6Jnstl5v3PVXjpS3wq UFDtr1b5dqgM/R9sqfwuOpjt3zI0ZnaaDlriirNSP2sFaBUOzGM7yqRqWqe3UJ6Az3eA eHSsQCftiX8EA6VE7d7bH9/bedImm6REYZbyeqLVnd9yznoz7w6CwmHnT/0EjlIewlCn vDYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=J27Ee6mq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z78si7536203oia.200.2020.04.06.08.19.31; Mon, 06 Apr 2020 08:19:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=J27Ee6mq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728935AbgDFPSx (ORCPT + 99 others); Mon, 6 Apr 2020 11:18:53 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:42324 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728800AbgDFPSw (ORCPT ); Mon, 6 Apr 2020 11:18:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=7MKSuB7C2ecyeclexzHOiYfjTnKEm6Ap6DGoMSchwIE=; b=J27Ee6mqiT3vYTPrWksmkUr0MC aQ4rJegTUFq9UtuIIbuOCVFFb9sY3UqUqLEwleIhYvUhXfMFFfEHI6erszMKLa163l6QgUuL7TP3M TZUB75GeW54SizGh0kZPsAKviLQSY0YaT+aAlDaCHGbBp++iBCDakOn2KMJKWm7S7eGlI9bAiLXrn q3ndSeha0TI9fGNYkmTJMyyvqVqPut7CvujN9buQm8C9XUPyHz0tWyfjne7gA8LPhapparu1uz/Om +fjnvZrhd5QXbrprfCsP0Cn5AooLEVS8rYJk1HM3ssF4oTEVy+9s+6BtnFiUefU6mEGJfzLloEHvO y5aGspaQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jLTWR-0006cE-74; Mon, 06 Apr 2020 15:18:47 +0000 Date: Mon, 6 Apr 2020 08:18:47 -0700 From: Christoph Hellwig To: Peter Zijlstra Cc: Christoph Hellwig , Thomas Gleixner , LKML , x86@kernel.org, "Kenneth R. Crudup" , Paolo Bonzini , Jessica Yu , Fenghua Yu , Xiaoyao Li , Nadav Amit , Thomas Hellstrom , Sean Christopherson , Tony Luck , Steven Rostedt Subject: Re: [patch 1/2] x86,module: Detect VMX modules and disable Split-Lock-Detect Message-ID: <20200406151847.GA25147@infradead.org> References: <20200402123258.895628824@linutronix.de> <20200402124205.242674296@linutronix.de> <20200406122343.GA10683@infradead.org> <20200406144020.GP20730@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200406144020.GP20730@hirez.programming.kicks-ass.net> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 06, 2020 at 04:40:20PM +0200, Peter Zijlstra wrote: > It is absolutely bonkers, but at the same time we can extend this > infrastructure to scan for dubious code patterns we don't want to > support. Like for instance direct manipulation of CR4. But that is not what this code does - it disables split lock detection. If it failed to load the module the whole thing would make a little more sense.