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.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, 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 14890C433E0 for ; Mon, 8 Feb 2021 21:51:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C0AA964E54 for ; Mon, 8 Feb 2021 21:51:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236779AbhBHVvV (ORCPT ); Mon, 8 Feb 2021 16:51:21 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:42471 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236870AbhBHVkL (ORCPT ); Mon, 8 Feb 2021 16:40:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612820325; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4aepynJlknVRj6NFbhX2n2ebQXb/zj5Dsa2tNMP+Ofs=; b=NgQTAfrSZ8FQs0DFntcZz5VBYMO/EHZBDtU64J8blxjqapbg0mgbQu+EeU20t0Rn0V0Ve2 tlDdMhcnQ4KMNIFWel0gu8G5VI3SURHA8PpLh/j1E5CxjBp+8+YYVPe/MkbIRGDgiQ5cbT iO6+HQv9lw1ne+0FxK9BWBAa47PpqA0= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-167-wRw6IkoGPvmvpwnEuSyH7A-1; Mon, 08 Feb 2021 16:38:42 -0500 X-MC-Unique: wRw6IkoGPvmvpwnEuSyH7A-1 Received: by mail-wm1-f69.google.com with SMTP id z188so624511wme.1 for ; Mon, 08 Feb 2021 13:38:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=4aepynJlknVRj6NFbhX2n2ebQXb/zj5Dsa2tNMP+Ofs=; b=Jh/KTLXuVRebIFDByy/K6WWIzRZhfZFmfldNu2vTNRddzRzOV4bJfo77EYZOHfGI68 g+QSEaTU1q2AvsqiaQmPyoWwuYzcHrDcgJGuspUMD32GqAPmDP22n/X8ZJYeLvVMgnu5 B1oDbFYHUJ9Nb50e6ZvEjGz1niTbuJLyKvbv05m3+1fgdaw3sq6L9uVR2T8msZGSI0og Lmi2zKrXlQgTeduts3hhkntzpWhg7TZMaf+s9LB9/bfLDBJXSp5Ow7EPC/Uu1z1nhd35 DaAWcaWOeoUto4HtunhiQboJWIKrepOAMk58BwYQIJyIEoLEW7ESRmLWhE0cF+bRPLqc HXaQ== X-Gm-Message-State: AOAM533e7oLjmVYuyWkpl86mSo7zzX7Jo8CEY4RS/JMrfhWfNiOKi+mr BRSf9L5ikHgJYOMYM+xY50qvdFOivCgXEwmTxf/2F6wuJOeguFGANc1hd72gw7Qd38ZCBxB2f9i //0libXNpCKqxNAU2od1XB/SX X-Received: by 2002:a5d:4ac5:: with SMTP id y5mr590500wrs.345.1612820298836; Mon, 08 Feb 2021 13:38:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYU+ahfuGJ3mGlPDTjZ5sBTd5prIK5bha/7jxkj2wK46UMNjmdy8O20OWQnrZzKp7lrPlvQQ== X-Received: by 2002:a5d:4ac5:: with SMTP id y5mr589823wrs.345.1612820285413; Mon, 08 Feb 2021 13:38:05 -0800 (PST) Received: from [192.168.3.108] (p5b0c696d.dip0.t-ipconnect.de. [91.12.105.109]) by smtp.gmail.com with ESMTPSA id w15sm30039179wrp.15.2021.02.08.13.38.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Feb 2021 13:38:04 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: David Hildenbrand Mime-Version: 1.0 (1.0) Subject: Re: [PATCH v17 00/10] mm: introduce memfd_secret system call to create "secret" memory areas Date: Mon, 8 Feb 2021 22:38:03 +0100 Message-Id: <1F6A73CF-158A-4261-AA6C-1F5C77F4F326@redhat.com> References: <20210208211326.GV242749@kernel.org> Cc: David Hildenbrand , 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 In-Reply-To: <20210208211326.GV242749@kernel.org> To: Mike Rapoport X-Mailer: iPhone Mail (18D52) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Am 08.02.2021 um 22:13 schrieb Mike Rapoport : >=20 > =EF=BB=BFOn Mon, Feb 08, 2021 at 10:27:18AM +0100, David Hildenbrand wrote= : >> On 08.02.21 09:49, Mike Rapoport wrote: >>=20 >> Some questions (and request to document the answers) as we now allow to h= ave >> unmovable allocations all over the place and I don't see a single comment= >> regarding that in the cover letter: >>=20 >> 1. How will the issue of plenty of unmovable allocations for user space b= e >> tackled in the future? >>=20 >> 2. How has this issue been documented? E.g., interaction with ZONE_MOVABL= E >> and CMA, alloc_conig_range()/alloc_contig_pages?. >=20 > Secretmem sets the mappings gfp mask to GFP_HIGHUSER, so it does not > allocate movable pages at the first place. That is not the point. Secretmem cannot go on CMA / ZONE_MOVABLE memory and b= ehaves like long-term pinnings in that sense. This is a real issue when usin= g a lot of sectremem. Please have a look at what Pavel documents regarding long term pinnings and Z= ONE_MOVABLE in his patches currently on the list.=