Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp877590rwl; Wed, 5 Apr 2023 08:51:32 -0700 (PDT) X-Google-Smtp-Source: AKy350a3TO2US7N9/Z92GTWj54mHjFx+WI6HudvHQyZpLc/W+MfgNvpd8DL3o7y4iQxQxEjX9bLW X-Received: by 2002:a17:90a:1a17:b0:237:24a8:c5e2 with SMTP id 23-20020a17090a1a1700b0023724a8c5e2mr6979894pjk.40.1680709891884; Wed, 05 Apr 2023 08:51:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680709891; cv=none; d=google.com; s=arc-20160816; b=AFWpAt/QC4SMnaR6G7bW9JvwotP+PKHGpwo8ylV8UWw0ggTj0TM9KZYG9zEviRYpej Sbk3fSaRDC6G/uSP9nLQKVQEZqvgQ6N42qYbbJ90AXTQu9NrNOBE9qRM9nOFZfz3ZkTD sHR17taGwrOttVgmN9zh6W6YydG7UvJ0y9f7Ar3MAf8KUWOvu19AfPKH4J8hr3VrXs7n t2IqtWSa7Lo9fxPNouLhMAGJXgmfvHXNnwIyIbpe18GYMgJB/pVyOC/1hp6AQHcOKnV+ nupmqzbQtXPuFwrrKR8rBUFw/6K8Lfw6Sdmai2wfqyL1mKfGt36e3wCVUBxBep8m+/ds QVjw== 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=L2Oxdk6Soo+QR4xtEQGW5VILqYT7VRJvcfzUGwIeljQ=; b=nE9gJvNwyP973TX3QOgXN+fFGz0/U0bOikVRjXhU+PZk/UX7HMiVxCdl98bXURFZNX VEB/6bCj+oqtuN0dMv6bxdrE8NvvgMwoz6zY/FArlswxcEWIaUYUws66DAiBIaIha5pS QXPsxGzZbuFVsHjXxrlloze1S1zW93Cyn6qMLLLWOerlv3jAh65I80F4cjtpeynDIlP0 ca4/DAavJM1vY9hm+WW6aSaRiCQiUNy/jdp/yyen5k/NnfqS+3bLEmBwufGPSpvFRHCD F0LaJhwYRBL9Sdv/K/yVlsTHiNhjlUwhaKljCBVhgtK6aZaxazlHxZVMyq9E5dvyU04+ O3FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=nhp8jPH1; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t12-20020a17090a6a0c00b00242bface51csi1520933pjj.108.2023.04.05.08.51.18; Wed, 05 Apr 2023 08:51:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@infradead.org header.s=bombadil.20210309 header.b=nhp8jPH1; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239139AbjDEPux (ORCPT + 99 others); Wed, 5 Apr 2023 11:50:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239152AbjDEPui (ORCPT ); Wed, 5 Apr 2023 11:50:38 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAE4C7699; Wed, 5 Apr 2023 08:50:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=L2Oxdk6Soo+QR4xtEQGW5VILqYT7VRJvcfzUGwIeljQ=; b=nhp8jPH1vFH/iElJAx8aqwqR7U g+xNujT+vjE4bWfEwqW3BKCVZa4Mt0/Os0v8HNGaILCF8OxUyB5wOqjJRRpRA4EdpvAVUmjmNpbUS xkkVJUA0KsaMSSkpRr0JlE4M1+DBZDaIQxvYn//4LCcIK59VgiSAZSjv0vYFxMXkpvfRkqksNjcIh y51QOMTrJAHIz0LcXkH9uZr7QtDhk9rdjErAs88IgJs0sz2xDsOZzPZLp0udpmqvU1b1ygELVNTYI iSiGvjkivARv/BdG0FSgDDxaGZQyG6ztn11VMyNGMNQ9EBNfqxUReAe+RWRMOy2AHxViuHKIoXkUf RV7SaN/w==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1pk5Ok-0050qZ-1c; Wed, 05 Apr 2023 15:50:10 +0000 Date: Wed, 5 Apr 2023 08:50:10 -0700 From: Christoph Hellwig To: "Darrick J. Wong" Cc: Andrey Albershteyn , dchinner@redhat.com, ebiggers@kernel.org, hch@infradead.org, linux-xfs@vger.kernel.org, fsverity@lists.linux.dev, rpeterso@redhat.com, agruenba@redhat.com, xiang@kernel.org, chao@kernel.org, damien.lemoal@opensource.wdc.com, jth@kernel.org, linux-erofs@lists.ozlabs.org, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, cluster-devel@redhat.com Subject: Re: [PATCH v2 19/23] xfs: disable direct read path for fs-verity sealed files Message-ID: References: <20230404145319.2057051-1-aalbersh@redhat.com> <20230404145319.2057051-20-aalbersh@redhat.com> <20230404161047.GA109974@frogsfrogsfrogs> <20230405150142.3jmxzo5i27bbc4c4@aalbersh.remote.csb> <20230405150927.GD303486@frogsfrogsfrogs> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230405150927.GD303486@frogsfrogsfrogs> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE 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-ext4@vger.kernel.org On Wed, Apr 05, 2023 at 08:09:27AM -0700, Darrick J. Wong wrote: > Thinking about this a little more -- I suppose we shouldn't just go > breaking directio reads from a verity file if we can help it. Is there > a way to ask fsverity to perform its validation against some arbitrary > memory buffer that happens to be fs-block aligned? That would be my preference as well. But maybe Eric know a good reason why this hasn't been done yet.