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 69987C433E0 for ; Mon, 8 Feb 2021 21:44:55 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C09C464E9D for ; Mon, 8 Feb 2021 21:44:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C09C464E9D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 260D96B0005; Mon, 8 Feb 2021 16:44:54 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 212626B006C; Mon, 8 Feb 2021 16:44:54 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 101DF6B006E; Mon, 8 Feb 2021 16:44:54 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0096.hostedemail.com [216.40.44.96]) by kanga.kvack.org (Postfix) with ESMTP id EE3BB6B0005 for ; Mon, 8 Feb 2021 16:44:53 -0500 (EST) Received: from smtpin04.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id B2D818248068 for ; Mon, 8 Feb 2021 21:44:53 +0000 (UTC) X-FDA: 77796430866.04.tin75_020091127602 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin04.hostedemail.com (Postfix) with ESMTP id 97FD8802F957 for ; Mon, 8 Feb 2021 21:44:53 +0000 (UTC) X-HE-Tag: tin75_020091127602 X-Filterd-Recvd-Size: 6014 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by imf10.hostedemail.com (Postfix) with ESMTP for ; Mon, 8 Feb 2021 21:44:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612820692; 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=2rpEa4PXmR1i2BkerHYaYcliPU1ybbsCKViRbwN9DgE=; b=FWJiP8qh3SjNOO3HPQceFVqFvJeTajZnOaoKKr0KI28t1fzEcNxVEjBEphaTjYHsSG3kJf ssEGraLykrR6YnNXJVrrBxNtNdavDAMJnpSWzgrizcAG+pUpgfFN87JV9aX42DeVEUtAzp yBgRnm3n3UZyd1pMsyTBw7GbJBiN4Qg= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-537-Pc-9gfFOMIuSas8fN6G-zg-1; Mon, 08 Feb 2021 16:44:50 -0500 X-MC-Unique: Pc-9gfFOMIuSas8fN6G-zg-1 Received: by mail-ed1-f72.google.com with SMTP id g2so15913634edq.14 for ; Mon, 08 Feb 2021 13:44:49 -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=tVv+C/O0KIajSAIPZ9b6ZdTZapQsj5tp4EOJeN1027xGJZfMjSzfSNFT+/2xOBHO1a ToSXPWbUOcKJ15dCqqIzCqiOWq/SjPTD6JfJTLkmNAbY1ZdGiIBbqYo3ytJIDSbezPBg Dyvs5TqSYfRAmqwGKa3UYo40DV2dlCDARHPNb0GbWoH5tVNrGL4m9jcVcAuagcsZOOK+ aUd1hC11i4J8LfcmnBIxXIzAtrCu1uutZYUBm9Uan/OgvRhFEsnRgTDWb6NiGamA+6xY JSzXdPNOU9biurkBSUKeB9yPaTgb2BHJEHkDZNhMqt6/lR8Gv7Q+On19cWh2N52fiJ/U zx0w== X-Gm-Message-State: AOAM533P+by/0ElVoMa4t8VzYgGL2U9vl38tazpMQtVJnhvUkEIcmqZi yVg4be/yxDyy4nVgu54oCpxixrx9DxcpHCUCq1K6CecoVarYn9TORy1SWgm5G0+ce1nbQfQhXjJ 4/zhRScS6RYQ= X-Received: by 2002:aa7:c5d6:: with SMTP id h22mr19937360eds.272.1612820688623; Mon, 08 Feb 2021 13:44:48 -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) 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) Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: > 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 wrot= e: >> On 08.02.21 09:49, Mike Rapoport wrote: >>=20 >> 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 commen= t >> regarding that in the cover letter: >>=20 >> 1. How will the issue of plenty of unmovable allocations for user space = be >> tackled in the future? >>=20 >> 2. How has this issue been documented? E.g., interaction with ZONE_MOVAB= LE >> 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= behaves like long-term pinnings in that sense. This is a real issue when u= sing a lot of sectremem. Please have a look at what Pavel documents regarding long term pinnings and= ZONE_MOVABLE in his patches currently on the list.