From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3589EC2D0A3 for ; Fri, 6 Nov 2020 21:13:28 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 8AB57208C7 for ; Fri, 6 Nov 2020 21:13:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="odyo1Y2F" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8AB57208C7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id CB7C16B0036; Fri, 6 Nov 2020 16:13:26 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C41276B005C; Fri, 6 Nov 2020 16:13:26 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AE2496B005D; Fri, 6 Nov 2020 16:13:26 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0114.hostedemail.com [216.40.44.114]) by kanga.kvack.org (Postfix) with ESMTP id 803046B0036 for ; Fri, 6 Nov 2020 16:13:26 -0500 (EST) Received: from smtpin08.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 2AFE2180AD811 for ; Fri, 6 Nov 2020 21:13:26 +0000 (UTC) X-FDA: 77455244412.08.watch14_190394b272d5 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin08.hostedemail.com (Postfix) with ESMTP id 0AD691819E764 for ; Fri, 6 Nov 2020 21:13:26 +0000 (UTC) X-HE-Tag: watch14_190394b272d5 X-Filterd-Recvd-Size: 3428 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf18.hostedemail.com (Postfix) with ESMTP for ; Fri, 6 Nov 2020 21:13:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=mzSnlUk01ZdJAA6PiH8BmokyA/8f90mFrb1du4sTZ5E=; b=odyo1Y2Fudsb5/Su7KcrdNzmEk 4KEeLptcEsg9V9nPHb/ky9xaG/5BF1NiRK/fTVTALmZqLzhEmZHQCKm5BDrLkCehJANa0BitF6/os +DEbRDXERyV8AnkloG9dFjYXZqMyw/Bu+S+xD9audQ7L0WB9JdaLW36HPrAd4DrWJ2rEXkQzz5YWx XotwK+wFuUqKAAE05l4TEe2IrlpAP0dvsB8TmcJnAMDLHukM1L2a/fUtU2vwElE9ldXPdgsFVTgPx tbdFmR+U0ra1X6ikgSTGIkUbt5dDkdxc1EKmYQC0ME/hUuCOMwrWHO0OW1cpAUwJ3s5qjCTKAgSUo k4S0QFqQ==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kb92l-0002d4-AD; Fri, 06 Nov 2020 21:13:11 +0000 Date: Fri, 6 Nov 2020 21:13:11 +0000 From: Matthew Wilcox To: "Dr. Greg" Cc: Jarkko Sakkinen , x86@kernel.org, linux-sgx@vger.kernel.org, linux-kernel@vger.kernel.org, Sean Christopherson , linux-mm@kvack.org, Andrew Morton , Jethro Beekman , Darren Kenny , andriy.shevchenko@linux.intel.com, asapek@google.com, bp@alien8.de, cedric.xing@intel.com, chenalexchen@google.com, conradparker@google.com, cyhanish@google.com, dave.hansen@intel.com, haitao.huang@intel.com, kai.huang@intel.com, kai.svahn@intel.com, kmoy@google.com, ludloff@google.com, luto@kernel.org, nhorman@redhat.com, npmccallum@redhat.com, puiterwijk@redhat.com, rientjes@google.com, tglx@linutronix.de, yaozhangx@google.com, mikko.ylinen@intel.com Subject: Re: [PATCH v40 10/24] mm: Add 'mprotect' hook to struct vm_operations_struct Message-ID: <20201106211311.GT17076@casper.infradead.org> References: <20201104145430.300542-1-jarkko.sakkinen@linux.intel.com> <20201104145430.300542-11-jarkko.sakkinen@linux.intel.com> <20201106174359.GA24109@wind.enjellic.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201106174359.GA24109@wind.enjellic.com> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Fri, Nov 06, 2020 at 11:43:59AM -0600, Dr. Greg wrote: > The 900 pound primate in the room, that no one is acknowledging, is > that this technology was designed to not allow the operating system to > have any control over what it is doing. In the mindset of kernel > developers, the operating system is the absolute authority on > security, so we find ourselves in a situation where the kernel needs > to try and work around this fact so any solutions will be imperfect at > best. > > As I've noted before, this is actually a primary objective of enclave > authors, since one of the desires for 'Confidential Computing' is to > hide things like proprietary algorithms from the platform owners. I > think the driver needs to acknowledge this fact and equip platform > owners with the simplest and most effective security solutions that > are available. Or we need to not merge "technology" that subverts the owner of the hardware. Remember: root kit authors are inventive buggers.