Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2221446/?format=api
{ "id": 2221446, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2221446/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260409131404.1545834-12-aalbersh@kernel.org/", "project": { "id": 8, "url": "http://patchwork.ozlabs.org/api/1.2/projects/8/?format=api", "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, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260409131404.1545834-12-aalbersh@kernel.org>", "list_archive_url": null, "date": "2026-04-09T13:13:43", "name": "[v7,11/22] xfs: initialize fs-verity on file open", "commit_ref": null, "pull_url": null, "state": "not-applicable", "archived": false, "hash": "f6cd87afe6eedd29c4db19db92cb79bc357f451d", "submitter": { "id": 92821, "url": "http://patchwork.ozlabs.org/api/1.2/people/92821/?format=api", "name": "Andrey Albershteyn", "email": "aalbersh@kernel.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260409131404.1545834-12-aalbersh@kernel.org/mbox/", "series": [ { "id": 499292, "url": "http://patchwork.ozlabs.org/api/1.2/series/499292/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=499292", "date": "2026-04-09T13:13:34", "name": "fs-verity support for XFS with post EOF merkle tree", "version": 7, "mbox": "http://patchwork.ozlabs.org/series/499292/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2221446/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2221446/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <SRS0=o6Mc=CI=vger.kernel.org=linux-ext4+bounces-15708-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=aWc/n18W;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=150.107.74.76; helo=mail.ozlabs.org;\n envelope-from=srs0=o6mc=ci=vger.kernel.org=linux-ext4+bounces-15708-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)", "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=172.232.135.74 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=aWc/n18W;\n\tdkim-atps=neutral", "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.232.135.74; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15708-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=\"aWc/n18W\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201" ], "Received": [ "from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76])\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 4fs0r53VWSz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 09 Apr 2026 23:18:45 +1000 (AEST)", "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fs0r530kDz4wL4\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 09 Apr 2026 23:18:45 +1000 (AEST)", "by gandalf.ozlabs.org (Postfix)\n\tid 4fs0r52vsmz4wSp; Thu, 09 Apr 2026 23:18:45 +1000 (AEST)", "from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])\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 4fs0r16Nkrz4wL4\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 09 Apr 2026 23:18:41 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id CC98C301906E\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 9 Apr 2026 13:16:47 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 1E4083D7D60;\n\tThu, 9 Apr 2026 13:14:45 +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 CB1063D8115;\n\tThu, 9 Apr 2026 13:14:43 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 1E3E5C4CEF7;\n\tThu, 9 Apr 2026 13:14:40 +0000 (UTC)" ], "ARC-Seal": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1775740725; cv=pass;\n\tb=X93bKg0oVf3wLGPEghx9weiWbsFhnmZxBytP3FRFro/1Lrzm6R9TxHJAWaXinLB3TL7zMjcC1axnIHDJaC5GdoAh5m5icE/nF8yfomoxCMlDjD6g5K305VjZeXsjqHPcTeeLHL+20XkCCcEBB55njRee/ThU0zrmiupIiH+b6QRnUX6+7Yc6aot5xwmZE7tR7r+DMu49jsxihmI5kmHzpkk0/L8oel9glWYS3ocHQBnXBf5Cx0I4n0fw8K5dD3FRFQ0ndO2zChiLLBVZrCCQa8hytGbt5tc9zWZ1YqsNuvDWkJJlisupX84E/LsHeH5geipCfQXUv3lfXAuEZ49inA==", "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775740483; cv=none;\n b=KLdflLkRVNh8os5DQwxJa5mkTjUTwzHNtF/8ulc+6elo56CqPvQJ3GJlaRrmOE8kZmRQUjVIfwatCEK3R15Kr5is9094T2UV3zv5g5pykQYJ7FDAqGP0rL8fFf3E25HqC5JRK9DhWYJkeuTn1cch1f0po41aAvCLQRVWov5p+Js=" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1775740725; c=relaxed/relaxed;\n\tbh=w2uKcgganAhQg74Fuf+AS49Uko5xJTS2Pjh70DGjE0w=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=VrGK5G4qS8jrw9OPUWRM92s30ESMrQIdAyu1Ch74V1ltgyfR+a3nSpC1BruZd1nVL9qDWOj+VnILhP9kiqBPAhtEs83aZT4Vb2Dmo/tHxY0cxFnujBnCaxZVW/y2cCJna4IH7L0+XY9HSdBiLSPsuZi1rcHXKgzQeLPAScuV8IupyqRBRY+Q9tzVkJpd28APnXQpwr99u5TnZMYxuSPtpebkcqShkn3kEfo089x3rn4HafhjssVlqRlLjonMc9aCuNU0c41KaDdr5aZGhOfkBz+g3IGtYX56kjryhE0z8qMYcKNGghDWZgsJvSot+JJvcYFI7ENFPG1Str6xOI0O2A==", "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775740483; c=relaxed/simple;\n\tbh=gjzi4j4Cju/ktgfw/m2kII6LXPtWjZKRFOLxEgok6kg=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=cI7slTUwdqFbhB9Efmi7jy0Yn86EhRP2hYwdWbeajVT0XHodcpCzYP0Khrp8u/RWj6/LHnneyMbnMlu/0NRItNPTfayYHk2Ron1T/YwjGLwlaZ2mJ1gP5SUdqy1ALQOfPNz88rIoXNVbTez/Xj8bOILaw+kC5uPOK1fs12ROsP4=" ], "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=aWc/n18W; dkim-atps=neutral;\n spf=pass (client-ip=172.232.135.74; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15708-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=aWc/n18W; 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=1775740483;\n\tbh=gjzi4j4Cju/ktgfw/m2kII6LXPtWjZKRFOLxEgok6kg=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=aWc/n18W67MZy9r5fQx165Ihrot24Dhpq9cXDaGfokKJ87NrIFMH7+2ip/qXXZ+RP\n\t /DDPl78ndyuE4pEcaP58ISr8+ACz71pdgmagSAIvF4jr+CijwklAcoyJPM2n4TqKrc\n\t jvtPjbQw7o+JYKlQ5pobp2ZFC/jPcp6gDorWQiCTLdh4TPaTwfc9pHVRGP9WLihmoK\n\t 4NdZ5NUZuQCwVKQUqZfFoTqnICq31xtbsJzujyAMe5ysiRHTSVHzyVbFX6q6BywD9Z\n\t Wy1xh1hFFeaO3NIK/qMkwE5RZCtUhCX4NfBb/HfphPQ3CPeEs+8Unrk1SnaI+1L0t1\n\t fmaWdt+XyZyyQ==", "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\tdjwong@kernel.org", "Subject": "[PATCH v7 11/22] xfs: initialize fs-verity on file open", "Date": "Thu, 9 Apr 2026 15:13:43 +0200", "Message-ID": "<20260409131404.1545834-12-aalbersh@kernel.org>", "X-Mailer": "git-send-email 2.51.2", "In-Reply-To": "<20260409131404.1545834-1-aalbersh@kernel.org>", "References": "<20260409131404.1545834-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 will read and attach metadata (not the tree itself) from\na disk for those inodes which already have fs-verity enabled.\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_file.c | 8 ++++++++\n 1 file changed, 8 insertions(+)", "diff": "diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c\nindex 6246f34df9fd..a980ac5196a8 100644\n--- a/fs/xfs/xfs_file.c\n+++ b/fs/xfs/xfs_file.c\n@@ -37,6 +37,7 @@\n #include <linux/fadvise.h>\n #include <linux/mount.h>\n #include <linux/filelock.h>\n+#include <linux/fsverity.h>\n \n static const struct vm_operations_struct xfs_file_vm_ops;\n \n@@ -1640,11 +1641,18 @@ xfs_file_open(\n \tstruct inode\t*inode,\n \tstruct file\t*file)\n {\n+\tint\t\terror;\n+\n \tif (xfs_is_shutdown(XFS_M(inode->i_sb)))\n \t\treturn -EIO;\n \tfile->f_mode |= FMODE_NOWAIT | FMODE_CAN_ODIRECT;\n \tif (xfs_get_atomic_write_min(XFS_I(inode)) > 0)\n \t\tfile->f_mode |= FMODE_CAN_ATOMIC_WRITE;\n+\n+\terror = fsverity_file_open(inode, file);\n+\tif (error)\n+\t\treturn error;\n+\n \treturn generic_file_open(inode, file);\n }\n \n", "prefixes": [ "v7", "11/22" ] }