Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1653601rdb; Sun, 8 Oct 2023 19:39:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFyUyPm/KqMvUiWxEffRcwg/7hlT0p6pLmLqBGgoG8YRJ1qRy97W9Uxv12EYCyfwgwv66RA X-Received: by 2002:a17:90a:f495:b0:277:3afc:f27 with SMTP id bx21-20020a17090af49500b002773afc0f27mr15373677pjb.1.1696819141834; Sun, 08 Oct 2023 19:39:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696819141; cv=none; d=google.com; s=arc-20160816; b=CsFCwM5afs4EkAe59eg7OFexwlGKV62TdDXQxjkjy7neiq/A3TdPnJY6GF3ZDG2Mfw dE7cRFtLH6Ro2a5mfDRYCSgO/ZoUTqoppP+Y15Y2YKf+M8OqfzD31CAPXSVAZYSbMx18 brH+1HLNk/OLZRMQ63PKrw8K2ibkxZxRhiwF2NAk+rG1QZGjBOavH0ZUpjaK0nRuBJaW wOPw36JrJ4RpMF5lSJqIVpLsFZ75omDodA7zPDyURXL7E917yamy45hk3+p9O73DL7NY wVBCcVlHD3fT2tzjruqfBF4L8qo9PEvhb3F6WU0IJIY3z11xd5FsB/Tm/+ugFqs3f+8O fStg== 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=MU7v5qu9yPgnI8R82udS5Goc2VlcNgXX+qckqeqZ3bk=; fh=7A2vjXu/ewATeTgBdu7iBmgBP0mnBjez2UGBNdh/IPI=; b=iuDYARx/x9GYxKnLgtYYVaKLmkAKYtHGbw+Ui+B71fe4A6gMXKlkeDVRLk7s1N+JjD IosLIZInCiMfbE2J8CuzhUHdeot1nbstIdIoaMi+YdwPum301iiTrw5duQt6CcGBzvue 088fjnmCMHNz4W4f3jCAZu7I+SuBINWsvxe1ied/S6HxMqWIzKLW/1Vb5zv0zTPmrmYN /bYEusUZxld8fwUJ1v7MLyoRFx/rHGzZCh3WOW2/nw1oRz805iTTIsQE+j2KKR454E5/ wubKpe78aLUWPih9t6vyAXo9TGZL637UP8fd3Scx13e71lLlxahmgc03uZ/6Bdgwd3MW fcbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=IfnSPLyk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id n14-20020a17090ac68e00b0026822221502si8674350pjt.163.2023.10.08.19.39.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Oct 2023 19:39:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=IfnSPLyk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 21D038070E09; Sun, 8 Oct 2023 19:38:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345011AbjJICf6 (ORCPT + 99 others); Sun, 8 Oct 2023 22:35:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231542AbjJICf5 (ORCPT ); Sun, 8 Oct 2023 22:35:57 -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 59FB0A4; Sun, 8 Oct 2023 19:35:56 -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=MU7v5qu9yPgnI8R82udS5Goc2VlcNgXX+qckqeqZ3bk=; b=IfnSPLykY5r++NKkjhZPUlGZzv kzfVK3Z1XcTyVf44RHNahVP4B8zG/qFSONbonhjM8N7Zms1wb/cH9nloTEaJoADv+hVH1wVZK/A2R TQ1dG5bK//yRiqkIm26n2iYkqvw7zwbFOaFSexj0uM1XnQ7c3CoXB1cx8O4kUTxHtIGxHydHCrzYo a+u8Gx/dBFhzCLIL+hGeMdFxRKruCcG/KTvcQLOXRmlbbqK6Lm0UsngE6eqK3lRhfuc4gj+lhMQqP LW2eDxIpsaSvFe16PmtKqKOjr6IqT97opBin71WYYLvo7zL815yLIVOnKhkItSfoGb4fKIDkwOhuj fGj9fXXw==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1qpg7e-00H4Rt-2s; Mon, 09 Oct 2023 02:35:54 +0000 Date: Mon, 9 Oct 2023 03:35:54 +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: <20231009023554.GE800259@ZenIV> References: <20230928180651.1525674-1-pbonzini@redhat.com> <169595365500.1386813.6579237770749312873.b4-ty@google.com> <20231009022248.GD800259@ZenIV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231009022248.GD800259@ZenIV> 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Sun, 08 Oct 2023 19:38:59 -0700 (PDT) X-Spam-Level: ** On Mon, Oct 09, 2023 at 03:22:48AM +0100, Al Viro wrote: > 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. BTW, note that all those suckers will end up sharing the page cache; looks like that's not what you want to get... > NAKed-by: Al Viro