Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2049687pxb; Sat, 7 Nov 2020 07:30:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJysYudcaiW6yxoTWrMTN6HXcTTu66pK0/8nFNw92I+Uifkset9oERM//LC3jbgLG/Z+fThN X-Received: by 2002:a50:d315:: with SMTP id g21mr1238184edh.84.1604763013771; Sat, 07 Nov 2020 07:30:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604763013; cv=none; d=google.com; s=arc-20160816; b=Rk0JuDOnlZvsL3ppLL9m8N0VdrpWWPcRb31vwC/MkjGShqjf1WRTP5PJ2cJMxu/p0q Iu25fZYYmYZowcUr51O6Xz8wjevRYMcWZzqIUN8taU6PeqoTZXUHVxoHNYeefsChBGWZ /JPVwRCrVFaE2oWWfsKefHp5GPtIwm0wE3lxmbGWQ0K4RI6BgedvcMiNfzqWJMk8pTK2 Zryd2S3zzExWlUkpBkdGMHgYLeD5O/DgBE3kDcbbhakJgIVLfEy4pJln5ZhV9vTbK1HK IxuXkBxv5OwIjao4worq/GnN3g1Dn6FsVx/kuIcXjEwee7T9hrhPyyXJA8VmqPKeriq1 P/Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:reply-to:message-id:subject:cc:to:from:date; bh=r88QV8wqWdGGuKPw4gAc1hM7evuHG+ukA69uqn4ODFQ=; b=GgkiDfjdkY9Jq74H2POWV32u9FHrpvneufRkjiRheMpeKU47uBaaGxu5yj/KlPuDiZ gAfCnGUsf+YmGAACSfAizPHghUHyaxzQrOtVK0GQikQ8sTrXdGpVA5f5hal9I/B0ZXL1 HHRzY/I9AAEzumVLcAcAJJCDMg8yGM7elB8KONEHOQwH5BflM9BfWlARxkC6aSptZjsg oEICZjI9+oZUOwSW1wtc6GtVgPHMEehO+L1hZtwikPxXBBESxhtxlotZtL1i9qgTFMVl 3q2WnfD01BVipAPbbjHjSZ++RffUYkpm7kmIjSRt4x4TtTC73ncRjOGDQ4Q5on61LBU/ 4v+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x5si3184243ejf.218.2020.11.07.07.29.49; Sat, 07 Nov 2020 07:30:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726303AbgKGP2b (ORCPT + 99 others); Sat, 7 Nov 2020 10:28:31 -0500 Received: from wind.enjellic.com ([76.10.64.91]:59914 "EHLO wind.enjellic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726043AbgKGP2a (ORCPT ); Sat, 7 Nov 2020 10:28:30 -0500 Received: from wind.enjellic.com (localhost [127.0.0.1]) by wind.enjellic.com (8.15.2/8.15.2) with ESMTP id 0A7FRxAi029719; Sat, 7 Nov 2020 09:27:59 -0600 Received: (from greg@localhost) by wind.enjellic.com (8.15.2/8.15.2/Submit) id 0A7FRwYv029718; Sat, 7 Nov 2020 09:27:58 -0600 Date: Sat, 7 Nov 2020 09:27:58 -0600 From: "Dr. Greg" To: Matthew Wilcox 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: <20201107152758.GB29530@wind.enjellic.com> Reply-To: "Dr. Greg" References: <20201104145430.300542-1-jarkko.sakkinen@linux.intel.com> <20201104145430.300542-11-jarkko.sakkinen@linux.intel.com> <20201106174359.GA24109@wind.enjellic.com> <20201106211311.GT17076@casper.infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201106211311.GT17076@casper.infradead.org> User-Agent: Mutt/1.4i X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.3 (wind.enjellic.com [127.0.0.1]); Sat, 07 Nov 2020 09:28:00 -0600 (CST) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 06, 2020 at 09:13:11PM +0000, Matthew Wilcox wrote: > 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. That will be an interesting philosophical argument for Linux moving forward. I've often stated that there is going to be a natural political tension between the objectives of open-source and advances in platform security. By definition, advancing the latter will result in technology that contrains what can be done with a platform. It may have made more sense for the SGX driver to be mainline when the technology was going to be ubiquitous. Given the decision by Intel to monetize the platform, by limiting its implementation to high end server platforms, the case could be made that it is a driver best supported by the distributions or cloud providers. I'm neither for or against inclusion, I'm simply advocating that we make informed decisions on the driver implementation that benefits the user community. FWIW, based on knowledge that has come from building application stacks on top of the technology for a half decade now. Have a good weekend. Dr. Greg As always, Dr. Greg Wettstein, Ph.D, Worker Autonomously self-defensive Enjellic Systems Development, LLC IOT platforms and edge devices. 4206 N. 19th Ave. Fargo, ND 58102 PH: 701-281-1686 EMAIL: greg@enjellic.com ------------------------------------------------------------------------------ "Atilla The Hun's Maxim: If you're going to rape, pillage and burn, be sure to do things in that order." -- P.J. Plauger Programming On Purpose