Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3105728pxb; Mon, 9 Nov 2020 02:43:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyngCRTGBqj3LEaDu1KDPJLRIuXOurAKap/z4SZ3sbFcYBGmWNNZyftdV9QdQ1KCDc/HHnf X-Received: by 2002:a17:906:4e56:: with SMTP id g22mr14383784ejw.49.1604918631981; Mon, 09 Nov 2020 02:43:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604918631; cv=none; d=google.com; s=arc-20160816; b=LicBZ8e9tyQfAsJ5IyOspkbCvfwJ6JU6qE9V0IebmgZIOFggCyna3K4mb6j1UOfVjP reJAu9o8rScEldXOqILHzFx+mVy2xjokWwDuB/eW7Gsb1hzLXGGk0NpZie6FJKhI3B7C ckoefnn1SaZoP64QX0RdsCoaHJVMBeN+dQVa2wS+yN/T0p4RjNF+ichlhxgVp42KIiyf 1zif+geDLMIyPTJnBllNrahgjnY7eJRlOhfm8Sx/kgzp9gBA5rdfGrzvbluePwuwZ4d0 XsnR30zCnCTmpi/Vg39h3VGmhp8xKSso1eX0LvSL7y7+nzvjwCU6SzQV9KAfs3X7qics PknA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:importance:content-transfer-encoding :mime-version:subject:references:in-reply-to:message-id:cc:to:from :date; bh=19GyBMzeA7hvw/G25uTliNI6RjRmToklp15qUFpKYd0=; b=CPiiFZLlCuN96qM4+NWPtu3yPsb4xupSWdF80S9YQXjMbjKRvR5vnFhR5njkkSyeG9 eq9KTgQ9mj6MG2SGWfrc1elGPOLGdqmXuUPst0u6VQwRuFWV2p53zThEcGCNIriNNuC1 /9mtIglyNltYbePJxvHpI+3avhsP1VkjDQBlYuCHydvX6O/Yu4xx4Y8npMKvZKmpoh+a Q0Ns0gwSNGlegLqTKJsy6WK1LnbKH5OiXCEOMA1QF7jdog0f8HTCnkXQgZoUfygPqfkU S95wvBLuTU42FonjO7PBuO5+votPp/pROo+VSpsnRLTxu7X+iQNCbdG+1wKlWMBfHt9i Ml6g== 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 y13si7866294edp.325.2020.11.09.02.43.29; Mon, 09 Nov 2020 02:43:51 -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 S1727906AbgKIKmN (ORCPT + 99 others); Mon, 9 Nov 2020 05:42:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726423AbgKIKmM (ORCPT ); Mon, 9 Nov 2020 05:42:12 -0500 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [IPv6:2001:67c:2050::465:102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99AB1C0613CF; Mon, 9 Nov 2020 02:42:12 -0800 (PST) Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4CV6xs6XHyzQkm5; Mon, 9 Nov 2020 11:42:09 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTP id GrIZVsje57hw; Mon, 9 Nov 2020 11:42:04 +0100 (CET) Date: Mon, 9 Nov 2020 11:41:59 +0100 (CET) From: Hagen Paul Pfeifer To: Mike Rapoport Cc: Andrew Morton , Alexander Viro , Andy Lutomirski , Arnd Bergmann , Borislav Petkov , Catalin Marinas , Christopher Lameter , Dan Williams , Dave Hansen , David Hildenbrand , Elena Reshetova , "H. Peter Anvin" , Idan Yaniv , Ingo Molnar , James Bottomley , "Kirill A. Shutemov" , Matthew Wilcox , Mark Rutland , Mike Rapoport , Michael Kerrisk , Palmer Dabbelt , Paul Walmsley , Peter Zijlstra , Thomas Gleixner , Shuah Khan , Tycho Andersen , Will Deacon , linux-api@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-nvdimm@lists.01.org, linux-riscv@lists.infradead.org, x86@kernel.org Message-ID: <651318720.14321.1604918519928@office.mailbox.org> In-Reply-To: <20201104170247.GT4879@kernel.org> References: <20200924132904.1391-1-rppt@kernel.org> <20201101110935.GA4105325@laniakea> <20201102154028.GD4879@kernel.org> <1547601988.128687.1604411534845@office.mailbox.org> <20201103163002.GK4879@kernel.org> <1988407921.138656.1604489953944@office.mailbox.org> <20201104170247.GT4879@kernel.org> Subject: Re: [PATCH v6 0/6] mm: introduce memfd_secret system call to create "secret" memory areas MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-MBO-SPAM-Probability: X-Rspamd-Score: -3.01 / 15.00 / 15.00 X-Rspamd-Queue-Id: 2C76B177D X-Rspamd-UID: 6438b0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 11/04/2020 6:02 PM Mike Rapoport wrote: > > Yes, this will work. The processes that share the memfd_secret file > descriptor will have access to the same memory pages, pretty much like > with shared memory. Perfect! Acked-by: Hagen Paul Pfeifer Thank you for the effort Mike, if zeroize feature will also included it will be great! The memset-all-pages after use is just overkill, a dedicated flag for memfd_secret (or mmap) would be superior. Hagen