{"id":2229443,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2229443/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-ext4/patch/20260428083332.768693-13-aalbersh@kernel.org/","project":{"id":8,"url":"http://patchwork.ozlabs.org/api/1.1/projects/8/?format=json","name":"Linux ext4 filesystem development","link_name":"linux-ext4","list_id":"linux-ext4.vger.kernel.org","list_email":"linux-ext4@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<20260428083332.768693-13-aalbersh@kernel.org>","date":"2026-04-28T08:33:18","name":"[v9,12/22] xfs: don't allow to enable DAX on fs-verity sealed inode","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"bdd19747f49433032f96628d948bac49921c59b4","submitter":{"id":92821,"url":"http://patchwork.ozlabs.org/api/1.1/people/92821/?format=json","name":"Andrey Albershteyn","email":"aalbersh@kernel.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-ext4/patch/20260428083332.768693-13-aalbersh@kernel.org/mbox/","series":[{"id":501796,"url":"http://patchwork.ozlabs.org/api/1.1/series/501796/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-ext4/list/?series=501796","date":"2026-04-28T08:33:09","name":"[v9,01/22] fsverity: report validation errors through fserror to fsnotify","version":9,"mbox":"http://patchwork.ozlabs.org/series/501796/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2229443/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2229443/checks/","tags":{},"headers":{"Return-Path":"\n <SRS0=ry0T=C3=vger.kernel.org=linux-ext4+bounces-16158-patchwork-incoming=ozlabs.org@ozlabs.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-ext4@vger.kernel.org"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","patchwork-incoming@ozlabs.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=uExNpB7l;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org;\n envelope-from=srs0=ry0t=c3=vger.kernel.org=linux-ext4+bounces-16158-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)","gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=\"2600:3c0a:e001:db::12fc:5321\"\n arc.chain=subspace.kernel.org","gandalf.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org","gandalf.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=uExNpB7l;\n\tdkim-atps=neutral","gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16158-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"uExNpB7l\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"],"Received":["from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g4Z5Y0bP7z1xvV\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 18:55:28 +1000 (AEST)","from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g4Z5X48qJz4wLT\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 18:55:28 +1000 (AEST)","by gandalf.ozlabs.org (Postfix)\n\tid 4g4Z5X4543z4wLd; Tue, 28 Apr 2026 18:55:28 +1000 (AEST)","from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby gandalf.ozlabs.org (Postfix) with ESMTPS id 4g4Z5T0mGBz4wLT\n\tfor <patchwork-incoming@ozlabs.org>; Tue, 28 Apr 2026 18:55:25 +1000 (AEST)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 2876331DEC75\n\tfor <patchwork-incoming@ozlabs.org>; Tue, 28 Apr 2026 08:35:37 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 51B113D5648;\n\tTue, 28 Apr 2026 08:34:31 +0000 (UTC)","from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 10AC63002DD;\n\tTue, 28 Apr 2026 08:34:31 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id 74D48C2BCAF;\n\tTue, 28 Apr 2026 08:34:28 +0000 (UTC)"],"ARC-Seal":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1777366528; cv=pass;\n\tb=K7mshPNL/tRrJKnKR8dmNH1HDE3ViJYX+ZIlxU6dhEN2T2XLIZ6wVcwPgRjBPxkjX6YUDlrvoh1miac01mwpkLGHt5jbJZvft5wUXDP2EahgOgTCNYG3jlJA/ucazwUXEnTUJ9m59d3w1n8NeWn00LDZnIMociBCGj70DyuFz8ozpNhFxcNtsiEWaCFzYoJ1RrMzsbXWOfCmb/eA4tgyhso2Pie1HYuHULCtd7Q4sBokzDKdEuO1pC6wtuB9M6XObiqsm09bS2QU8xc+2gm/sOMTrTZ6jhKexqZdhjHehDxHkbtcG5XrauTTA6RQied25hRNYJHrdfw2ACgb235FVQ==","i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777365271; cv=none;\n b=nJOk+TaNPWqqo+gpIb3Iyc5st7L7kacn34PLe3T4eGmHtXlZoU+6Ncysl59MTyO2wGnAeMYgNAK7np5sy+aIbnhtaKw+92P6yIhLezC9qbUR9nMPxgp/fZ7W3/dUrb1sXe37Zl/TaQ5nkmsa7e1yzPdhDPGkO+NjBrIOPIzTq+g="],"ARC-Message-Signature":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1777366528; c=relaxed/relaxed;\n\tbh=9o+o/e+0nWVDHKM3SRYN/4oZtN8PnlF2wMfvwmAPe4o=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=Z8YI2Un5SbgakBo0rHl3TA13fX4EqsjlbYLPfs38BOXwjIbvaYjsvfT5o65i1X6kL1JBAM2NvTNwREfYUNLqj5ORS9gAFnTui+IJrMrMaqCGkQeuvgH7AWbqG2xDP6wGJQmP9QU7G7E+dhlIpSCmR0YSM3TdxB1oTHG3Zc5VkPQhbP95QRUSUL0Ou14zqmpVXbzMjEUZnOvTKaHGGy6PI/sYpYrINkCC9koKKh4kIackJEMOoXHipDSEHoxYofvZx/PaXXVyQ+5ILo4HHbbtwvaYikN7cL6zD+C7TQsKhqvYOJq4vgzER2nKDwDtNHTLpuiaRYPH6HjXzxf8my9xgQ==","i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777365271; c=relaxed/simple;\n\tbh=60UpzLwPFsE/OH5uzd9+hLYE021xyutp1l0GCWgkWzo=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=ZWq0ldL4MSnXEFqT4BQ4wD4SeNpn36aJwmpYaVFS1FfrEYNyYQR0P3wKTQHSdxG1UQ5fTjW+pmiHVlNoyiBuyqqheMcG04JigjscZ7tzVrTx6GxN3JFWuWyV4mS/shzGJSg9i8RPNAcgUmSU0HikQEDxiKxDxD6JOgKV47a0+0I="],"ARC-Authentication-Results":["i=2; gandalf.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org;\n dkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=uExNpB7l; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16158-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org","i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=uExNpB7l; arc=none smtp.client-ip=10.30.226.201"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1777365270;\n\tbh=60UpzLwPFsE/OH5uzd9+hLYE021xyutp1l0GCWgkWzo=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=uExNpB7lI5TLuU4iiAvSboz4KLVlP5zUbA9lfKW0aRGF7UG0X8l9xYAp7I6VFbT18\n\t CwsJybc0TMAVm6cgCGoAghdhG1lK4Qgn+3L0y6+q4rY9+bIdvZDmyaITu3pQsfZ4im\n\t dhRxqs369iOhGhCB4RuHQCOFHoL2YtnocKU/U8BixF2IiaMiIUPqhW6gLqyxg6CAJx\n\t CCGmlZ9xky32NRw1lTVRlj6us/SjXfwOfxu1vlO6S+iUvFF4IDd7xPcPJQ5XqRlUPR\n\t dtPt8rturOOJQ2b6o/kXgKnPryFRyIF/1dgtGUSiXDBRMVNXAECbth70Ee7RL5aQOi\n\t A9w+H0rXfE20Q==","From":"Andrey Albershteyn <aalbersh@kernel.org>","To":"linux-xfs@vger.kernel.org,\n\tfsverity@lists.linux.dev,\n\tlinux-fsdevel@vger.kernel.org,\n\tebiggers@kernel.org","Cc":"Andrey Albershteyn <aalbersh@kernel.org>,\n\thch@lst.de,\n\tlinux-ext4@vger.kernel.org,\n\tlinux-f2fs-devel@lists.sourceforge.net,\n\tlinux-btrfs@vger.kernel.org,\n\tlinux-unionfs@vger.kernel.org,\n\tdjwong@kernel.org","Subject":"[PATCH v9 12/22] xfs: don't allow to enable DAX on fs-verity sealed\n inode","Date":"Tue, 28 Apr 2026 10:33:18 +0200","Message-ID":"<20260428083332.768693-13-aalbersh@kernel.org>","X-Mailer":"git-send-email 2.51.2","In-Reply-To":"<20260428083332.768693-1-aalbersh@kernel.org>","References":"<20260428083332.768693-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=-1.2 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,\n\tMAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=disabled\n\tversion=4.0.1","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org"},"content":"fs-verity doesn't support DAX. Forbid filesystem to enable DAX on\ninodes which already have fs-verity enabled. The opposite is checked\nwhen fs-verity is enabled, it won't be enabled if DAX is.\n\nSigned-off-by: Darrick J. Wong <djwong@kernel.org>\nReviewed-by: Christoph Hellwig <hch@lst.de>\nSigned-off-by: Andrey Albershteyn <aalbersh@kernel.org>\n---\n fs/xfs/xfs_iops.c | 2 ++\n 1 file changed, 2 insertions(+)","diff":"diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c\nindex ca369eb96561..17efc83a86ed 100644\n--- a/fs/xfs/xfs_iops.c\n+++ b/fs/xfs/xfs_iops.c\n@@ -1387,6 +1387,8 @@ xfs_inode_should_enable_dax(\n \t\treturn false;\n \tif (!xfs_inode_supports_dax(ip))\n \t\treturn false;\n+\tif (ip->i_diflags2 & XFS_DIFLAG2_VERITY)\n+\t\treturn false;\n \tif (xfs_has_dax_always(ip->i_mount))\n \t\treturn true;\n \tif (ip->i_diflags2 & XFS_DIFLAG2_DAX)\n","prefixes":["v9","12/22"]}