Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3584682ybb; Mon, 6 Apr 2020 11:28:47 -0700 (PDT) X-Google-Smtp-Source: APiQypIg2QFWOOVDGtR8BZ+NFZt/o3SfuaB/jFe0b7mmAc/TO82UNWAwoxbifIxM0JxlbGwt8Hsh X-Received: by 2002:a9d:2dc1:: with SMTP id g59mr365168otb.90.1586197726985; Mon, 06 Apr 2020 11:28:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586197726; cv=none; d=google.com; s=arc-20160816; b=fkeof6lB9XMk62P/LEDoNbYTyO50u+kRfwGvAuL0IHpl4QvY+uF6mOmIk104sOyIXI SpofH3wiPt2ihmOgeP80pJ4GQ2aEZX09+7OUB9IVz1qweas9Ctb40AMrd2GeJORaj3O2 gL/5Tb/DXAoex84NltxJMxJGkJUp0eArvHMFsIFeh0Kw8BUwcxUYHiaJAmDEubG40m/q LrwdYEGVsyMeafL+abV49vyM31vLdjAD41wVz1kKs4zLj4B6Mnhnh93AX+kVdM2I+LOd TXLcrcfKcNrfnc3p/jNRild11IgW3pAKVfYYQ9sMy8HEv+QzXHm6HCZeN9hL1OdVOu26 nVMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=o2kuQOr43mycF97mlLFrPuQ63BZwR/CMX5nDUJEqjVo=; b=aPWODK3lzQh8hgWNx+UxGg0Yn2afQiihgNAJ9E513HCsZcd8pspAAKexsNz6S1ZbMz 7pI+3KWXjsZdMOPrXQHWe6FFmTEK/C1jBdbZ781x2gHICPirrUyB6eMIsfabUpHtp24O +esEqG7PY6bASDdLgTXxkMJsMYAkErUwzIhVbJR34jtIDabVDqookOWbXCl/wRxpu5V8 nnqLlfrWM5CTRu6btCwHql0ejzGA00Z/1ERRidLUegxKxwX+P7ROX6z70+InBJ71NLlr Pv76U0Tb8mFO3y03q7UnB5VAEBVvlok9b+E7+iDjD9KggopLnQnKBmy9xRK6dA1zyXPO c6nQ== ARC-Authentication-Results: i=1; mx.google.com; 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 k92si165340otk.261.2020.04.06.11.28.26; Mon, 06 Apr 2020 11:28:46 -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; 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 S1725995AbgDFS1O (ORCPT + 99 others); Mon, 6 Apr 2020 14:27:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:42392 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725876AbgDFS1O (ORCPT ); Mon, 6 Apr 2020 14:27:14 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B902E206C3; Mon, 6 Apr 2020 18:27:12 +0000 (UTC) Date: Mon, 6 Apr 2020 14:27:11 -0400 From: Steven Rostedt 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 Subject: Re: [patch 1/2] x86,module: Detect VMX modules and disable Split-Lock-Detect Message-ID: <20200406142711.47780ff5@gandalf.local.home> In-Reply-To: <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> <20200406152231.GQ20730@hirez.programming.kicks-ass.net> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 6 Apr 2020 17:22:31 +0200 Peter Zijlstra wrote: > 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. I believe I may have been the one to suggest it. It's no different than breaking kabi if you ask me. If a module can't deal with a new feature, than it should not be able to load. And let whoever owns that module fix it for their users. -- Steve