Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp907234pxb; Tue, 9 Feb 2021 16:16:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxo/MceyL2nvRP6VyQmWda+YYTJxHgoHZdgotfJboqk2/ZCb1VXmSm7QnuG+sxKNdSWvpeD X-Received: by 2002:a05:6402:524f:: with SMTP id t15mr726463edd.158.1612916188873; Tue, 09 Feb 2021 16:16:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612916188; cv=none; d=google.com; s=arc-20160816; b=yRiqNX6jihty+0y73t+wolUpr/6cDr6G6gX0kxZL3ziUpJJF03zuDM6gFmz5IIlRdz sRh0oRjl+ccZgnSjtWhd4ngSH7qW86jtTHwyi/HdYSRmTJHWkU/rzlHEyjZ7TGfNf8pG AINPOMNhZdD2FBDFz6McYd5njunIrE52HjKr7reEvUjhGeLIWGBEHd4TUiENwuwLQD0G kNrr36qEZyzswXAy56n16q2XjUtCU89N3lur6CYYVjO9foC/nRoeGzRHVULir1YwnjnS XpUlkj7y5NNK3OYj7MSA5h4A0cvtQiSvd/FWV8xJEcbIS6aIy2HPZqNq1h8h7mfJuSuP 8bkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=utBmzEHnMldk+xybu3FUHQ/4GijdaViYwt5S9/fMX5g=; b=Z08eDwJNhGEu7/DV/3uhtUAVoIbAQKGP5pkx9PnMwXP3P3N2XTV8oYfhaHZl8wcRT4 WIkwgSBh4c2+VQ+cC/ufjA/tBlussD+/YBX5CsR13W3pkk1NukgUwnaHZrNT2v38uS5Z D0OXotRlQcwv3Wl3j8ADhZFxo9I75hOCYK8h6vBqaUWYA3RqhXwWpo251hMtHYF4g5Z7 l/CoToBdppManhmYd8iw20oe/tH4hRJFMu2WUiA1hA3/M+F0laM/xgzAa8g8AOa6QekK GhvBIqOpg5uG1xZOgkT84Y1KJOSnQePl5R9oav35zRUIHSDBwFBzI9Us30alOkn6iie0 KWmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=TjFv3w1m; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t22si148514ejf.399.2021.02.09.16.16.06; Tue, 09 Feb 2021 16:16:28 -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=@suse.com header.s=susede1 header.b=TjFv3w1m; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234411AbhBJAPP (ORCPT + 99 others); Tue, 9 Feb 2021 19:15:15 -0500 Received: from mx2.suse.de ([195.135.220.15]:47834 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233733AbhBIUqB (ORCPT ); Tue, 9 Feb 2021 15:46:01 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1612901312; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=utBmzEHnMldk+xybu3FUHQ/4GijdaViYwt5S9/fMX5g=; b=TjFv3w1m/0Glle7o/mpLcPWsTy958OLjFP0MF4y2grgkrogeIq5dCnnfB5BszcW5ggUnqY LL4MV1a1lL2B5WOEu6FaOYZ3DET/TzX9b1n3q4/VP0Y/08QiHTyolRop/Pd6AqhLXBScSy PBnAIDa+ir2IADhVPtKtqxwjkXo403U= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id AC40AADF0; Tue, 9 Feb 2021 20:08:32 +0000 (UTC) Date: Tue, 9 Feb 2021 21:08:31 +0100 From: Michal Hocko To: David Hildenbrand Cc: Mike Rapoport , 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 , 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: References: <20210208211326.GV242749@kernel.org> <1F6A73CF-158A-4261-AA6C-1F5C77F4F326@redhat.com> <662b5871-b461-0896-697f-5e903c23d7b9@redhat.com> <8cbfe2c3-cfc6-72e0-bab1-852f80e20684@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8cbfe2c3-cfc6-72e0-bab1-852f80e20684@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 09-02-21 17:17:22, David Hildenbrand wrote: > On 09.02.21 14:25, Michal Hocko wrote: > > On Tue 09-02-21 11:23:35, David Hildenbrand wrote: > > [...] > > > I am constantly trying to fight for making more stuff MOVABLE instead of > > > going into the other direction (e.g., because it's easier to implement, > > > which feels like the wrong direction). > > > > > > Maybe I am the only person that really cares about ZONE_MOVABLE these days > > > :) I can't stop such new stuff from popping up, so at least I want it to be > > > documented. > > > > MOVABLE zone is certainly an important thing to keep working. And there > > is still quite a lot of work on the way. But as I've said this is more > > of a outlier than a norm. On the other hand movable zone is kinda hard > > requirement for a lot of application and it is to be expected that > > many features will be less than 100% compatible. Some usecases even > > impossible. That's why I am arguing that we should have a central > > document where the movable zone is documented with all the potential > > problems we have encountered over time and explicitly state which > > features are fully/partially incompatible. > > > > I'll send a mail during the next weeks to gather current restrictions to > document them (and include my brain dump). We might see more excessive use > of ZONE_MOVABLE in the future and as history told us, of CMA as well. We > really should start documenting/caring. Excellent! Thanks a lot. I will do my best to help reviewing that. > @Mike, it would be sufficient for me if one of your patches at least mention > the situation in the description like > > "Please note that secretmem currently behaves much more like long-term GUP > instead of mlocked memory; secretmem is unmovable memory directly > consumed/controlled by user space. secretmem cannot be placed onto > ZONE_MOVABLE/CMA. Sounds good to me. -- Michal Hocko SUSE Labs