{"id":2225135,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2225135/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-ext4/patch/20260420114714.1621982-19-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":"<20260420114714.1621982-19-aalbersh@kernel.org>","date":"2026-04-20T11:47:05","name":"[v8,18/22] xfs: add fs-verity ioctls","commit_ref":null,"pull_url":null,"state":"not-applicable","archived":false,"hash":"b3c55dd8fd24075dbcb1878d5c473193fe4f40ca","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/20260420114714.1621982-19-aalbersh@kernel.org/mbox/","series":[{"id":500600,"url":"http://patchwork.ozlabs.org/api/1.1/series/500600/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-ext4/list/?series=500600","date":"2026-04-20T11:46:51","name":"fs-verity support for XFS with post EOF merkle tree","version":8,"mbox":"http://patchwork.ozlabs.org/series/500600/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2225135/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2225135/checks/","tags":{},"headers":{"Return-Path":"\n <SRS0=Ba1T=CT=vger.kernel.org=linux-ext4+bounces-15931-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=M3XXiqno;\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=ba1t=ct=vger.kernel.org=linux-ext4+bounces-15931-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)","gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=172.105.105.114 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=M3XXiqno;\n\tdkim-atps=neutral","gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15931-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=\"M3XXiqno\"","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 4fzkRF6w0Gz1yHr\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 20 Apr 2026 21:54:01 +1000 (AEST)","from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fzkRF6RKlz4wGH\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 20 Apr 2026 21:54:01 +1000 (AEST)","by gandalf.ozlabs.org (Postfix)\n\tid 4fzkRF6Lvxz4wG9; Mon, 20 Apr 2026 21:54:01 +1000 (AEST)","from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])\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 4fzkRB29yMz4wGH\n\tfor <patchwork-incoming@ozlabs.org>; Mon, 20 Apr 2026 21:53:58 +1000 (AEST)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 74F84307D4EE\n\tfor <patchwork-incoming@ozlabs.org>; Mon, 20 Apr 2026 11:48:45 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 849DA39F168;\n\tMon, 20 Apr 2026 11:48:29 +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 4347C39EF05;\n\tMon, 20 Apr 2026 11:48:29 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id 42ABBC19425;\n\tMon, 20 Apr 2026 11:48:26 +0000 (UTC)"],"ARC-Seal":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1776686041; cv=pass;\n\tb=mI/Cr6uEAavnn6s0+4ldLFzJmOI68/NvIFyoFpDp1m+qNtAwhhGRjslFIHuKZNbn+t0fjWihHS9RBlq9Gy4M5Y40TcX2Ntr+jM3ir/4biXxSHwIGdW2ANTq1PpdQd762U5/bBJym1RVIjBVKH27NVwIZt0O+inIoGGeKLTkOZbMYIgtBvbXwZMxODLyNdwGU9bOpokvk6Gr8cukTXPfyC7Yj/unotod8lZ4wCTpWd9xH2QuQM7hF25ZpjFkIuxsl7V8CW7ptAGPs//HDBhK4SNlLJ+VCKXXcIX05TdWmFw96i9sLZdeN45M8lxCL5uPdDt/7AFCgLDAoY1kqkfxtcA==","i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776685709; cv=none;\n b=P8NL1uytza40MXaCJwIT2dpzuEDHm4J4LDTJHjOfFP6XNypQzv8qjyaLWrKlcibuNZcbgavoGhX+LHF/bJBVKDL6WvAsHxy0T2NxwnDDwAJyYMdKpv+FNYYRzTCk00uk197bYSHXQH+qdy6RogO+HylNZMo1iVPNO2fcMVDYkDw="],"ARC-Message-Signature":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1776686041; 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=SyPqte2qNF/ptsYa65/gB76sePjyJJoiZC8Hl1FnYvHH3whZNCPW3qJLOXEXJnQZ8J7pQLvun2qOumuVkYvp+3qDOFS/xk/upZGI5TbUKW1Y1IKBEDZf7Tla1+pnDqKxCiuEjJIwWpQSe/M+X7KTnhBlkRaNoVIBY4uJMz3bbAR8JIlJeAEdPoXO+8nULE6pe1XB6waBIVryj/H0Jkmey6OnzQeyKSJjwvD5LiK20Un5ARRjvQV6oWgW3qMkzquliuWj1iR0QAXFhf4TKzM0qDIiv9hdDYTmS1fVyCK6kG0AmtoCIOgJ2wx7PRPjJjcJrKUK/o+8iu1ajixH2OarKw==","i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776685709; 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=MfAvUya9d2UaZ+QQPv+B6wOQrTvhjUNqGi4hYcBJBLAwVXHM4WxaZ5RMQsEyxX7Hdpazdj2e5sMi9n4PNv7sdHkAhZkE1cBHoWHoY5wImZUFNDxl+Wkf7f507sVOXDZs+pqpe/h4qnF36a8zIdUuaHk+r0taK6cptMJur7SIjlw="],"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=M3XXiqno; dkim-atps=neutral;\n spf=pass (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15931-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=M3XXiqno; 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=1776685708;\n\tbh=Aq0ZUSqSUefcts6LfugDkZmOSMW+4m4ueZMlzDmeXr4=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=M3XXiqnoNOxaVrterQ0sDIvw7wwZrlWLLA7noy0oKOBLHeE+FFNcS9n9e7HWCBT5n\n\t CUvq1duMCyZOcbXnafs5Ey7xl2TiLHiwaNlcLu4ytWOqWP3U1+1mqVyNj0xyHWyauY\n\t yG6jY0MVtHNU3xMWEQ20WXJu/cb49c8chjEcaVluaeQJMFuZY/Xad9f1O7EgimFDGq\n\t wVgV26Rjnc6PXrKLULt2SIWeh6LYQnib+tB0wnKUcfaB9NrtbuE0MJFTczfHaX2Sye\n\t gbhz+bpsTDSe5zwEMl1o6hLixKvQOwf5anaiJiLJ+CwY2FszQtJPzUKRy4KL/BOLwH\n\t xNYGl5wOw/cVg==","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 v8 18/22] xfs: add fs-verity ioctls","Date":"Mon, 20 Apr 2026 13:47:05 +0200","Message-ID":"<20260420114714.1621982-19-aalbersh@kernel.org>","X-Mailer":"git-send-email 2.51.2","In-Reply-To":"<20260420114714.1621982-1-aalbersh@kernel.org>","References":"<20260420114714.1621982-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":["v8","18/22"]}