| Message ID | 20261002223705.2175542-9-aalbersh@kernel.org |
|---|---|
| State | Not Applicable |
| Headers | show
Return-Path: <SRS0=iveq=HY=vger.kernel.org=linux-ext4+bounces-19949-patchwork-incoming=ozlabs.org@ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Is6rdJmm; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org; envelope-from=srs0=iveq=hy=vger.kernel.org=linux-ext4+bounces-19949-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hxNwr5Sl0z1xyX for <incoming@patchwork.ozlabs.org>; Sat, 03 Oct 2026 08:38:36 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hxNwD0wJJz4w1S for <incoming@patchwork.ozlabs.org>; Sat, 03 Oct 2026 08:38:04 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hxNwD0pY8z4w9g; Sat, 03 Oct 2026 08:38:04 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip="2600:3c04:e001:36c::12fc:5321" arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1790980684; cv=pass; b=Z4hH1POOK0C563ZPsY8GwWlQ+wtf21d8BwQSE9ySZxseUrboUPsSvYxA0RrfICf1cVKagcr3IfvcKYyDED6GjAuQntTt7cELD7YV9ILQOa6rERj0xiiotZS+WQA0ZyC9/cWHTATmZ5tdWMMd9776DpnlSmbMiFYj4/lWZJbrK/2GqoYD2kT56DRc5WIwi7crAsjdHmsFTPaglN1zXRQD3fuH+cifCzsA9U38xpgh1b5Hodp+olwwNyR9/FjQ6ooOAkUo7V7oz6sZiSBiGryS7HmrFuE4vWeow0/yFQl586YW/7TjZ6+E6tp4FRGePTgh93CEqzHOVatw3qRK18jT+w== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1790980684; c=relaxed/relaxed; bh=tyN8+gtU92vgNY5ULImxmqhPQNG/e7/IRfFO6L6Bczg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Y7NFp0kHdJJIrSjb32FMw2uZ+PJiDrwEOa8X5B/qkrewX1Grq5p/gRr86kClIYG1ia+cQCMBJmYWra938ybPJ7o+tkdTX/3wF64/eYB2f46nzR5aTqRTGzc0jqy9sbYacR/z4cyKE5L/2Eej4VeRkFfPhZU4bpf8j2FZNVAWfmHw5NZoa8pvGXo9iX5kr096reBIcelXnvbX61QV7rtZu8RlxO2q5vDvbbH6Z9po9GFL0RGNuj7KBN2JKUPIpe5dmsqdGiGr5TD+ayaUq005pTfRaZaHibhXJLHoUkyeYHIuDaHOiu1nBA9/zwkLa9QK/XcGqJO259NxfWCXWUz5aQ== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Is6rdJmm; dkim-atps=neutral; spf=pass (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org; envelope-from=linux-ext4+bounces-19949-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: gandalf.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Is6rdJmm; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org; envelope-from=linux-ext4+bounces-19949-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from tor.lore.kernel.org (tor.lore.kernel.org [IPv6:2600:3c04:e001:36c::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hxNw85Cchz4w1S for <patchwork-incoming@ozlabs.org>; Sat, 03 Oct 2026 08:38:00 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id 1287A32582 for <patchwork-incoming@ozlabs.org>; Fri, 2 Oct 2026 22:37:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 617DA47125F; Fri, 2 Oct 2026 22:37:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Is6rdJmm" X-Original-To: linux-ext4@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2728A411A03; Fri, 2 Oct 2026 22:37:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790980662; cv=none; b=cGxSEqMXofp5l63Q1E3EYjip/9r2YpoMYSdGvpijvwWQRSLUS8IdyukoazK+a0+DwPIsrRPBUrD5Z6bn4cUfylFS166MikXj6zRKlaHo/LB72Dz4PSCHJZ44atzZWEtphipgLs1msSd3q+3Zgp5zX5LryH2E1XySwFwhSDPfda8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790980662; c=relaxed/simple; bh=H/e0P+UlJBXIJCMWsp5bxESKBgwV9KeCad/muhyUdmw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ubcyZoHHN2UCZh7YhHopAoMGVbY2JDn29M29vhLc/f+ocN4f9lVZ3+97ORNYI5YBg0yt6X+68unlRB6TYtJvGp+jP3eEHpOTIq/j7MU0P905FkaGfl2IJRgC+m2gToXm+0prSYGphmxjUfES9jLHQTwosDS4EEEco3eihICbM70= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Is6rdJmm; arc=none smtp.client-ip=100.103.45.18 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16CFA1F000FF; Fri, 2 Oct 2026 22:37:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790980661; bh=tyN8+gtU92vgNY5ULImxmqhPQNG/e7/IRfFO6L6Bczg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Is6rdJmm0F740AinrlD2eXqyQ7AnNrjuP5QcPizteoY4fErQuf4b372wSufcyTpwG DfD+ogqXcOEEIPLqRu0Xk0Q0cVs0mDcylKHW1kpe0MeZA38YSOM7QGzEd0oBIGxk5E XKJCJgZOqTviIv0Kj0/07h3MT0BfC2AVswMpbecJ1bnTwWIWMqpMBPB+nbzbYmA6/y jUmZvZ4AghOwsfooqgtmHwV10fPRswe04TVonX12wfSorIksJk1tCl5zRUzl7ZhIPs 874hWB8sD2Y7C6+h+JOurBcKXIph4D5k65eIlzYgko16vJfHbLuleABmueEyMx+Uap hynN3EuS5Zovg== From: Andrey Albershteyn <aalbersh@kernel.org> To: djwong@kernel.org, ebiggers@kernel.org, hch@lst.de, Carlos Maiolino <cem@kernel.org> Cc: Andrey Albershteyn <aalbersh@kernel.org>, fsverity@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-unionfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-btrfs@vger.kernel.org, david@fromorbit.com Subject: [PATCH v17 08/21] xfs: don't allow to enable DAX on fs-verity sealed inode Date: Sat, 3 Oct 2026 00:36:49 +0200 Message-ID: <20261002223705.2175542-9-aalbersh@kernel.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20261002223705.2175542-1-aalbersh@kernel.org> References: <20261002223705.2175542-1-aalbersh@kernel.org> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: <linux-ext4.vger.kernel.org> List-Subscribe: <mailto:linux-ext4+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-ext4+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org |
| Series |
fs-verity support for XFS with post EOF merkle tree
|
expand
|
> fs-verity doesn't support DAX. Forbid filesystem to enable DAX on > inodes which already have fs-verity enabled. The opposite is checked > when fs-verity is enabled, it won't be enabled if DAX is. > > Signed-off-by: Darrick J. Wong <djwong@kernel.org> > Reviewed-by: Christoph Hellwig <hch@lst.de> > Signed-off-by: Andrey Albershteyn <aalbersh@kernel.org> Sashiko has reviewed this patch and found no issues. It looks great!
diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c index c7ecbb3d258a..b07ca2a33c64 100644 --- a/fs/xfs/xfs_iops.c +++ b/fs/xfs/xfs_iops.c @@ -1369,6 +1369,8 @@ xfs_inode_should_enable_dax( return false; if (!xfs_inode_supports_dax(ip)) return false; + if (ip->i_diflags2 & XFS_DIFLAG2_VERITY) + return false; if (xfs_has_dax_always(ip->i_mount)) return true; if (ip->i_diflags2 & XFS_DIFLAG2_DAX)