Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp16894pxb; Mon, 8 Feb 2021 13:52:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJylJ+heWdHlFRO+z752ZQp53EMvP7dWSWy/FcItQWdUzpipm7EZS4+VDnOZnUF437MXfx0O X-Received: by 2002:a05:6402:13cd:: with SMTP id a13mr19515259edx.87.1612821130850; Mon, 08 Feb 2021 13:52:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612821130; cv=none; d=google.com; s=arc-20160816; b=AqjieejMt+ixCOg8W3OTTSS00v6P7G/UgyqXNjg76TRkvmpDZgHSu8SB536Tl7v/RH guWQ51FIeGeFUN6sJqe0UYP+MeUWEWqi2k/TVmzERMc0vYJfVxiMS7iORmfwW9TP7oem +jMRbhjvw4PI1ShYslKUXzV49kEvZ9OUMCf2apig7JUbS8lgvzaSQuf38HRBGoGf2gGp glSGrwwj2t+zxRQClBXW7hl9QB0lGqNqQMN0S4clegY3xhA8urCYN1gpoY11y4mE3lsY quodYg5A0NRLpxzYOOjeJAVuF/qk+EogrYR/oAR2cGtp5a5q4mW7HDXxxYIXT6ejpZUb 7rvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:in-reply-to:cc:references:message-id:date :subject:mime-version:from:content-transfer-encoding:dkim-signature; bh=4aepynJlknVRj6NFbhX2n2ebQXb/zj5Dsa2tNMP+Ofs=; b=a8oRB+ZUK+N5e5VkWORAssIEnuq9sc/Gdrp8Rn5ohg/Ho8e1oqCbHOhryMZjTqGasz 0aPxAes4OmcReTkw9xIZWOL1zy6QMe97JY64Im4F+lqW3VqWOIX6VI0OOVNrvrdsYWxS GA0UNs1/VDR0lnrT26A+J70WxBvir1q9AWd+zzL5UXQ+I4BK9v6WwDkM5P+5+iRcOZFF fcOWko0igzfjvyMnwXxGK2P8rDWBDpsmu3Ia+DcZQEeIKEnFHXLLxcWOt4DdeJQABiYF vVAHYlWnF0oQ3mgqSpsWrxPIHUhfQPHiBycGBULpI8IzzErgtjHn8BFHnd2/a8cpBKoA 80YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NgQTAfrS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m9si5946243eji.536.2021.02.08.13.51.48; Mon, 08 Feb 2021 13:52:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NgQTAfrS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230344AbhBHVvJ (ORCPT + 99 others); Mon, 8 Feb 2021 16:51:09 -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-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.=