Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2218292/?format=api
{ "id": 2218292, "url": "http://patchwork.ozlabs.org/api/patches/2218292/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260331212827.2631020-18-aalbersh@kernel.org/", "project": { "id": 8, "url": "http://patchwork.ozlabs.org/api/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": "<20260331212827.2631020-18-aalbersh@kernel.org>", "list_archive_url": null, "date": "2026-03-31T21:28:18", "name": "[v6,17/22] xfs: add fs-verity ioctls", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "b3c55dd8fd24075dbcb1878d5c473193fe4f40ca", "submitter": { "id": 92821, "url": "http://patchwork.ozlabs.org/api/people/92821/?format=api", "name": "Andrey Albershteyn", "email": "aalbersh@kernel.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260331212827.2631020-18-aalbersh@kernel.org/mbox/", "series": [ { "id": 498255, "url": "http://patchwork.ozlabs.org/api/series/498255/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=498255", "date": "2026-03-31T21:28:01", "name": "fs-verity support for XFS with post EOF merkle tree", "version": 6, "mbox": "http://patchwork.ozlabs.org/series/498255/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2218292/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2218292/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <SRS0=Xxj0=B7=vger.kernel.org=linux-ext4+bounces-15564-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=ZKh/DVRt;\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=xxj0=b7=vger.kernel.org=linux-ext4+bounces-15564-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)", "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=\"2600:3c04:e001:36c::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=ZKh/DVRt;\n\tdkim-atps=neutral", "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15564-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=\"ZKh/DVRt\"", "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 4flhM358BJz1yGH\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 01 Apr 2026 08:38:39 +1100 (AEDT)", "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4flhM34fJ1z4wGx\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 01 Apr 2026 08:38:39 +1100 (AEDT)", "by gandalf.ozlabs.org (Postfix)\n\tid 4flhM34ZgJz58dL; Wed, 01 Apr 2026 08:38:39 +1100 (AEDT)", "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::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 4flhM00XdYz4wGx\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 01 Apr 2026 08:38:36 +1100 (AEDT)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 2A805317F3A9\n\tfor <patchwork-incoming@ozlabs.org>; Tue, 31 Mar 2026 21:31:12 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 6951847798F;\n\tTue, 31 Mar 2026 21:29:26 +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 2A4B745BD60;\n\tTue, 31 Mar 2026 21:29:26 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 9DF6CC2BC9E;\n\tTue, 31 Mar 2026 21:29:23 +0000 (UTC)" ], "ARC-Seal": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1774993119; cv=pass;\n\tb=hVoVy7+DDAVl89re0pElxenZ/K7NigQbEalvXeTWeIpdDzuYtA8PPAxBcm051U6swlzDLtDNQJatLc4zB8ku9tb1RC59TGzOzD0FNb7MeN1oGor+zvQOqfaNAntqoYenyNUk8FjPyhL+W0H4lw0L33THvqnj+cYzR+CtaHxrco3vazJYtlINJ9/HkS0WTCyFLYbGoZJBNzDcuukHF6GCm14/vIu4RlSCTV1BOJ4oXyYbxaqcgpF955jPI+FuRoHe+XkOoeB70CRFGpZR+EuWevx5F+ZXvwc0HZbhhInuI46dG7KNtTIGoJvVwtbByLIoCbOn1Bl3/6N9zUGvtu5W0Q==", "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774992566; cv=none;\n b=AzvLr7N/SmbwF01PlW4wjuY6JibZVhwqp+XvT0ZNJEgNhbtPAyyDM6pEZfjU0B2mZhD08z2FPrCujzccnnTLXYjhMQ25JSdHwPvnC10auYo4Mn6AHwRVQZhevCTVmmdW54YOmBGN7GelhwdWECDGry50ehAZfCiGWqHn7aLXJe4=" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1774993119; c=relaxed/relaxed;\n\tbh=8khfHPPTDYOvTysJ7YcmpQXZ+97vXVSzPPzSexF7G6w=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=aL7oRZ9Zbh2TMtgl6+48EraLjHwAQyr/vG3/BwjE95AYI9NEy05tcGcNxKY0kejzmy6iaOBPa9C78ZQruQX5GYgrgHSYp5UtSuTHI221rSdZQ5S7YJneCpQ0T2uZ3TcXT/K8sfh5uAxpvOuyvBMJc50mgWtI6JNhWcvnnabUG8DSBwq0ts5nqPncz6EJA419N6PVm/3P/9wA2FV+kvbIp/0lZ3On+g02tVP17pAy1Oz+TSCB6wWlPTXiOKHy+t7b+/sTXOC0XIcxIeyToW6umx/U4RPSLM5t1e4CHlY91Z3AScpXaVX4MWPMxhGDkap9tvFmB3z2Nwez+Idt0DwNaQ==", "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774992566; c=relaxed/simple;\n\tbh=Aq0ZUSqSUefcts6LfugDkZmOSMW+4m4ueZMlzDmeXr4=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=iDU0I6rvSwUIEZyUiGI2kE+BhwIxwZjj1ppmgS1jbeZ077y85ti8ntsMlhTty24hCmpioYnhiGiLSOMvz2CLmOuioZLR1BgDYJ4hulZwDlvRcAK8O0cfVsb+EGZOWPeqafwO22feGmVZsADRwPB7U8UIToa/1Dk/GsyArfHnYz4=" ], "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=ZKh/DVRt; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15564-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=ZKh/DVRt; 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=1774992566;\n\tbh=Aq0ZUSqSUefcts6LfugDkZmOSMW+4m4ueZMlzDmeXr4=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=ZKh/DVRt7gQNcfunpyXMgXUvNvj+xj/Hk5mlvNtq98JuEqFpwrVjSQuoqGCFbhTD1\n\t vTT3xaW9CCctuk0K1OdWOrlIqH41qQHT7rvZZsvC1AvrX8eOQXkJefvTnaK7m+Z+o+\n\t RvDhmFypNL7k55cwRn1a1IwJZD6uagUVac4VXhtCNXIDIvh5txCsRPdNX7XDuAL/j8\n\t N/8NXEKd2GiVYEvPzHlt5uTAUkJ+TYZletsUAF8txIIL04Ypih7Umso1OCJ+AjH2vL\n\t gmWXZWISTN5bTeKa3VyZY7FVEuSBl84sKV+JBmqS4c4ey4UCkODJflIQDGV1aF2xQU\n\t hh6lnwKWs/7Iw==", "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 v6 17/22] xfs: add fs-verity ioctls", "Date": "Tue, 31 Mar 2026 23:28:18 +0200", "Message-ID": "<20260331212827.2631020-18-aalbersh@kernel.org>", "X-Mailer": "git-send-email 2.51.2", "In-Reply-To": "<20260331212827.2631020-1-aalbersh@kernel.org>", "References": "<20260331212827.2631020-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": "Add fs-verity ioctls to enable, dump metadata (descriptor and Merkle\ntree pages) and obtain file's digest.\n\n[djwong: remove unnecessary casting]\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_ioctl.c | 14 ++++++++++++++\n 1 file changed, 14 insertions(+)", "diff": "diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c\nindex facffdc8dca8..e633d56cad00 100644\n--- a/fs/xfs/xfs_ioctl.c\n+++ b/fs/xfs/xfs_ioctl.c\n@@ -46,6 +46,7 @@\n \n #include <linux/mount.h>\n #include <linux/fileattr.h>\n+#include <linux/fsverity.h>\n \n /* Return 0 on success or positive error */\n int\n@@ -1426,6 +1427,19 @@ xfs_file_ioctl(\n \tcase XFS_IOC_VERIFY_MEDIA:\n \t\treturn xfs_ioc_verify_media(filp, arg);\n \n+\tcase FS_IOC_ENABLE_VERITY:\n+\t\tif (!xfs_has_verity(mp))\n+\t\t\treturn -EOPNOTSUPP;\n+\t\treturn fsverity_ioctl_enable(filp, arg);\n+\tcase FS_IOC_MEASURE_VERITY:\n+\t\tif (!xfs_has_verity(mp))\n+\t\t\treturn -EOPNOTSUPP;\n+\t\treturn fsverity_ioctl_measure(filp, arg);\n+\tcase FS_IOC_READ_VERITY_METADATA:\n+\t\tif (!xfs_has_verity(mp))\n+\t\t\treturn -EOPNOTSUPP;\n+\t\treturn fsverity_ioctl_read_metadata(filp, arg);\n+\n \tdefault:\n \t\treturn -ENOTTY;\n \t}\n", "prefixes": [ "v6", "17/22" ] }