Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1280296ybd; Sun, 23 Jun 2019 04:10:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyT7x13LJlhM1MMe17vGIwQGSldiOzlRorxXna5aYUZmpptBE2J3SwAYhJekPX5KSxtJf7A X-Received: by 2002:a63:1462:: with SMTP id 34mr27641638pgu.417.1561288210387; Sun, 23 Jun 2019 04:10:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561288210; cv=none; d=google.com; s=arc-20160816; b=UygyPMzkKj435MUK6yZIW0Qa9DVKQfGMQsixOgZvdD5vvIk2/kCGKPXjG93VfILuuX /HWRIZuwYQMVrQxZbhVA8sqmKMJvkLuQe999U4fPDe4f/TrqVT9xY+joO+vIolEzR1k8 1ZOBhS7O1+60GyBMz/U816s8IPotsy8R7qzWYQIWlhD1cIGK/TpA82QNuJIUfYuw1/ov kTpXkS7iF1WhMx1hPRmU0sWjYQ5QGRlhvoAnTBqIbse46MFTGa0G/0BNja49L9yOLGeY GRuzJNqGSV+y5hTFOIrSykvMOR1Woaip3qxZr0WcqK89SesE+0wAcFW6r7ir/Bg2c5jB T3BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=iYCZn1UshMUADUKV0ZaTuB2f8/2l7cczCLQ39HA2bE8=; b=hbTXhRutRIj8D/a0oZ8dEabEX3RerZe1jmMZ+KPBE7Ikd1KHqy+fKp9kXjMJ3BzGR5 0ffMUy3C48499BU1kXI8xTGeKABtS/1mQkZ67QWRYcz4lg0rrqRF38UIb7pNrJR4m0wo Qt4wawKu3gBqHV6VBS/yHLG5ctirXQYTqS7dCNmmta/D6qz/mZAhKV2rEELylhwa+ezp VYv/u+JIKqXgR1bY5QltDYgCvVZoA1tovW1h6HmgP+krvuk/XoPDUxSc82NfRSFeJAxe jECNJjUziCY1M8/v19AvZVrpG4IWD0IWQu3/CD5pQS25A/GIIlFoPANRyOHbnvRy9m+e hP8A== 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 s198si7405903pgs.122.2019.06.23.04.09.54; Sun, 23 Jun 2019 04:10:10 -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 S1726474AbfFWLI6 (ORCPT + 99 others); Sun, 23 Jun 2019 07:08:58 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:33207 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726350AbfFWLI6 (ORCPT ); Sun, 23 Jun 2019 07:08:58 -0400 Received: from p5b06daab.dip0.t-ipconnect.de ([91.6.218.171] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hf0Mf-00080j-Ge; Sun, 23 Jun 2019 13:08:53 +0200 Date: Sun, 23 Jun 2019 13:08:52 +0200 (CEST) From: Thomas Gleixner To: Matthew Garrett cc: jmorris@namei.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, David Howells , Matthew Garrett , Steven Rostedt , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org Subject: Re: [PATCH V34 20/29] x86/mmiotrace: Lock down the testmmiotrace module In-Reply-To: <20190622000358.19895-21-matthewgarrett@google.com> Message-ID: References: <20190622000358.19895-1-matthewgarrett@google.com> <20190622000358.19895-21-matthewgarrett@google.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 21 Jun 2019, Matthew Garrett wrote: > From: David Howells > > The testmmiotrace module shouldn't be permitted when the kernel is locked > down as it can be used to arbitrarily read and write MMIO space. This is > a runtime check rather than buildtime in order to allow configurations > where the same kernel may be run in both locked down or permissive modes > depending on local policy. > > Suggested-by: Thomas Gleixner > Signed-off-by: David Howells Signed-off-by: Matthew Garrett > cc: Thomas Gleixner > cc: Steven Rostedt > cc: Ingo Molnar > cc: "H. Peter Anvin" > cc: x86@kernel.org Reviewed-by: Thomas Gleixner