Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1649741rdb; Sun, 8 Oct 2023 19:23:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHBL/btbapa0QM/7modgqWiiHKBMcl/yFqKkbMJHHb3iPvJzaTALbl3YzWiGO8T8pi6E9I3 X-Received: by 2002:a81:6e45:0:b0:59a:e88a:750b with SMTP id j66-20020a816e45000000b0059ae88a750bmr14962886ywc.44.1696818182908; Sun, 08 Oct 2023 19:23:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696818182; cv=none; d=google.com; s=arc-20160816; b=01yo0tPS7RtnMFsDD12Ejnx5x4rFApdnEzoKvFXLkUkzug87OHS0Ga/gfDqNPGLruv it0u3ZkQuvbq/QbWwpAr0M8UZXuj3qQurfSQJ0xnOf460mKGRkAuUwH9ENe6FXvuomlj nJXISjC2iJx/VXIGFe3WXFwBIXL24uiIj6uycgwOztj/rjLxRcdzkYs3bMK72zr1DZFf BOoDdJtowV0w+ksieT/oI1CdRnlh6wkzoRSqYOjFOspZfu101LwxYr9mr4x638vwDBlU Fn2drBgKx05aG4d2t50q72/08MsWpD4G2jI59tQDPnxaruLIZD6EyUzKRXOiiTwUEk9B NQvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=YJzixU4eIlZHRpL2+qAy4fg7CpiblSinQhlg/vtOqpo=; fh=7A2vjXu/ewATeTgBdu7iBmgBP0mnBjez2UGBNdh/IPI=; b=xFoY9IDrkGZSgQ8dNqClPgPpRgLKkvFkhVmboAHQtM1uuYbr5nP0lKIv8wJmFxvUBy V/eKoBy2CiLfVqMpeMPmmz+hVSzV+4LUUBkn4dQgIfBKh1+S0Ac98S6WrLfZyob9EatJ Hi4CyBwV/+gPUtL7dv6yV4gNE5oPLGwmn1Z8JjZBUzteUq9slnt4pDJjL7CMHQVC4ecn 97w+vu+J1cX7KO1lKSuam0l6+Tac2ux+hkpU0hD6fg+0g+RXtP0QddlPffOqIHjKwIND 1a95rAONZIXGBICgzwmcH2zbXG41NfxPsibjVMUfoN76ScD4V290oc5/bRg3lnB10taL 4Okw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=TjP44acQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id k24-20020a63f018000000b0057808b558cesi6445985pgh.124.2023.10.08.19.23.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Oct 2023 19:23:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=TjP44acQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 714CF80511A7; Sun, 8 Oct 2023 19:23:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345006AbjJICWv (ORCPT + 99 others); Sun, 8 Oct 2023 22:22:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232937AbjJICWu (ORCPT ); Sun, 8 Oct 2023 22:22:50 -0400 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA052A6; Sun, 8 Oct 2023 19:22:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=YJzixU4eIlZHRpL2+qAy4fg7CpiblSinQhlg/vtOqpo=; b=TjP44acQFALYXM57eZX+1dpmVG yiFPDmWfDOWBQSC3aTN2DoZ2MRLuX28QXa21hK8rmxq0FzmrHA1XpSl3Sufx8fPQ/Ls2eLOQxoKi2 IAhFcVScZjmz/JOWPBxV5IK7PT6ak2uuWnCIyBbD5pYQhlgSxVpjytMLe2a+ebyfl8k77su+97ZxW aUstEOrKbcaikE6E5P2SCGOxHQTCa3nk+0XEwK2FsZV7rZ9uQS1jVfY+o0umaoCSV5IhUe/ZpigJH 6jcr30+Sh8PxmzhOgfFpG8hQAzhaPTPpM5WnQdS7P2y7ItfbEb2ENMOt2LTYedlNpmzisDFEWKccx dk71MtEA==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1qpfuy-00H4HF-0r; Mon, 09 Oct 2023 02:22:48 +0000 Date: Mon, 9 Oct 2023 03:22:48 +0100 From: Al Viro To: Sean Christopherson Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Paolo Bonzini Subject: Re: [PATCH gmem FIXUP] kvm: guestmem: do not use a file system Message-ID: <20231009022248.GD800259@ZenIV> References: <20230928180651.1525674-1-pbonzini@redhat.com> <169595365500.1386813.6579237770749312873.b4-ty@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <169595365500.1386813.6579237770749312873.b4-ty@google.com> Sender: Al Viro X-Spam-Status: No, score=2.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Sun, 08 Oct 2023 19:23:00 -0700 (PDT) X-Spam-Level: ** On Thu, Sep 28, 2023 at 07:22:16PM -0700, Sean Christopherson wrote: > On Thu, 28 Sep 2023 14:06:51 -0400, Paolo Bonzini wrote: > > Use a run-of-the-mill anonymous inode, there is nothing useful > > being provided by kvm_gmem_fs. > > > > > > Applied to kvm-x86 guest_memfd, thanks! > > [1/1] kvm: guestmem: do not use a file system > https://github.com/kvm-x86/linux/commit/0f7e60a5f42a Please, revert; this is completely broken. anon_inode_getfile() yields a file with the same ->f_inode every time it is called. Again, ->f_inode of those things is shared to hell and back, very much by design. You can't modify its ->i_op or anything other field, for that matter. No information can be stored in that thing - you are only allowed to use the object you've passed via 'priv' argument. NAKed-by: Al Viro