Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3094330rwl; Thu, 13 Apr 2023 15:54:02 -0700 (PDT) X-Google-Smtp-Source: AKy350Z2XJ/cjcafkCNtWx4q63eIGve6YFYZdYCsP4LcmB75q9wLn0XIYoOMJY1nOdAWLU9X5c3A X-Received: by 2002:a17:902:d586:b0:1a0:6a47:184e with SMTP id k6-20020a170902d58600b001a06a47184emr596023plh.42.1681426442144; Thu, 13 Apr 2023 15:54:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681426442; cv=none; d=google.com; s=arc-20160816; b=sMEneCh5QPbpvJNW/c+RJpNXdpxsIpSrRnltUO9VHSYT6qYcfcd1It453xkrGaJfdF gSDUMM07fkphCHNYgF8nY0kzEIPXwg3ojpuDuZecKMe9+Jjvi1Q7SZZ0H9Qm1w+H73kn AcF450Es5tjQnCXIgE5FfLH3WbucDDQPfkFi+2YBpmW1Hf7/UDyXFLJIE10LA7TCqggq 1mMYRL5vhiY+uzWgeuQwuWxw00fZRz7HvV60/ZgUJh8m6OFLuU7rsHALNC7Ngp3OVjAw XD3FfIG0qaciIstUKn2Lldk6p3og4rYrAhQoZ4RwHPOBdhC5wVwx/NjG8dMIodLV6xhO rw5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:mime-version :in-reply-to:date:dkim-signature; bh=z8guo045Q+5eAEwhfUr30hz0PJkqMwxW7HV3gxeLbUM=; b=rJjq7HF6EITQdm6yOfv+x3S72gI+pt99jyPBYB4KF/DyRl+NZPJog7wn+7IOCwuvFH PUOGSMUsGGa2yL3NekB3az3J+4SjE2JSB2p0vTTwtAiBWH9mmHi/DZ4ds61ON1ZANM8a BrTG4bS/cNVnm1JAJ2PeXjdo6FyxC1NQFpYAT3Glkz0blEGtHpyj9W3gRVcsbvqBD45y E/UkoCJqsBvio07bWJMkhz2BGJUBXNpUd/zDliTmw8Znog8OCLnFnEovsFTBFTi8MZLu oYtCqv+CI+nTucWMQvVAfLSgJ34ZJTSN5TmxSZzbmltMEZ7yUnxGp4K8XLDR4K0tQHDO yNEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=Rjwp4Xdm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u15-20020a170903124f00b001a19b69c7ebsi3139003plh.345.2023.04.13.15.53.48; Thu, 13 Apr 2023 15:54:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=Rjwp4Xdm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230364AbjDMWxc (ORCPT + 99 others); Thu, 13 Apr 2023 18:53:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230243AbjDMWx3 (ORCPT ); Thu, 13 Apr 2023 18:53:29 -0400 Received: from mail-pj1-x1049.google.com (mail-pj1-x1049.google.com [IPv6:2607:f8b0:4864:20::1049]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2F141FE0 for ; Thu, 13 Apr 2023 15:53:24 -0700 (PDT) Received: by mail-pj1-x1049.google.com with SMTP id oj7-20020a17090b4d8700b00246f8c3e70aso2221472pjb.6 for ; Thu, 13 Apr 2023 15:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1681426404; x=1684018404; h=cc:to:from:subject:message-id:mime-version:in-reply-to:date:from:to :cc:subject:date:message-id:reply-to; bh=z8guo045Q+5eAEwhfUr30hz0PJkqMwxW7HV3gxeLbUM=; b=Rjwp4Xdm6ZLaEPgG8cQHjLF9ituKkBuE4Kg1flS/uBoAlJ5LElw7Yfif+urjga4Z1k Id9XGYBIPjUILBU5HRcXu81p8pDXA/u7T7lfZ53bFi0pGFkAASoZMc1FKWQlhEzWj7g7 M8ApiMQugbqBdsiM2beP1Zmsfm7UP5aAC4H3s81SX9hYygeAlfdJWkF78OhRMgmv5bOY YVoHszS0N47VwRyOsgUt/J/+QeiNlvAv36oX5BxahWlc22nXKEGI9AqKs9w9dhKamSyI 7JyyYvDzq5fdoA1a6pagi9+JsHhlJPaWALPTL0IkyyyP5IWH3eftfLt0+7o6zZeS826/ vf/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681426404; x=1684018404; h=cc:to:from:subject:message-id:mime-version:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=z8guo045Q+5eAEwhfUr30hz0PJkqMwxW7HV3gxeLbUM=; b=i8/qMI/zwbMaFT7MbdSL55u/QyqgO96nMQIWovPMtJetubPN9KI6LYssr1MlZrj2yE rgxCcJAyIE0urc7kSmvE/wxn5w303eidxMBfzIKCRLtBGqqi82bKV/hWXx8cm1eDglwm 54YHPB/tqAqsUCcGEKZV3uF0jN5XFJL41nXhjeX8qWzIGHVy53IPyHHeQDg/R8Ukm5ZM d7bsfFps8BZjJgWzq2siz+TcJhIWb6yqaVBMAevhlm2Fq4ygrGlo6MXMd6hLxAXRrmrA 2Ts5L8MF0ZDc/fZhkjTB89FN9PUXVGzBItVVPuYrYpUp2Bue5htxQruV9CGr22+O+x4A kIlA== X-Gm-Message-State: AAQBX9cioFqFpDXUs0LuleCOUomECOu+gM4hyPowA401EMM1mvVSP7gG 3Zf3roWDIIM6EQYC6/hhgMrnXSrRYIC43VDHiw== X-Received: from ackerleytng-cloudtop.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1f5f]) (user=ackerleytng job=sendgmr) by 2002:a17:90a:3ea7:b0:246:f5c3:576 with SMTP id k36-20020a17090a3ea700b00246f5c30576mr979461pjc.6.1681426404283; Thu, 13 Apr 2023 15:53:24 -0700 (PDT) Date: Thu, 13 Apr 2023 22:53:22 +0000 In-Reply-To: <20230412-kurzweilig-unsummen-3c1136f7f437@brauner> (message from Christian Brauner on Wed, 12 Apr 2023 11:59:52 +0200) Mime-Version: 1.0 Message-ID: Subject: Re: [RFC PATCH v3 1/2] mm: restrictedmem: Allow userspace to specify mount for memfd_restricted From: Ackerley Tng To: Christian Brauner Cc: kvm@vger.kernel.org, linux-api@vger.kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, qemu-devel@nongnu.org, aarcange@redhat.com, ak@linux.intel.com, akpm@linux-foundation.org, arnd@arndb.de, bfields@fieldses.org, bp@alien8.de, chao.p.peng@linux.intel.com, corbet@lwn.net, dave.hansen@intel.com, david@redhat.com, ddutile@redhat.com, dhildenb@redhat.com, hpa@zytor.com, hughd@google.com, jlayton@kernel.org, jmattson@google.com, joro@8bytes.org, jun.nakajima@intel.com, kirill.shutemov@linux.intel.com, linmiaohe@huawei.com, luto@kernel.org, mail@maciej.szmigiero.name, mhocko@suse.com, michael.roth@amd.com, mingo@redhat.com, naoya.horiguchi@nec.com, pbonzini@redhat.com, qperret@google.com, rppt@kernel.org, seanjc@google.com, shuah@kernel.org, steven.price@arm.com, tabba@google.com, tglx@linutronix.de, vannapurve@google.com, vbabka@suse.cz, vkuznets@redhat.com, wanpengli@tencent.com, wei.w.wang@intel.com, x86@kernel.org, yu.c.zhang@linux.intel.com Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christian Brauner writes: > On Wed, Apr 05, 2023 at 09:58:44PM +0000, Ackerley Tng wrote: >> ... >> > > Why do you even need this flag? It seems that @mount_fd being < 0 is >> > > sufficient to indicate that a new restricted memory fd is supposed >> to be >> > > created in the system instance. >> I'm hoping to have this patch series merged after Chao's patch series >> introduces the memfd_restricted() syscall [1]. > I'm curious, is there an LSFMM session for this? As far as I know, there is no LSFMM session for this.