Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7675024rwl; Tue, 10 Jan 2023 04:04:24 -0800 (PST) X-Google-Smtp-Source: AMrXdXv3+0PQ5oKC6BlyS8c3XFipsnH1/4qcu0u7dWC6g8XJJ2jW8HbIg+L7xeN2CI9Qo/xBCLwH X-Received: by 2002:a17:902:e543:b0:189:a6b4:91ed with SMTP id n3-20020a170902e54300b00189a6b491edmr100907539plf.17.1673352264603; Tue, 10 Jan 2023 04:04:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673352264; cv=none; d=google.com; s=arc-20160816; b=MFxXLYMA6J/m3fLddNhkU6YKEWzrzCRTVR1qXl+dYPsop3Te5XfTeWZ8X1DWj5oSbO gWliiDbOHBdXfVwTdqIX7m8bQPYrYeXMYziwf56wst8bU16fUtBZDoLaBXPUOntme/iz ZbEtYdkEgETh7d0asc/z01MNDYKUGizYBS0gibGiqUG0Uvw6I45ZLU8mcf/uIpDRKUgk zy6YBoSappsXFXvRfixKaf5ejB72rI4eQ2w3MQShA9qLx64AVdVuhJl6bURlcF622JZ0 PUpsgU2WrfPIJ8kTxutyWbbgavxzhwrXEGTv+bE4M9OnpxpOcjE3YAkmtNSdS4dDgvjB tjmw== 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=qvgS94vZPKHZGBqkd1Zmbi6/2qn/moyV/jrp+sW7fDI=; b=GZ8+/jMtZf8G5tdwrHXU24FdM2CbsLrx8K+wNSzQ1pe8CaFaMm8OVXLkBv1xbVquWC K90ea/EUWtk5pgYe5zywIiK5dH8aC8wjJbbqliF9j14emxLL8GljTnInuHbY6AI7TI+5 J739UfpeoKu9CmmKDtC2EZvP1+/YNmIur5jSknRCeTYXr0YiW9GH4FYSPoqfBsTD+mhk 3DMwyLfCNGz9x5Y9j5AE17oJMHSjgEOhGazFbJRn3Ydr5roQymbgRyuMFIur99w/ngWG m4nR+ODF1O93Go6AvgPz9HUeS3J492ZAD8FrDbp+B50Rf/yO8vTHuL8KVh0dCXe/Ge7I WqtA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c10-20020a170903234a00b00174418919a6si12244214plh.513.2023.01.10.04.04.17; Tue, 10 Jan 2023 04:04:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233191AbjAJLf4 (ORCPT + 53 others); Tue, 10 Jan 2023 06:35:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232107AbjAJLfy (ORCPT ); Tue, 10 Jan 2023 06:35:54 -0500 X-Greylist: delayed 1796 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 10 Jan 2023 03:35:49 PST Received: from wind.enjellic.com (wind.enjellic.com [76.10.64.91]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A71E85014C; Tue, 10 Jan 2023 03:35:49 -0800 (PST) Received: from wind.enjellic.com (localhost [127.0.0.1]) by wind.enjellic.com (8.15.2/8.15.2) with ESMTP id 30AB1UCJ013380; Tue, 10 Jan 2023 05:01:30 -0600 Received: (from greg@localhost) by wind.enjellic.com (8.15.2/8.15.2/Submit) id 30AB1SPZ013379; Tue, 10 Jan 2023 05:01:28 -0600 Date: Tue, 10 Jan 2023 05:01:28 -0600 From: "Dr. Greg" To: Linus Torvalds Cc: Andy Lutomirski , "Jason A. Donenfeld" , Yann Droneaud , Ingo Molnar , Linux Kernel Mailing List , patches@lists.linux.dev, Thomas Gleixner , Linux Crypto Mailing List , Linux API , the arch/x86 maintainers , Greg Kroah-Hartman , Adhemerval Zanella Netto , "Carlos O'Donell" , Florian Weimer , Arnd Bergmann , Jann Horn , Christian Brauner , linux-mm@kvack.org Subject: Re: [PATCH v14 2/7] mm: add VM_DROPPABLE for designating always lazily freeable mappings Message-ID: <20230110110128.GA12987@wind.enjellic.com> Reply-To: "Dr. Greg" References: <10302240-51ec-0854-2c86-16752d67a9be@opteya.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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]); Tue, 10 Jan 2023 05:01:30 -0600 (CST) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 06, 2023 at 01:10:44PM -0800, Linus Torvalds wrote: Good morning, I hope the week is going well for everyone. > On Fri, Jan 6, 2023 at 12:54 PM Andy Lutomirski wrote: > > > > I'm going to suggest a very very different approach: fix secret > > storage in memory for real. That is, don't lock "super secret > > sensitive stuff" into memory, and don't wipe it either. *Encrypt* it. > > I don't think you're wrong, but people will complain about key > management, and worry about that part instead. > > Honestly, this is what SGX and CPU enclaves is _supposed_ to all do > for you, but then nobody uses it for various reasons. The principal problem is that enclave technology was not made either ubiquitous or accessible, long story there, suitable for multiple snifters of single malt. Unfortunately, the same goes for just about every other hardware security technology. Every conversation comes down to; "what is the business case for the technology", which translated means, how much money are we going to make off it. Encrypting memory based secrets, as an alternative to wiping them, is attractive, but hardware support is needed to do key management securely and correctly. Even than, by definition, there will be a window when the material needs to be in memory as plaintext. A discussion can be had in this arena about perfection being the enemy of good. If you are truely interested in perfection in this endeavor, you need to have a trusted platform definition and implementation. Which, if history is any indication, needs to be an open architecture with respect to both software and hardware. > Linus Best wishes to everyone for a productive remainder of the week. As always, Dr. Greg The Quixote Project - Flailing at the Travails of Cybersecurity