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=-6.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,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 BFC09C2D0E4 for ; Tue, 24 Nov 2020 09:29:40 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 2676E2075A for ; Tue, 24 Nov 2020 09:29:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="P3bKeuXg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2676E2075A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 92C876B005D; Tue, 24 Nov 2020 04:29:39 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 8B30E6B006E; Tue, 24 Nov 2020 04:29:39 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 77AF76B0070; Tue, 24 Nov 2020 04:29:39 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0142.hostedemail.com [216.40.44.142]) by kanga.kvack.org (Postfix) with ESMTP id 5E6C76B005D for ; Tue, 24 Nov 2020 04:29:39 -0500 (EST) Received: from smtpin10.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 2BEC9180AD815 for ; Tue, 24 Nov 2020 09:29:39 +0000 (UTC) X-FDA: 77518789278.10.swim55_58033822736d Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin10.hostedemail.com (Postfix) with ESMTP id D084E16A4AC for ; Tue, 24 Nov 2020 09:29:38 +0000 (UTC) X-HE-Tag: swim55_58033822736d X-Filterd-Recvd-Size: 4045 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf35.hostedemail.com (Postfix) with ESMTP for ; Tue, 24 Nov 2020 09:29:38 +0000 (UTC) Received: from kernel.org (unknown [77.125.7.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 08D202073C; Tue, 24 Nov 2020 09:29:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606210177; bh=iTkMZLIpRtTWQfDGIB3Vl3mRtp/b8gkTxfVBLDleW2s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=P3bKeuXgUqKvyJMqI2t3WocMqVtq5rV80ChLv9RkXZobErCnfHPcZXypQS/ff8OIc k9Yt6nSUwbnDnaqXryHrQQDoC3ltsZJwF2Txq8wR9gdzisTN7cFmPk0qphW+f2nwAw 8OtVd4ZVVbsESt0E2Fi0gLuo0Co6IDESghVXVkF8= Date: Tue, 24 Nov 2020 11:29:19 +0200 From: Mike Rapoport To: Andy Lutomirski Cc: Andrew Morton , Alexander Viro , Arnd Bergmann , Borislav Petkov , Catalin Marinas , Christopher Lameter , Dan Williams , Dave Hansen , David Hildenbrand , Elena Reshetova , "H. Peter Anvin" , Ingo Molnar , James Bottomley , "Kirill A. Shutemov" , Matthew Wilcox , Mark Rutland , Mike Rapoport , Michael Kerrisk , Palmer Dabbelt , Paul Walmsley , Peter Zijlstra , Rick Edgecombe , Roman Gushchin , Shuah Khan , Thomas Gleixner , Tycho Andersen , Will Deacon , Linux API , linux-arch , linux-arm-kernel , Linux FS Devel , Linux-MM , LKML , "open list:KERNEL SELFTEST FRAMEWORK" , linux-nvdimm , linux-riscv@lists.infradead.org, X86 ML Subject: Re: [PATCH v10 0/9] mm: introduce memfd_secret system call to create "secret" memory areas Message-ID: <20201124092919.GI8537@kernel.org> References: <20201123095432.5860-1-rppt@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Mon, Nov 23, 2020 at 07:28:22AM -0800, Andy Lutomirski wrote: > On Mon, Nov 23, 2020 at 1:54 AM Mike Rapoport wrote: > > > > From: Mike Rapoport > > > > Hi, > > > > This is an implementation of "secret" mappings backed by a file descriptor. > > > > The file descriptor backing secret memory mappings is created using a > > dedicated memfd_secret system call The desired protection mode for the > > memory is configured using flags parameter of the system call. The mmap() > > of the file descriptor created with memfd_secret() will create a "secret" > > memory mapping. The pages in that mapping will be marked as not present in > > the direct map and will have desired protection bits set in the user page > > table. For instance, current implementation allows uncached mappings. > > I'm still not ready to ACK uncached mappings on x86. I'm fine with > the concept of allowing privileged users to create UC memory on x86 > for testing and experimentation, but it's a big can of worms in > general. Ok, let's move forward without UC. -- Sincerely yours, Mike.