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=-4.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 359B0C2D0E4 for ; Tue, 24 Nov 2020 09:31:36 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AD8A52073C for ; Tue, 24 Nov 2020 09:31:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="c15FA6CU"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="P3bKeuXg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AD8A52073C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=KSFc/emOGjCqEC+UxF7tGPU/DNqNOFKYTRXqeNdC/oo=; b=c15FA6CUyfYgySgkyTlLt/MtR d2eYt/0/+OnDSF0gPJmNpEckta2ETTEhQnJX6ITLJdltJtyJaYTJvtb6KWabgEAYF9hngkLO7qVVF bY0iTNRSjR+YOgvRbrOAax3RBht4WXsVrciCekfDzr6dWScRtRHzkj9d1Fh6RxaZp7MuEyqhTZllq M9rcJWRlEh15doeXuSFi3aTxTAQHLaNiXwIletMPDMe/57VnYrR/L/GpnIqwC6YeFxnx43AKE2c3n PWU7+c1ejTR82uMQidXHwCS4xtlnISPeXN2qjvStm8AYIY7gdGx/J8KNC/i/auUprDyhtf+WNL7p2 Rt+1fDpCw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1khUeC-0006WW-9x; Tue, 24 Nov 2020 09:30:04 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1khUdm-0006Iu-3K; Tue, 24 Nov 2020 09:29:39 +0000 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 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-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201124_042938_347759_73053E0D X-CRM114-Status: GOOD ( 22.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , David Hildenbrand , Peter Zijlstra , Catalin Marinas , Dave Hansen , Linux-MM , "open list:KERNEL SELFTEST FRAMEWORK" , "H. Peter Anvin" , Christopher Lameter , Shuah Khan , Thomas Gleixner , Elena Reshetova , linux-arch , Tycho Andersen , linux-nvdimm , Will Deacon , X86 ML , Matthew Wilcox , Mike Rapoport , Ingo Molnar , Michael Kerrisk , Arnd Bergmann , James Bottomley , Borislav Petkov , Alexander Viro , Paul Walmsley , "Kirill A. Shutemov" , Dan Williams , linux-arm-kernel , Linux API , LKML , linux-riscv@lists.infradead.org, Palmer Dabbelt , Linux FS Devel , Andrew Morton , Rick Edgecombe , Roman Gushchin Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel