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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 14C81EB64DC for ; Fri, 21 Jul 2023 17:18:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:Subject:From:References:Cc:To: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=lM3JlXJmELr2v8lq3rIjV5h6tUjJoTCgZgZk1IkePWk=; b=Mx0JASFrjdLWvC wmzymQp3HtXXN7TL6HxQnK0fJxMEgx7+cW2XK1wB9kKcOFQVJl/OzWlfUPxtaA9L3ceNRm3z2BiYu hg5HJwsaDNbDDb86F2oFuacLtK6zciPlFqCmiKKgVqZqoKBO9GXpBrdMF+8Aql5blVVTeIB32BacZ cstnaazyzkENvq25fR4RkBxHiRZ2xzCn1vTzdSnapsrAxVkDuyrYjzhD5ogzlpMppsrLKb6RNiiSs vFndCuC2ideoR45c87vUsJjZsmKCYXeZUR2qhLnkb6dzHXi8Bv1wKAuUlK3rfCqcIz3mvJN8ImCje brsoGS7iYGa78BPc+reg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qMtlG-00EjjT-1F; Fri, 21 Jul 2023 17:17:50 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qMtlC-00Ejhg-18 for linux-arm-kernel@lists.infradead.org; Fri, 21 Jul 2023 17:17:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689959865; 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=kQftevPX0XUeLPrBO0NAWxPIrge3Hp6/1+H4UC+Ikhg=; b=TsTqYDFY56atA7BRjC3rJBX1KMWk9ySA26WKh3iPODNyNjI+wQdpMzpInR7ZhHGZKlWll4 o8PEL53IEvrH/KW6NLcrJCpzfAD8hdDxk17napW3fsRDE/KwbXG2vn049n3d9gbNzQoXkR eAaE8qenXj/LrJVfSn9GPcU5hpHhzJM= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-627-Uoy2ChbpMXKz9G1FeaMsPg-1; Fri, 21 Jul 2023 13:17:42 -0400 X-MC-Unique: Uoy2ChbpMXKz9G1FeaMsPg-1 Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-5218b9647a8so1344258a12.1 for ; Fri, 21 Jul 2023 10:17:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689959861; x=1690564661; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kQftevPX0XUeLPrBO0NAWxPIrge3Hp6/1+H4UC+Ikhg=; b=f2h2lJjENafGMR2XC/44hQlqV9sspYK6Pk5XAy4Y5Y3kzBmLATEc4Fj9OpiE9gBotp 504Na5Igr63kCsScNqQim/KOXs0ul0QodyBBDTDTqNDfPSOj34OBHnrhlTA7pGkrpPuB JXXmgqKWDa38SEx8uNgJqhvFJiELNZu/FVuYR3AcwhG5Ed83XRz4B9n3/GjmeXkpzpT0 VbX6WqWenqe5WbQGwiucaOGvdb2914rABni0cEao8pJuQ3yCyFguYEunqse3Yi+IOxWT fHQMC54tl14/ci6ybHABo6PXHQCh9MT0i1v22/GJ+AbjrA51j3cmk/UrbBOix+fALHp7 JTgw== X-Gm-Message-State: ABy/qLYxSKvVeLrMy1xAIg2eVSraCGsaqPcoziqhj4xe7+fYIEJ1NZF2 nVT2VLKQVTfLaueArykx2D1PESYTXJJwUmFhmHd/QaOp6nF6c3On9YOsxQl9ddZ8uplxQtL/T8C hVNoCDsU2W4BblUn1QBL5bFXOQnNy2pCxYdk= X-Received: by 2002:aa7:c753:0:b0:51e:1a51:d414 with SMTP id c19-20020aa7c753000000b0051e1a51d414mr1878199eds.32.1689959861043; Fri, 21 Jul 2023 10:17:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlFyyf9U2FFYwtGg7Nfx7TqscSvBa0fBBUyOLoWSpgQImoylEzXmYhbWs/84TcbA6dVob4NtSg== X-Received: by 2002:aa7:c753:0:b0:51e:1a51:d414 with SMTP id c19-20020aa7c753000000b0051e1a51d414mr1878159eds.32.1689959860744; Fri, 21 Jul 2023 10:17:40 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:9af8:e5f5:7516:fa89? ([2001:b07:6468:f312:9af8:e5f5:7516:fa89]) by smtp.googlemail.com with ESMTPSA id l9-20020aa7c309000000b0051d87e72159sm2346640edq.13.2023.07.21.10.17.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 Jul 2023 10:17:40 -0700 (PDT) Message-ID: <8ad7a846-64e9-a3f1-4bf1-731a994d62cb@redhat.com> Date: Fri, 21 Jul 2023 19:17:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 To: Sean Christopherson , Marc Zyngier , Oliver Upton , Huacai Chen , Michael Ellerman , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Matthew Wilcox (Oracle)" , Andrew Morton , Paul Moore , James Morris , "Serge E. Hallyn" Cc: kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Chao Peng , Fuad Tabba , Jarkko Sakkinen , Yu Zhang , Vishal Annapurve , Ackerley Tng , Maciej Szmigiero , Vlastimil Babka , David Hildenbrand , Quentin Perret , Michael Roth , Wang , Liam Merwick , Isaku Yamahata , "Kirill A . Shutemov" References: <20230718234512.1690985-1-seanjc@google.com> <20230718234512.1690985-13-seanjc@google.com> From: Paolo Bonzini Subject: Re: [RFC PATCH v11 12/29] KVM: Add KVM_CREATE_GUEST_MEMFD ioctl() for guest-specific backing memory In-Reply-To: <20230718234512.1690985-13-seanjc@google.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230721_101746_467683_38B5F9F6 X-CRM114-Status: GOOD ( 11.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 7/19/23 01:44, Sean Christopherson wrote: > + inode = alloc_anon_inode(mnt->mnt_sb); > + if (IS_ERR(inode)) > + return PTR_ERR(inode); > + > + err = security_inode_init_security_anon(inode, &qname, NULL); > + if (err) > + goto err_inode; > + I don't understand the need to have a separate filesystem. If it is to fully setup the inode before it's given a struct file, why not just export anon_inode_make_secure_inode instead of security_inode_init_security_anon? Paolo _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel