Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3408774ybb; Mon, 6 Apr 2020 08:23:40 -0700 (PDT) X-Google-Smtp-Source: APiQypIQ9shgJjFzgQRRyqx0gym5Jy8KVnnrBlOeChrN40c6gKf3NRxpFkHoIQjbIZUU4uLg6wUi X-Received: by 2002:aca:f084:: with SMTP id o126mr13676074oih.81.1586186620749; Mon, 06 Apr 2020 08:23:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586186620; cv=none; d=google.com; s=arc-20160816; b=gLNtPs4Ee5KXKK/IczeEbLYzgoSHUcnrdGNo+4tXGkdZpw/ZZZaS8hzCKe+z9eu5lz 21xpjG4zOUVubykbanhmMEDJ93klKpQg9RZH6WvcZ/Hsr5hhaanAbybnCEyAMuHRAx3+ GbvFmIwEhQTaWXna6ZvJY9EMHx5c8eld30CtAiVDCyZ1xnccA8M1QW09xb/I7+BhzS1L FMLtnEi/FORvq1iX6ssdo+HFbgM4qL0JCJoZDQuilUaT7XIS+UlGa7YpeRBIdFCBF/5y Dbo+CNUpzwClKVHQEs5G8PeYabYQh13PWphJkIBH1yq+jNBASTuxs64oAnuDuIqTcI3j 7DGA== 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=hSSA57/kq2jGLv7cKGf5V/mcMd9DLKO5kjFvYDFqo0E=; b=VbqR9SBzCZwFNasgKueH1z89zXWd5sLLTcsMpO2jTCe89XCe3Ao+cvbegKPlAEMzjK pQBVx1E6EbcYQQ0UcOq45qiS2L9/IKxisGUps/QK7MVJ8t/1WUrSJAK/A6pUgoXP2Rfl 3eirEgEU6NugtKbQDL/6tYqGz6oEdIAnTt6XwQLqQeEGhuJgnk82GZ8D2oCnKGwq6xcA KAVagRpXcTbLWnsFIwSrXW60My6XqPuf/pCgpy6IzkWa3X2JEIy2+Mqul3kdy24aMzqg jTWI4tpNZqu/8LwiVe/BvOh/J2006xnRG+UDTInP+E+YTZfOwVm1bv+Ov2VgQB8azdrn 1Lhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=GBsYL8Q3; 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 i5si7855979otp.103.2020.04.06.08.23.20; Mon, 06 Apr 2020 08:23:40 -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=merlin.20170209 header.b=GBsYL8Q3; 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 S1728885AbgDFPWr (ORCPT + 99 others); Mon, 6 Apr 2020 11:22:47 -0400 Received: from merlin.infradead.org ([205.233.59.134]:37652 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728752AbgDFPWr (ORCPT ); Mon, 6 Apr 2020 11:22:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=hSSA57/kq2jGLv7cKGf5V/mcMd9DLKO5kjFvYDFqo0E=; b=GBsYL8Q3jsrRhCyXWLh4rRvCGz UgvQ83PgquW4rpUQ0tLiGrlfpUWBgkN9e86OyqWxOM5w6u8hbJCvVtbty3Od/UzVKlG0d5fRbIoN2 nSaqD4BObf2OlCPjZoRogX4CYO9jc8l5RYjltMImH8+IaWvJtaio8h5s+IjHeljGaT0BJQ5zlhuj8 zBvYp8aUYLzg8u+OV+9+Aj9oauH8MYt89ZVgNcWbGoBhbckX2wDxywMF03+qfXm4PGDMZI9QcxyO/ zLHl3Om0LK6QcYT9+wiCNN0jjp65vfwDtPM/qOU3S/Q77LTOv3TcEgHray/je7NOfmUtN11vG/vq1 ovFzKVIA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jLTa6-0007T4-Un; Mon, 06 Apr 2020 15:22:35 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 268683025C3; Mon, 6 Apr 2020 17:22:31 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 1A1392BAC76FF; Mon, 6 Apr 2020 17:22:31 +0200 (CEST) Date: Mon, 6 Apr 2020 17:22:31 +0200 From: Peter Zijlstra To: Christoph Hellwig Cc: 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: <20200406152231.GQ20730@hirez.programming.kicks-ass.net> References: <20200402123258.895628824@linutronix.de> <20200402124205.242674296@linutronix.de> <20200406122343.GA10683@infradead.org> <20200406144020.GP20730@hirez.programming.kicks-ass.net> <20200406151847.GA25147@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200406151847.GA25147@infradead.org> 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 08:18:47AM -0700, Christoph Hellwig wrote: > 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. If this lives, it'll be to just to fail module loading. IIRC the same was suggested elsewhere in the thread.