Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4267732ybb; Tue, 7 Apr 2020 04:13:57 -0700 (PDT) X-Google-Smtp-Source: APiQypIxcV/efn8Jz1PizlhXa8nxkkY6QoEjJoAymaVfom9CTlQiwuKDQFq3nFb1Qc3+5niRJuna X-Received: by 2002:a9d:4914:: with SMTP id e20mr1150713otf.100.1586258037749; Tue, 07 Apr 2020 04:13:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586258037; cv=none; d=google.com; s=arc-20160816; b=SGgVAnNF4rrtrP9HLftjnuY5ha8/22+ofMsPAab3HYmnJMA0md3VOvVNHIB+FXksX7 0m29hmbf6OqXHKHxBnM6996G/6n3JvQHyJiQ5c27eW1utOl2BSedSZ/3iNx4u99cJWsx ldhKiwC7zvBrVlV4sSQrf8z261HNwJ2eYs/awdxRbQQ6I32LFaad4Z5DfRjpVonOYp5i /gKU1/QbrXxCZy3JBjL3ddqhzQP2m4ayamT4f7Zsxfbp9nzW7ftTXSbltFrbL6jJd3tK Mb/mlxOLTnU3Vzqw4pK0W6+p+K+hUvgG+riGq0iCsOJqFHcNQVcE/kno2P3bTjvWfvwe UtmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:cc:to:from:date:user-agent :message-id:dkim-signature; bh=DGXRNIOm8L3YtK4QEqGYJuqh7vIlYsiM9W/BVycG01s=; b=Bi8QXlUAI81bDi5u9Jwbfm1GBn48+5mVbbo8tGQUZMx+PC07AGbufZdDZCn7Bn7Iyn Wm4USMpH7v8Y3EpvsN4onwxpSChfZTBm0VYuXX2ey7K79XVu7mWyrpXiKi1gkFtmy6oT pMq+dyLK6eo8jkydKpevjB2IL1ZGVVil3aH8gmBUA28HZ1ZA+qCbzai5RRwrxKlub7P/ 7FeMWtMVJDBxDWDMpBUJ5kuS3lIbDPoiHj2Qo/l8m8v/VRxk9w2tamZZM3v2saoOg/FW uAqhQ1ThLNTeLd6YnThNHpzxn5s9whBI2f5lWQ0LjCBXXo05pPElZrXBSufhXRBr4/iG zoGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=cpKz2fB8; 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 f129si510631oia.243.2020.04.07.04.13.45; Tue, 07 Apr 2020 04:13:57 -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=cpKz2fB8; 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 S1728543AbgDGLNL (ORCPT + 99 others); Tue, 7 Apr 2020 07:13:11 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:48466 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728176AbgDGLNI (ORCPT ); Tue, 7 Apr 2020 07:13:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Subject:Cc:To:From:Date:Message-Id: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To:References; bh=DGXRNIOm8L3YtK4QEqGYJuqh7vIlYsiM9W/BVycG01s=; b=cpKz2fB8lSsiRrh0SoxEA09KFQ HjnomCpyka6wHtm512PgK7Y8A02vA66Zi/VtxBbnwnfOI4zTXn2VdC5C6RZ+H3ROyWiZUIEuNv0qY R538mjupiWK6Y4en4es1w3QmxALAPiECZ3SN22U5i6JPQD3r0HxzkJTP9XMX30PUVVBfXz1ffM6T7 AbcNhYGKGnRXmqeQQylsbRJrKVWrohtPiA/6Bixmp4P1i3dHkWoLBSO8s85buyi0L2E6ybQGwdNXZ RqrzR+dsb3NUVqyn7eA4JgCbtd4NbUwUGBTXZ1UJNd7HySXbER3xRsedUzbTgAdR8nigMriWDfeze j7aR8mKw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jLm9n-0002wL-CN; Tue, 07 Apr 2020 11:12:39 +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 463413011DD; Tue, 7 Apr 2020 13:12:36 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id 189DB2856A70A; Tue, 7 Apr 2020 13:12:36 +0200 (CEST) Message-Id: <20200407110236.930134290@infradead.org> User-Agent: quilt/0.65 Date: Tue, 07 Apr 2020 13:02:36 +0200 From: Peter Zijlstra To: tglx@linutronix.de, linux-kernel@vger.kernel.org Cc: hch@infradead.org, sean.j.christopherson@intel.com, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, kenny@panix.com, peterz@infradead.org, jeyu@kernel.org, rasmus.villemoes@prevas.dk, pbonzini@redhat.com, fenghua.yu@intel.com, xiaoyao.li@intel.com, nadav.amit@gmail.com, thellstrom@vmware.com, tony.luck@intel.com, rostedt@goodmis.org, gregkh@linuxfoundation.org, jannh@google.com, keescook@chromium.org, David.Laight@aculab.com, dcovelli@vmware.com, mhiramat@kernel.org Subject: [PATCH 0/4] x86/module: Out-of-tree module decode and sanitize Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, Driven by the SLD vs VMX interaction, here are some patches that provide means to analyze the text of out-of-tree modules. The first user of that is refusing to load modules on VMX-SLD conflicts, but it also has a second patch that refulses to load any module that tries to modify CRn/DRn. I'm thinking people will quickly come up with more and more elaborate tests to which to subject out-of-tree modules.