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.6 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 AB8E2C433E9 for ; Mon, 8 Feb 2021 21:15:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 765F264E9A for ; Mon, 8 Feb 2021 21:15:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230465AbhBHVPQ (ORCPT ); Mon, 8 Feb 2021 16:15:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:33264 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236304AbhBHVOa (ORCPT ); Mon, 8 Feb 2021 16:14:30 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2A15364E8F; Mon, 8 Feb 2021 21:13:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612818828; bh=Hsw7u4NisXSHdMbN0miFLrU3qob/BtZRKy5D0WtD4mQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DqkWj9UrgaNlN7tor4WlT/PbjHoDhVkTAWVyRtiehKqBsBIlg2zRzOAntGDW+86wx t9LmuXLRYqrHRZcBc7unC6XAhPNWrMcUUEvHAvwnkCUgMKqMFZnL9bm2GNE5aC4pUI g9uqZwzHwFkcQ+XmsVzR8yYGxPKdKhbTnQ7myE7Mj0cV6qw47j0NdId0MJHEqRslub /el3Boy5sSLWlkjK0Pm94QQLob4G/uLz4vRWnNapLgu2mZBiTSGLPUWdmMesgwLpz4 8w43a6xpBzhX2L15Qekz5VMG+RTL22BH8Ov5Tcl9FLLVyaJGQwK59/7ht8rPcFYKmt XQ6gGB3oh8qzg== Date: Mon, 8 Feb 2021 23:13:26 +0200 From: Mike Rapoport To: David Hildenbrand Cc: Andrew Morton , Alexander Viro , Andy Lutomirski , Arnd Bergmann , Borislav Petkov , Catalin Marinas , Christopher Lameter , Dan Williams , Dave Hansen , Elena Reshetova , "H. Peter Anvin" , Ingo Molnar , James Bottomley , "Kirill A. Shutemov" , Matthew Wilcox , Mark Rutland , Michal Hocko , Mike Rapoport , Michael Kerrisk , Palmer Dabbelt , Paul Walmsley , Peter Zijlstra , Rick Edgecombe , Roman Gushchin , Shakeel Butt , Shuah Khan , Thomas Gleixner , 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 Subject: Re: [PATCH v17 00/10] mm: introduce memfd_secret system call to create "secret" memory areas Message-ID: <20210208211326.GV242749@kernel.org> References: <20210208084920.2884-1-rppt@kernel.org> <4996348d-5710-d77d-bb14-d84e370b4a5c@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4996348d-5710-d77d-bb14-d84e370b4a5c@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Mon, Feb 08, 2021 at 10:27:18AM +0100, David Hildenbrand wrote: > On 08.02.21 09:49, Mike Rapoport wrote: > > Some questions (and request to document the answers) as we now allow to have > unmovable allocations all over the place and I don't see a single comment > regarding that in the cover letter: > > 1. How will the issue of plenty of unmovable allocations for user space be > tackled in the future? > > 2. How has this issue been documented? E.g., interaction with ZONE_MOVABLE > and CMA, alloc_conig_range()/alloc_contig_pages?. Secretmem sets the mappings gfp mask to GFP_HIGHUSER, so it does not allocate movable pages at the first place. > 3. How are the plans to support migration in the future and which interface > changes will be required? (Michal mentioned some good points to make this > configurable via the interface, we should plan ahead and document) The only interface change required is an addition of bit value for syscall flags, I really think it can be documented with the addition of migration or any other feature for that sake. -- Sincerely yours, Mike.